src/cm/media/js/lib/yui/yui3.0.0/examples/io/assets/weather.php
changeset 0 40c8f766c9b8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui3.0.0/examples/io/assets/weather.php	Mon Nov 23 15:14:29 2009 +0100
@@ -0,0 +1,27 @@
+<?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;
+?>