MySQL Conf talk

This commit is contained in:
Rasmus Lerdorf
2006-04-25 08:20:47 +00:00
parent 97492de002
commit 01d46c14d5
3 changed files with 52 additions and 3 deletions

47
mysql06.xml Normal file
View File

@@ -0,0 +1,47 @@
<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>Getting Rich with PHP</title>
<event>MySQL User Conf</event>
<location>Santa Clara</location>
<date>Apr.25, 2006</date>
<speaker>Rasmus Lerdorf</speaker>
<email>rasmus@php.net</email>
<url>http://talks.php.net/show/mysql06</url>
<slide>slides/intro/titlepage.xml</slide>
<slide>slides/intro/rich.xml</slide>
<slide>slides/intro/rich2.xml</slide>
<slide>slides/bm06/profit.xml</slide>
<slide>slides/bm06/initial.xml</slide>
<slide>slides/bm06/pg.xml</slide>
<slide>slides/bm06/pg_persist.xml</slide>
<slide>slides/bm06/mysql.xml</slide>
<slide>slides/bm06/apc.xml</slide>
<slide>slides/bm06/apc2.xml</slide>
<slide>slides/intro/php5.xml</slide>
<slide>slides/intro/xml_eg.xml</slide>
<slide>slides/intro/rss_flickr.xml</slide>
<slide>slides/intro/ws3.xml</slide>
<slide>slides/intro/ws6.xml</slide>
<slide>slides/intro/ws7.xml</slide>
<slide>slides/intro/ws8.xml</slide>
<slide>slides/intro/ws9.xml</slide>
<slide>slides/intro/yajax.xml</slide>
<slide>slides/intro/yajax_apc.xml</slide>
<slide>slides/intro/yui.xml</slide>
<slide>slides/intro/web2_ref.xml</slide>
</presentation>

View File

@@ -6,7 +6,8 @@ Finally, a free geocoding API
<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 hide="1" result="1" title="Returned XML"><![CDATA[<?php
$data = file_get_contents("http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=:-:location:-:");
$loc = urlencode(':-:location:-:');
$data = file_get_contents("http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=$loc");
$data = preg_replace("|<(/.*?)>|","<\\1>\n",$data);
$data = preg_replace("|\">|","\">\n",$data);
echo nl2br(htmlspecialchars($data));
@@ -14,7 +15,7 @@ echo nl2br(htmlspecialchars($data));
<example fontsize="1.2em" title="We can parse it like this" result="1" marginright="0em" required_extension="simplexml"><![CDATA[<?php
$url = 'http://api.local.yahoo.com/MapsService/V1/geocode';
$url .= '?appid=YahooDemo&location=:-:location:-:';
$url .= '?appid=YahooDemo&location='.urlencode(':-:location:-:');
$xml = simplexml_load_file($url);
$ret['precision'] = (string)$xml->Result['precision'];
$ret['warning'] = (string)$xml->Result['warning'];

View File

@@ -31,7 +31,8 @@ var jsmap = new YMap(document.getElementById('jsmapContainer'));
jsmap.addTypeControl();
jsmap.addZoomLong();
jsmap.setMapType('YAHOO_SAT');
jsmap.drawZoomAndCenter(":-:location:-:", 16);
jsmap.drawZoomAndCenter(":-:location:-:", 13);
jsmap.addNavigatorControl();
</script>]]></example>
</slide>