cvs: presentations /slides/intro geoflickr.xml my_world.xml php_world.xml php_yui2.xml php_yui3.xml php_yui4.xml php_yui5.xml world.xml ws4.xml
ws6.xml ws7.xml ws8.xml ws9.xml yajax_combined.php

From: Date: Wed, 04 Jun 2008 07:50:33 +0000
Subject: cvs: presentations /slides/intro geoflickr.xml my_world.xml php_world.xml php_yui2.xml php_yui3.xml php_yui4.xml php_yui5.xml world.xml ws4.xml
ws6.xml ws7.xml ws8.xml ws9.xml yajax_combined.php
Groups: php.pres 
Request: Send a blank email to pres+get-1480@lists.php.net to get a copy of this message
rasmus Wed Jun 4 07:50:33 2008 UTC Modified files: /presentations/slides/intro geoflickr.xml my_world.xml php_world.xml php_yui2.xml php_yui3.xml php_yui4.xml php_yui5.xml world.xml ws4.xml ws6.xml ws7.xml ws8.xml ws9.xml yajax_combined.php Log: No more YahooDemo appid

http://cvs.php.net/viewvc.cgi/presentations/slides/intro/geoflickr.xml?r1=1.8&r2=1.9&diff_format=u Index: presentations/slides/intro/geoflickr.xml diff -u presentations/slides/intro/geoflickr.xml:1.8 presentations/slides/intro/geoflickr.xml:1.9 --- presentations/slides/intro/geoflickr.xml:1.8 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/geoflickr.xml Wed Jun 4 07:50:33 2008 @@ -6,7 +6,7 @@ if(!isset($_POST['loc'])) $loc = ':-:location:-:'; $flickr = new Flickr($secrets); $url = 'http://local.yahooapis.com/MapsService/V1/geocode'; -$url .= '?appid=YahooDemo&location='.urlencode($loc); +$url .= '?appid=rlerdorf&location='.urlencode($loc); $xml = simplexml_load_file($url)->Result; $lat = (double)$xml->Latitude; $lon = (double)$xml->Longitude; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/my_world.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/my_world.xml diff -u presentations/slides/intro/my_world.xml:1.2 presentations/slides/intro/my_world.xml:1.3 --- presentations/slides/intro/my_world.xml:1.2 Sun Jan 20 05:25:10 2008 +++ presentations/slides/intro/my_world.xml Wed Jun 4 07:50:33 2008 @@ -1,6 +1,6 @@ <slide title="World"> <break lines="1" /> -<example result="1" hide="1" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> +<example result="1" hide="1" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <script type="text/javascript" src="/ymap_canvas_fix.js"></script> <div id="jsmapContainer" style="height: 600px; width: 980px;"></div> @@ -53,7 +53,7 @@ jsmap.drawZoomAndCenter('SFO',15); </script>]]></example> -<example result="0" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> +<example result="0" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script> <div id="jsmapContainer" style="height: 600px; width: 980px;"></div> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_world.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/php_world.xml diff -u presentations/slides/intro/php_world.xml:1.2 presentations/slides/intro/php_world.xml:1.3 --- presentations/slides/intro/php_world.xml:1.2 Wed Oct 24 14:17:42 2007 +++ presentations/slides/intro/php_world.xml Wed Jun 4 07:50:33 2008 @@ -1,6 +1,6 @@ <slide title="World"> <break lines="1" /> -<example result="1" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> +<example result="1" fontsize="1.2em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script> <div id="jsmapContainer" style="height: 600px; width: 980px;"></div> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_yui2.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/php_yui2.xml diff -u presentations/slides/intro/php_yui2.xml:1.3 presentations/slides/intro/php_yui2.xml:1.4 --- presentations/slides/intro/php_yui2.xml:1.3 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/php_yui2.xml Wed Jun 4 07:50:33 2008 @@ -6,7 +6,7 @@ </blurb> <example result="1" fontsize="1.4em" rfontsize="1em" marginright="1em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> + src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> <script type="text/javascript"> var jsmap = new YMap('jsmapContainer'); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_yui3.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/php_yui3.xml diff -u presentations/slides/intro/php_yui3.xml:1.3 presentations/slides/intro/php_yui3.xml:1.4 --- presentations/slides/intro/php_yui3.xml:1.3 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/php_yui3.xml Wed Jun 4 07:50:33 2008 @@ -6,7 +6,7 @@ </blurb> <example result="1" fontsize="1.4em" rfontsize="1em" marginright="1em" type="marked"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> + src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> <script type="text/javascript"> var jsmap = new YMap('jsmapContainer'); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_yui4.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/php_yui4.xml diff -u presentations/slides/intro/php_yui4.xml:1.3 presentations/slides/intro/php_yui4.xml:1.4 --- presentations/slides/intro/php_yui4.xml:1.3 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/php_yui4.xml Wed Jun 4 07:50:33 2008 @@ -3,7 +3,7 @@ <break lines="1" /> <example result="1" fontsize="1.4em" rfontsize="1em" marginright="1em" type="marked"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> + src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> |<form id="locF" onSubmit="return updateMap();"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_yui5.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/php_yui5.xml diff -u presentations/slides/intro/php_yui5.xml:1.3 presentations/slides/intro/php_yui5.xml:1.4 --- presentations/slides/intro/php_yui5.xml:1.3 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/php_yui5.xml Wed Jun 4 07:50:33 2008 @@ -3,7 +3,7 @@ <break lines="1" /> <example result="1" fontsize="1.4em" rfontsize="1em" marginright="1em" type="marked"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> + src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> <form id="locF" onSubmit="return updateMap();"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/world.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/world.xml diff -u presentations/slides/intro/world.xml:1.2 presentations/slides/intro/world.xml:1.3 --- presentations/slides/intro/world.xml:1.2 Wed Oct 24 14:11:52 2007 +++ presentations/slides/intro/world.xml Wed Jun 4 07:50:33 2008 @@ -1,7 +1,7 @@ <slide title="World"> <break lines="1" /> <example hide="1" result="1" fontsize="1.4em" rfontsize="1em" marginright="0em" marginleft="1.5em" type="marked"><![CDATA[ -<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> +<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=rlerdorf"></script> <script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script> <div id="jsmapContainer" style="height: 600px; width: 980px;"></div> <div id="buttonContainer" style="padding: 0.5em;"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws4.xml?r1=1.8&r2=1.9&diff_format=u Index: presentations/slides/intro/ws4.xml diff -u presentations/slides/intro/ws4.xml:1.8 presentations/slides/intro/ws4.xml:1.9 --- presentations/slides/intro/ws4.xml:1.8 Wed Oct 24 04:14:46 2007 +++ presentations/slides/intro/ws4.xml Wed Jun 4 07:50:33 2008 @@ -32,7 +32,7 @@ but it is still cool. EOB; $url = 'http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction'; -$post = "query=tool&appid=YahooDemo&context=".rawurlencode($context); +$post = "query=tool&appid=rlerdorf&context=".rawurlencode($context); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws6.xml?r1=1.7&r2=1.8&diff_format=u Index: presentations/slides/intro/ws6.xml diff -u presentations/slides/intro/ws6.xml:1.7 presentations/slides/intro/ws6.xml:1.8 --- presentations/slides/intro/ws6.xml:1.7 Tue Oct 16 18:14:35 2007 +++ presentations/slides/intro/ws6.xml Wed Jun 4 07:50:33 2008 @@ -3,12 +3,12 @@ Finally, a free geocoding API </blurb> -<example title="REST Query to look up an address" result="0" fontsize="1.8em" marginright="0em"><![CDATA[http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=:-:location:-:]]></example> +<example title="REST Query to look up an address" result="0" fontsize="1.8em" marginright="0em"><![CDATA[http://api.local.yahoo.com/MapsService/V1/geocode?appid=rlerdorf&location=:-:location:-:]]></example> <example hide="1" result="1" title="Returned XML"><![CDATA[<?php $loc = urlencode(':-:location:-:'); if(!$data = @file_get_contents("presentations/slides/intro/geo_{$loc}.xml")) - $data = file_get_contents("http://local.yahooapis.com/MapsService/V1/geocode?appid=YahooDemo&location=$loc"); + $data = file_get_contents("http://local.yahooapis.com/MapsService/V1/geocode?appid=rlerdorf&location=$loc"); $data = preg_replace("|<(/.*?)>|","<\\1>\n",trim($data)); $data = preg_replace("|\">|","\">\n",$data); echo nl2br(htmlspecialchars($data)); @@ -16,7 +16,7 @@ <example fontsize="1.2em" title="We can parse it like this" result="1" marginright="0em" required_extension="simplexml"><![CDATA[<?php $url = 'http://local.yahooapis.com/MapsService/V1/geocode'; - $url .= '?appid=YahooDemo&location='.urlencode(':-:location:-:'); + $url .= '?appid=rlerdorf&location='.urlencode(':-:location:-:'); $xml = simplexml_load_file($url); $ret['precision'] = (string)$xml->Result['precision']; $ret['warning'] = (string)$xml->Result['warning']; @@ -26,7 +26,7 @@ echo "<pre>"; print_r($ret); echo "</pre>"; ?>]]></example> -<example title="Closest Match" result="0" fontsize="1.8em" marginright="0em"><![CDATA[http://local.yahooapis.com/MapsService/V1/geocode?appid=YahooDemo&location=701%20First,%20Sunnyvale]]></example> +<example title="Closest Match" result="0" fontsize="1.8em" marginright="0em"><![CDATA[http://local.yahooapis.com/MapsService/V1/geocode?appid=rlerdorf&location=701%20First,%20Sunnyvale]]></example> <example title="Returned XML" result="0" fontsize="1.4em" marginright="0em"><![CDATA[<ResultSet xsi:schemaLocation="urn:yahoo:maps http://api.local.yahoo.com/MapsService/V1/GeocodeResponse.xsd"> <Result precision="address" http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws7.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/ws7.xml diff -u presentations/slides/intro/ws7.xml:1.3 presentations/slides/intro/ws7.xml:1.4 --- presentations/slides/intro/ws7.xml:1.3 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/ws7.xml Wed Jun 4 07:50:33 2008 @@ -3,7 +3,7 @@ You can also ask for a single map tile of any location at any size. </blurb> -<example title="REST Query to get a tile" result="0" fontsize="1.4em" marginright="0em"><![CDATA[http://local.yahooapis.com/MapsService/V1/mapImage?appid=YahooDemo&location=94539]]></example> +<example title="REST Query to get a tile" result="0" fontsize="1.4em" marginright="0em"><![CDATA[http://local.yahooapis.com/MapsService/V1/mapImage?appid=rlerdorf&location=94539]]></example> <example title="Returned XML" result="0" fontsize="1.4em" marginright="0em"><![CDATA[<Result> http://img.maps.yahoo.com/mapimage?MAPDATA=NE6uked6wXUvMKeeO65.zg9FRNGF36TLiC8QU14ROsDkbVumowh8Jm3JSJUKwebcVHHXcvWDLt8WExnWh59FAevHEV5ynmh6WyJ3zNdmrLJYh3S95w-- @@ -28,7 +28,7 @@ $width = 600; $height = 300; $zoom = 7; -$url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=YahooDemo"; +$url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=rlerdorf"; $url .= "&image_height=$height&image_width=$width&zoom=$zoom"; $url .= "&location="; $i=0; @@ -85,7 +85,7 @@ $width = 600; $height = 300; $zoom = 7; -$url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=YahooDemo"; +$url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=rlerdorf"; $url .= "&image_height=$height&image_width=$width&zoom=$zoom"; $url .= "&location="; $i=0; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws8.xml?r1=1.7&r2=1.8&diff_format=u Index: presentations/slides/intro/ws8.xml diff -u presentations/slides/intro/ws8.xml:1.7 presentations/slides/intro/ws8.xml:1.8 --- presentations/slides/intro/ws8.xml:1.7 Tue Nov 28 12:38:48 2006 +++ presentations/slides/intro/ws8.xml Wed Jun 4 07:50:33 2008 @@ -6,11 +6,11 @@ </blurb> <example title="Simple Embedded Flash map" result="1" fontsize="1.6em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/v3.0/fl/javascript/apiloader.js?appid=YahooDemo"> + src="http://api.maps.yahoo.com/v3.0/fl/javascript/apiloader.js?appid=rlerdorf"> </script> <div id="mapContainer" style="height: 400px; width: 930px;"></div> <script type="text/javascript"> -var mymap = new Map("mapContainer","YahooDemo",":-:location:-:",10,MapViews.HYBRID); +var mymap = new Map("mapContainer","rlerdorf",":-:location:-:",10,MapViews.HYBRID); mymap.addTool(new PanTool(), true); mymap.addWidget(new SatelliteControlWidget()); mymap.addWidget(new NavigatorWidget()); @@ -23,7 +23,7 @@ </blurb> <example title="Simple Embedded DHTML map" result="1" fontsize="1.6em" rfontsize="1em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.4&appid=YahooDemo"> + src="http://api.maps.yahoo.com/ajaxymap?v=3.4&appid=rlerdorf"> </script> <div id="jsmapContainer" style="height: 400px; width: 930px;"></div> <script type="text/javascript"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws9.xml?r1=1.5&r2=1.6&diff_format=u Index: presentations/slides/intro/ws9.xml diff -u presentations/slides/intro/ws9.xml:1.5 presentations/slides/intro/ws9.xml:1.6 --- presentations/slides/intro/ws9.xml:1.5 Tue Nov 28 12:38:48 2006 +++ presentations/slides/intro/ws9.xml Wed Jun 4 07:50:33 2008 @@ -21,7 +21,7 @@ </script> <div id="mapContainer" style="height: 500px; width: 930px;"></div> <script type="text/javascript"> -var mymap = new Map("mapContainer", "YahooDemo", "San Francisco, CA", 12); +var mymap = new Map("mapContainer", "rlerdorf", "San Francisco, CA", 12); mymap.addTool(new PanTool(), true); mymap.addWidget(new NavigatorWidget()); @@ -36,7 +36,7 @@ </blurb> <example title="Simple Embedded DHTML map" result="1" fontsize="1.4em" rfontsize="1em" marginright="0em"><![CDATA[<script type="text/javascript" - src="http://api.maps.yahoo.com/ajaxymap?v=3.4&appid=YahooDemo"> + src="http://api.maps.yahoo.com/ajaxymap?v=3.4&appid=rlerdorf"> </script> <div id="jsmapContainer" style="height: 500px; width: 930px;"></div> <?php http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yajax_combined.php?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/intro/yajax_combined.php diff -u presentations/slides/intro/yajax_combined.php:1.4 presentations/slides/intro/yajax_combined.php:1.5 --- presentations/slides/intro/yajax_combined.php:1.4 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/yajax_combined.php Wed Jun 4 07:50:33 2008 @@ -1,11 +1,11 @@ <?php if(!empty($_GET['loc'])) { - $geo = 'http://local.yahooapis.com/MapsService/V1/geocode?appid=YahooDemo'. + $geo = 'http://local.yahooapis.com/MapsService/V1/geocode?appid=rlerdorf'. '&location='.urlencode($_GET['loc']).'&output=php'; $ll = unserialize(file_get_contents($geo)); $lat = $ll['ResultSet']['Result']['Latitude']; $lon = $ll['ResultSet']['Result']['Longitude']; - $map = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=YahooDemo". + $map = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=rlerdorf". "&output=php&image_width=450&image_height=450&radius=1500"; $N = unserialize(file_get_contents("$map&latitude=$lat&longitude=$lon")); $lat = -$lat; $lon = $lon<0 ? 180+$lon : $lon-180;
« previous php.pres (#1480) next »