Waiting for tasty cookies in the hotel lobby, so more tweaking

This commit is contained in:
Rasmus Lerdorf
2009-05-02 21:34:03 +00:00
parent ccc13f1286
commit 2c0f215fbe
2 changed files with 1 additions and 5 deletions

View File

@@ -45,10 +45,6 @@ Simple is Hard
<slide>slides/intro/php_js2.xml</slide>
<slide>slides/intro/yajax.xml</slide>
<slide>slides/intro/php_yui2.xml</slide>
<slide>slides/intro/php_yui3.xml</slide>
<slide>slides/intro/php_yui4.xml</slide>
<slide>slides/intro/php_yui5.xml</slide>
<slide>slides/intro/geoplanet.xml</slide>
<slide>slides/intro/yql.xml</slide>

View File

@@ -47,7 +47,7 @@ function cache($url) {
}
$yql = "http://query.yahooapis.com/v1/public/yql?q=";
$q = "use 'http://airports.pidgets.com/v1/tables.xml' as airports;".
"select * from airports(5) where near='Ann Arbor' and direct_flights_min=20";
"select * from airports(5) where near=':-:location:-:' and direct_flights_min=20";
$x = simplexml_load_file(cache($yql.urlencode($q).'&format=xml'));
echo "<b>URLs accessed:</b><br>\n";