How to get Weather Information in PHP

How to get Weather Information in PHP

March 15, 2016 Would you like to implement functionality of Getting Weather Information in PHP? Try Below Code.

//Note: appid can be obtained after login on



// By City Name


// By latitude & longitude




//Get current Temperature in Celsius



echo 'Celsious= '.$cel;

//Get current Temperature in Farenhite


echo '<br>Farenhite='.$f;



Related Posts

from my blog

5 Best FTP Clients to Make your Task Easy on Mac and Windows

November 22, 2018

What if you are required to directly access the file, which is present on your server? WordPress is a robust CMS used by millions of people around the globe. However,...

10 Best Code Editors that Every Programmer Must Try

October 22, 2018

Codes are basic building blocks of highly interactive, engaging and responsive web development. And, these cells of website and software are written on code editors. Code editors are a place...

Top 5 IDE For PHP that you Must Know

September 22, 2018

Writing code in minimum time is an essential skill that every code editor must possess in order to remain productive and competitive. Writing code has become a basic necessity for...