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

Ultimate Guide How to Create a WordPress Child Theme (Step by Step)

July 30, 2021

Creating a child theme is a great way to add advanced customization to your theme without having to worry about erasing those changes each time you update the theme. In...

10 Places To Find A Freelance WordPress Developer

July 23, 2021

Since Digital Marketing came into the picture, people are going online to promote their products and services. A variety of businesses are entering the digital era, and most of them...

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,...