cvs: presentations /slides/intro geoflickr.xml ws6.xml
| From: | Rasmus Lerdorf | Date: | Tue, 28 Nov 2006 21:11:41 +0000 |
| Subject: | cvs: presentations /slides/intro geoflickr.xml ws6.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1366@lists.php.net to get a copy of this message | ||
rasmus Tue Nov 28 21:11:41 2006 UTC
Modified files:
/presentations/slides/intro geoflickr.xml ws6.xml
Log:
Tweaks
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/geoflickr.xml?r1=1.3&r2=1.4&diff_format=u
Index: presentations/slides/intro/geoflickr.xml
diff -u presentations/slides/intro/geoflickr.xml:1.3 presentations/slides/intro/geoflickr.xml:1.4
--- presentations/slides/intro/geoflickr.xml:1.3 Fri Nov 24 19:57:06 2006
+++ presentations/slides/intro/geoflickr.xml Tue Nov 28 21:11:41 2006
@@ -17,7 +17,7 @@
$minlon = $lon-(($y*cos($minlat)/6371) * $rad);
$maxlon = $lon+(($y*cos($maxlat)/6371) * $rad);
$params = array('bbox'=>"$minlon,$minlat,$maxlon,$maxlat",
- 'min_upload_date'=>time()-30*24*3600);
+ 'min_upload_date'=>time()-4*24*3600);
$photos = $flickr->photosSearch($params);
if($photos['photos']) foreach($photos['photos'] as $photo) {
$url = $flickr->getPhotoURL($photo);
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws6.xml?r1=1.4&r2=1.5&diff_format=u
Index: presentations/slides/intro/ws6.xml
diff -u presentations/slides/intro/ws6.xml:1.4 presentations/slides/intro/ws6.xml:1.5
--- presentations/slides/intro/ws6.xml:1.4 Fri Nov 24 19:27:46 2006
+++ presentations/slides/intro/ws6.xml Tue Nov 28 21:11:41 2006
@@ -7,7 +7,7 @@
<example hide="1" result="1" title="Returned
XML"><![CDATA[<?php
$loc = urlencode(':-:location:-:');
-if(!$data = file_get_contents("presentations/slides/intro/geo_{$loc}.xml"))
+if(!$data = @file_get_contents("presentations/slides/intro/geo_{$loc}.xml"))
$data = file_get_contents("http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=$loc");
$data = preg_replace("|<(/.*?)>|","<\\1>\n",trim($data));
$data = preg_replace("|\">|","\">\n",$data);