Skip to content

Instantly share code, notes, and snippets.

<?php
$url = 'http://api.openweathermap.org/data/2.5/weather?q=Orlando&appid=e489a1082a7bba282ae688164b05ebe1&units=metric';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
// curl_setopt($ch,CURLOPT_HEADER, false);
$output=curl_exec($ch);