cvs: presentations / hack08.xml /slides/intro buzz.xml hack08_agenda.xml oauth1.xml oauth2.xml oauth3.xml oauth_flow.jpg php_world.xml
phpjs_learn.xml sm.png sm1.xml sm2.xml twit_db6.xml world.xml ws4.xml ws6.xml ws7.xml yajax.php yajax.xml yajax_combined.php yajax_geocode.php

From: Date: Fri, 12 Sep 2008 21:18:03 +0000
Subject: cvs: presentations / hack08.xml /slides/intro buzz.xml hack08_agenda.xml oauth1.xml oauth2.xml oauth3.xml oauth_flow.jpg php_world.xml
phpjs_learn.xml sm.png sm1.xml sm2.xml twit_db6.xml world.xml ws4.xml ws6.xml ws7.xml yajax.php yajax.xml yajax_combined.php yajax_geocode.php
Groups: php.pres 
Request: Send a blank email to pres+get-1500@lists.php.net to get a copy of this message
rasmus Fri Sep 12 21:18:03 2008 UTC Added files: /presentations hack08.xml /presentations/slides/intro hack08_agenda.xml oauth1.xml oauth2.xml oauth3.xml oauth_flow.jpg sm.png sm1.xml sm2.xml Modified files: /presentations/slides/intro buzz.xml php_world.xml phpjs_learn.xml twit_db6.xml world.xml ws4.xml ws6.xml ws7.xml yajax.php yajax.xml yajax_combined.php yajax_geocode.php Log: HackDay talk

http://cvs.php.net/viewvc.cgi/presentations/slides/intro/buzz.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/intro/buzz.xml diff -u presentations/slides/intro/buzz.xml:1.1 presentations/slides/intro/buzz.xml:1.2 --- presentations/slides/intro/buzz.xml:1.1 Tue Oct 9 21:15:38 2007 +++ presentations/slides/intro/buzz.xml Fri Sep 12 21:18:03 2008 @@ -1,7 +1,7 @@ <slide title="Buzz"> <example title="Take a pinch of RSS" result="1" fontsize="1.6em" rfontsize="1.2em" required_extension="simplexml"><![CDATA[<?php $url = 'http://buzz.yahoo.com/feeds/buzzoverl.xml'; -$xml = @simplexml_load_file($url); +$xml = simplexml_load_file($url); if($xml) { foreach($xml->channel->item as $item) { $ret[(string)$item->title] = (string)$item->link; @@ -10,6 +10,8 @@ } else echo "Can't get to Yahoo!"; ?>]]></example> +<link leader="Many more RSS feeds listed here: " href="http://developer.yahoo.com/rss/"/> + <example fontsize="1.6em" title="Add a spoonful of REST"><![CDATA[<?php $imgs='http://api.search.yahoo.com/ImageSearchService/V1/imageSearch'; $news='http://api.search.yahoo.com/NewsSearchService/V1/newsSearch'; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_world.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/intro/php_world.xml diff -u presentations/slides/intro/php_world.xml:1.4 presentations/slides/intro/php_world.xml:1.5 --- presentations/slides/intro/php_world.xml:1.4 Sun Jul 20 05:56:32 2008 +++ presentations/slides/intro/php_world.xml Fri Sep 12 21:18:03 2008 @@ -1,7 +1,7 @@ <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=rlerdorf"></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.8&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/phpjs_learn.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/phpjs_learn.xml diff -u presentations/slides/intro/phpjs_learn.xml:1.2 presentations/slides/intro/phpjs_learn.xml:1.3 --- presentations/slides/intro/phpjs_learn.xml:1.2 Tue Mar 4 20:06:54 2008 +++ presentations/slides/intro/phpjs_learn.xml Fri Sep 12 21:18:03 2008 @@ -1,4 +1,4 @@ -<slide title="What we need to learn"> +<slide title="What we need to learn to Hack"> <break lines="4" /> <list> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/twit_db6.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/twit_db6.xml diff -u presentations/slides/intro/twit_db6.xml:1.2 presentations/slides/intro/twit_db6.xml:1.3 --- presentations/slides/intro/twit_db6.xml:1.2 Sun Jul 20 06:58:13 2008 +++ presentations/slides/intro/twit_db6.xml Fri Sep 12 21:18:03 2008 @@ -5,12 +5,11 @@ A complete DB/JSON backend </blurb> -<example result="0" marginright="1em"><![CDATA[<?php +<example result="0" marginright="1em" fontsize="1.8em"><![CDATA[<?php include './db.inc'; include './db_twits.inc'; $twits = new twits; -$query = $_POST['query']; header("Content-type: application/json"); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/world.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/world.xml diff -u presentations/slides/intro/world.xml:1.3 presentations/slides/intro/world.xml:1.4 --- presentations/slides/intro/world.xml:1.3 Wed Jun 4 07:50:33 2008 +++ presentations/slides/intro/world.xml Fri Sep 12 21:18:03 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=rlerdorf"></script> +<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.8&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.9&r2=1.10&diff_format=u Index: presentations/slides/intro/ws4.xml diff -u presentations/slides/intro/ws4.xml:1.9 presentations/slides/intro/ws4.xml:1.10 --- presentations/slides/intro/ws4.xml:1.9 Wed Jun 4 07:50:33 2008 +++ presentations/slides/intro/ws4.xml Fri Sep 12 21:18:03 2008 @@ -16,6 +16,9 @@ <bullet>Geocoding</bullet> <bullet>Context Extraction Service</bullet> </list> + +<link leader="Many more services here: " href="http://developer.yahoo.com/everything.html"/> + <list> <bullet>Context Extraction Service</bullet> </list> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws6.xml?r1=1.8&r2=1.9&diff_format=u Index: presentations/slides/intro/ws6.xml diff -u presentations/slides/intro/ws6.xml:1.8 presentations/slides/intro/ws6.xml:1.9 --- presentations/slides/intro/ws6.xml:1.8 Wed Jun 4 07:50:33 2008 +++ presentations/slides/intro/ws6.xml Fri Sep 12 21:18:03 2008 @@ -3,7 +3,7 @@ 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=rlerdorf&location=:-:location:-:]]></example> +<example title="REST Query to look up an address" result="0" fontsize="1.8em" marginright="0em"><![CDATA[http://local.yahooapis.com/MapsService/V1/geocode?appid=rlerdorf&location=:-:location:-:]]></example> <example hide="1" result="1" title="Returned XML"><![CDATA[<?php $loc = urlencode(':-:location:-:'); @@ -28,7 +28,7 @@ <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"> +<example title="Returned XML" result="0" fontsize="1.4em" marginright="0em"><![CDATA[<ResultSet xsi:schemaLocation="urn:yahoo:maps http://local.yahooapis.com/MapsService/V1/GeocodeResponse.xsd"> <Result precision="address" warning="The exact location could not be found, here is the closest match: 701 First Ave, Sunnyvale, CA 94089"> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ws7.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/intro/ws7.xml diff -u presentations/slides/intro/ws7.xml:1.4 presentations/slides/intro/ws7.xml:1.5 --- presentations/slides/intro/ws7.xml:1.4 Wed Jun 4 07:50:33 2008 +++ presentations/slides/intro/ws7.xml Fri Sep 12 21:18:03 2008 @@ -10,7 +10,7 @@ </Result> ]]></example> -<example fontsize="1.2em" title="Example" result="0" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> +<example fontsize="1.2em" title="Example" result="1" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> <script type="text/javascript"> <?php function request_cache($url, $dest_file, $timeout=43200) { @@ -67,61 +67,4 @@ ?> </body></html>]]></example> -<example fontsize="1.2em" title="Example" hide="1" result="1" marginright="0em"><![CDATA[<html><head><title>Map Tile Demo</title> -<script type="text/javascript"> -<?php -function request_cache($url, $dest_file, $timeout=43200) { - if(!file_exists($dest_file) || filemtime($dest_file) < (time()-$timeout)) { - $stream = fopen($url,'r'); - $tmpf = tempnam('/tmp','YWS'); - file_put_contents($tmpf, $stream); - fclose($stream); - rename($tmpf, $dest_file); - } -} - -$cities = array("San Francisco", "Los Angeles", "Seattle", "Atlanta", "Chicago", "Dallas", - "Vancouver, Canada", "New York City", "Toronto", "Miami, FL", "Boston"); - -$width = 600; $height = 300; $zoom = 7; - -$url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=rlerdorf"; -$url .= "&image_height=$height&image_width=$width&zoom=$zoom"; -$url .= "&location="; -$i=0; -foreach($cities as $city) { - $q = $url.rawurlencode($city); - $tmp = '/tmp/yws_tile_'.md5($q); - request_cache($q, $tmp); - $xml = simplexml_load_file($tmp); - if($i==0) $first = (string)$xml; - echo <<<EOB -image$i = new Image(); -image$i.src = "http://localhost/maps/$i.png"; -EOB; - $i++; -} -?> -</script> -</head><body> -<?php -echo <<<EOB -<div id="img_container" - style="float:left; height:{$height}px; width:{$width}px; padding: 0px 10px 0px 10px;"> -<img id="the_img" src="$first" height="$height" width="$width"/></div> -EOB; -$i=0; -foreach($cities as $city) { - $q = rawurlencode($city); - echo <<<EOB -<a href="http://maps.yahoo.com/beta/index.php?#trf=0&q1=$q" - onmouseover="document.getElementById('the_img').src=image$i.src; - this.style.backgroundColor='white';" - onmouseout="this.style.backgroundColor='#eeee33';">$city</a><br /> -EOB; - $i++; -} -?> -</body></html>]]></example> - </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yajax.php?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/intro/yajax.php diff -u presentations/slides/intro/yajax.php:1.4 presentations/slides/intro/yajax.php:1.5 --- presentations/slides/intro/yajax.php:1.4 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/yajax.php Fri Sep 12 21:18:03 2008 @@ -9,7 +9,7 @@ } ?> <html><head> - <script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/utilities/utilities.js"></script> + <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script> <script language="javascript"> var fN = function callBack(o) { http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yajax.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/intro/yajax.xml diff -u presentations/slides/intro/yajax.xml:1.3 presentations/slides/intro/yajax.xml:1.4 --- presentations/slides/intro/yajax.xml:1.3 Wed Apr 19 07:39:07 2006 +++ presentations/slides/intro/yajax.xml Fri Sep 12 21:18:03 2008 @@ -1,9 +1,9 @@ <slide title="Ajax in 30 seconds"> <break lines="1" /> <example title="yajax.php" filename="yajax.php" hide="0" result="0" fontsize="1.5em" marginright="0em"/> -<example title="" filename="yajax.php" hide="1" result="1" marginright="0em" type="iframe"/> +<example title="" filename="http://pres2.localhost/presentations/slides/intro/yajax.php" hide="1" result="1" marginright="0em" type="iframe"/> <example title="yajax_geocode.php" filename="yajax_geocode.php" hide="0" result="0" fontsize="1.5em" marginright="0em"/> -<example title="" filename="yajax_geocode.php" hide="1" result="1" marginright="0em" type="iframe" iheight="100"/> +<example title="" filename="http://pres2.localhost/presentations/slides/intro/yajax_geocode.php" hide="1" result="1" marginright="0em" type="iframe" iheight="100"/> <example title="yajax_combined.php" filename="yajax_combined.php" hide="0" result="0" fontsize="1.5em" marginright="0em"/> -<example title="" filename="yajax_combined.php" hide="1" result="1" marginright="0em" type="iframe" iheight="500" iwidth="2000"/> +<example title="" filename="http://pres2.localhost/presentations/slides/intro/yajax_combined.php" hide="1" result="1" marginright="0em" type="iframe" iheight="500" iwidth="2000"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yajax_combined.php?r1=1.5&r2=1.6&diff_format=u Index: presentations/slides/intro/yajax_combined.php diff -u presentations/slides/intro/yajax_combined.php:1.5 presentations/slides/intro/yajax_combined.php:1.6 --- presentations/slides/intro/yajax_combined.php:1.5 Wed Jun 4 07:50:33 2008 +++ presentations/slides/intro/yajax_combined.php Fri Sep 12 21:18:03 2008 @@ -16,7 +16,7 @@ } ?> <html><head> - <script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/utilities/utilities.js"></script> + <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script> <script language="javascript"> <!-- var img1 = false; http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yajax_geocode.php?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/yajax_geocode.php diff -u presentations/slides/intro/yajax_geocode.php:1.2 presentations/slides/intro/yajax_geocode.php:1.3 --- presentations/slides/intro/yajax_geocode.php:1.2 Fri Sep 28 18:07:53 2007 +++ presentations/slides/intro/yajax_geocode.php Fri Sep 12 21:18:03 2008 @@ -8,7 +8,7 @@ } ?> <html><head> - <script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/utilities/utilities.js"></script> + <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script> <script language="javascript"> <!-- var fN = function callBack(o) { http://cvs.php.net/viewvc.cgi/presentations/hack08.xml?view=markup&rev=1.1 Index: presentations/hack08.xml +++ presentations/hack08.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <topic>PHP</topic> <title>PHP and Apis</title> <location>Sunnyvale, CA</location> <date>Sept 12, 2008</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://talks.php.net/show/hack08</url> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/hack08_agenda.xml</slide> <!-- History --> <slide>slides/fowa/hist1.xml</slide> <slide>slides/fowa/hist2.xml</slide> <slide>slides/fowa/hist3.xml</slide> <slide>slides/fowa/hist4.xml</slide> <slide>slides/fowa/hist5.xml</slide> <!-- Architecture --> <slide>slides/intro/phpjs_learn.xml</slide> <slide>slides/intro/sx.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/php_js1.xml</slide> <slide>slides/intro/php_js2.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/php_world.xml</slide> <slide>slides/intro/yajax.xml</slide> <slide>slides/intro/twit_db1.xml</slide> <slide>slides/intro/twit_db2.xml</slide> <slide>slides/intro/twit_db3.xml</slide> <slide>slides/intro/twit_db4.xml</slide> <slide>slides/intro/twit_db5.xml</slide> <slide>slides/intro/twit_db6.xml</slide> <slide>slides/intro/buzz.xml</slide> <slide>slides/intro/ws4.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/oauth1.xml</slide> <slide>slides/intro/oauth2.xml</slide> <slide>slides/intro/oauth3.xml</slide> <slide>slides/intro/yql1.xml</slide> <slide>slides/intro/sm1.xml</slide> <slide>slides/intro/sm2.xml</slide> <slide>slides/intro/hack08_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/hack08_agenda.xml?view=markup&rev=1.1 Index: presentations/slides/intro/hack08_agenda.xml +++ presentations/slides/intro/hack08_agenda.xml <slide title="Agenda"> <break lines="2" /> <blurb marginleft="325px" fontsize="8em"> History </blurb> <blurb marginleft="325px" fontsize="8em"> PHP 5 Basics </blurb> <blurb marginleft="325px" fontsize="8em"> API Examples </blurb> <blurb marginleft="325px" fontsize="8em"> Questions </blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/oauth1.xml?view=markup&rev=1.1 Index: presentations/slides/intro/oauth1.xml +++ presentations/slides/intro/oauth1.xml <slide title="OAuth"> <break lines="2"/> <blurb> An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications. Similar to Flickr Auth and BBAuth, but it is an Open Specification. </blurb> <link marginleft="2em" leader="First, grab the PHP SDK: " href="http://hackday.developer.yahoo.com/social/sdk/"/> <link marginleft="2em" leader="For other languages, see: " href="http://oauth.net/code/"/> <image filename="oauth_flow.jpg" align="center" /> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/oauth2.xml?view=markup&rev=1.1 Index: presentations/slides/intro/oauth2.xml +++ presentations/slides/intro/oauth2.xml <slide title="OAuth"> <break lines="2"/> <blurb> 3-legged OAuth makes a roundtrip to the provider to obtain a token that represents the user. The user has to authenticate and grant access to the application. </blurb> <blurb> 2-legged OAuth has no roundtrip. It is simply a way to send a request that is signed with your consumer key and secret to identify your application to the service. </blurb> <example title="3-Legged using the Yahoo PHP SDK" result="0" fontsize="2em"><![CDATA[<?php require './Yahoo.inc'; require './oauth_secret.inc'; $session = YahooSession::requireSession($consumerKey, $consumerSecret, $applicationId); $q = "select * from flickr.photos.recent"; $result = $session->client->query($q); print_r($result); ?>]]></example> <example title="3-Legged using the Yahoo PHP SDK" result="0" fontsize="1.3em"><![CDATA[Array ( [query] => Array ( [count] => 100 [created] => 2008-09-12T02:22:21Z [lang] => en-US [updated] => 2008-09-12T02:22:21Z [uri] => http://query.pipes.yahoo.com/v1/yql?q=select+*+from+flickr.photos.recent [diagnostics] => Array ( [url] => Array ( [execution-time] => 555 [content] => http://api.flickr.com/services/rest/?method=flickr.photos.getRecent ) [user-time] => 575 [service-time] => 555 [build-version] => 2008.09.11.15:43 ) [results] => Array ( [photo] => Array ( [0] => Array ( [farm] => 4 [id] => 2851054416 [isfamily] => 0 [isfriend] => 0 [ispublic] => 1 [owner] => 29037411@N03 [secret] => 33955b4ee4 [server] => 3162 [title] => Uma corrente para organizar ) ...]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/oauth3.xml?view=markup&rev=1.1 Index: presentations/slides/intro/oauth3.xml +++ presentations/slides/intro/oauth3.xml <slide title="OAuth"> <break lines="2"/> <example title="2-Legged using OAuth.inc from the PHP SDK" result="0" fontsize="1.4em"><![CDATA[<?php require './OAuth.php'; include './oauth_secret.inc'; function get_2legged($url) { global $consumerKey, $consumerSecret; list($base,$query) = explode('?',$url,2); parse_str($query, $args); $consumer = new OAuthConsumer($consumerKey, $consumerSecret); $request = OAuthRequest::from_consumer_and_token($consumer,NULL,"GET",$base,$args); $request->sign_request(new OAuthSignatureMethod_HMAC_SHA1(), $consumer, NULL); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array($request->to_header())); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); return curl_exec($ch); } echo get_2legged('http://query.yahooapis.com/v1/yql?q=show%20tables&format=xml'); ?>]]></example> <example title="Output" result="0" fontsize="1.5em"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="33" yahoo:created="2008-09-12T02:56:55Z" yahoo:lang="en-US" yahoo:updated="2008-09-12T02:56:55Z" yahoo:uri="http://query.pipes.yahoo.com/v1/yql?q=show+tables"> <results> <tables> <table>atom</table> <table>csv</table> <table>flickr.location</table> <table>flickr.photos.exif</table> <table>flickr.photos.info</table> <table>flickr.photos.interestingness</table> <table>flickr.photos.recent</table> <table>flickr.photos.search</table> <table>flickr.places</table> <table>geo.places</table> <table>geo.placetypes</table> <table>html</table> <table>json</table> <table>local.search</table> <table>rss</table> <table>search.images</table> <table>search.news</table> <table>search.web</table> <table>social.connections</table> <table>social.contacts</table> <table>social.presence</table> <table>social.profile</table> <table>social.updates</table> <table>upcoming.category</table> <table>upcoming.country</table> <table>upcoming.events</table> <table>upcoming.events.bestinplace</table> <table>upcoming.groups</table> <table>upcoming.metro</table> <table>upcoming.state</table> <table>upcoming.venue</table> <table>weather.forecast</table> <table>xml</table> </tables> </results> </query> <!-- total: 1 --> <!-- yqlengine2.pipes.sp1.yahoo.com uncompressed/chunked Fri Sep 12 07:56:55 PDT 2008 -->]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/sm1.xml?view=markup&rev=1.1 Index: presentations/slides/intro/sm1.xml +++ presentations/slides/intro/sm1.xml <slide title="SearchMonkey"> <break lines="2"/> <blurb>Indexing the semantic Web!</blurb> <example title="An hResume query" result="1" fontsize="1.7em"><![CDATA[<?php $wsurl = 'http://search.yahooapis.com/WebSearchService/V1/webSearch'; $appid = 'rlerdorf'; $q = urlencode("searchmonkeyid:com.yahoo.uf.hresume PHP"); $x = simplexml_load_file("$wsurl?appid=$appid&query=$q&results=100"); echo <<<EOB Showing {$x['totalResultsReturned']} of {$x['totalResultsAvailable']}<br> EOB; foreach($x->Result as $ent) { echo "<a href=\"{$ent->Url}\">{$ent->Title}<br>\n"; } ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/sm2.xml?view=markup&rev=1.1 Index: presentations/slides/intro/sm2.xml +++ presentations/slides/intro/sm2.xml <slide title="SearchMonkey"> <break lines="2"/> <blurb>Search Plugins</blurb> <image filename="sm.png" align="center"/> </slide>
« previous php.pres (#1500) next »