Hi all,
Do you guys come across any Time API (similar to Google or Yahoo! Weather API) which allows me to get the current time of countries (with daylight saving)?
Cheers
shunjie wrote:Check out this world time engine.
http://blog.programmableweb.com/2008/02 ... orld-time/
I am not sure if they support flash as I cannot find any crossdomain.xml file on the server. Maybe can bug them to put up one for you if you purchase their api
<?php
$site_url = 'http://www.website.com/fileYouWantToLoad.xml?variables=ifAny';
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $site_url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
ob_start();
curl_exec($ch);
curl_close($ch);
$file_contents = ob_get_contents();
ob_end_clean();
echo $file_contents;
?>
Users browsing this forum: No registered users and 1 guest