mirror of
https://github.com/php/presentations.git
synced 2026-03-23 23:22:22 +01:00
Waiting for tasty cookies in the hotel lobby, so more tweaking
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user