data tables are going to need some work yet, but the other stuff seems to be working 100%
27 lines
700 B
PHP
27 lines
700 B
PHP
<?php
|
|
/* yadl_spaceid - Skip Stamping */
|
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
|
|
|
// always modified
|
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
|
|
|
// HTTP/1.1
|
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
header("Content-Type:text/xml");
|
|
|
|
$url = 'http://xml.weather.yahoo.com/forecastrss?'.getenv('QUERY_STRING');
|
|
|
|
function getResource($url){
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
$result = curl_exec($ch);
|
|
curl_close($ch);
|
|
|
|
return $result;
|
|
}
|
|
|
|
$feed = getResource($url);
|
|
echo $feed;
|
|
?>
|