cvs: presentations / slkey.xml sltut.xml /slides/intro poll1.xml poll2.xml poll3.xml slkey_ref.xml sqlite1.xml ws4.xml ws5.xml xml.xml /slides/lamp
php-usage.xml phpstats-200509.png the-lamp-stack.xml

From: Date: Thu, 08 Sep 2005 12:07:19 +0000
Subject: cvs: presentations / slkey.xml sltut.xml /slides/intro poll1.xml poll2.xml poll3.xml slkey_ref.xml sqlite1.xml ws4.xml ws5.xml xml.xml /slides/lamp
php-usage.xml phpstats-200509.png the-lamp-stack.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1178@lists.php.net to get a copy of this message
rasmus Thu Sep 8 08:07:19 2005 EDT Added files: /presentations slkey.xml sltut.xml /presentations/slides/intro slkey_ref.xml xml.xml /presentations/slides/lamp phpstats-200509.png Modified files: /presentations/slides/intro poll1.xml poll2.xml poll3.xml sqlite1.xml ws4.xml ws5.xml /presentations/slides/lamp php-usage.xml the-lamp-stack.xml Log: Sri Lanka keynote

http://cvs.php.net/diff.php/presentations/slides/intro/poll1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/intro/poll1.xml diff -u presentations/slides/intro/poll1.xml:1.2 presentations/slides/intro/poll1.xml:1.3 --- presentations/slides/intro/poll1.xml:1.2 Fri Jan 14 11:12:14 2005 +++ presentations/slides/intro/poll1.xml Thu Sep 8 08:07:18 2005 @@ -14,7 +14,7 @@ template API. </blurb> -<example title="Poll Template"><![CDATA[<?php +<example title="Poll Template" fontsize="1.9em"><![CDATA[<?php start_poll(1); $os = array("FreeBSD","Linux","OSX","Windows","Other"); ?> http://cvs.php.net/diff.php/presentations/slides/intro/poll2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/intro/poll2.xml diff -u presentations/slides/intro/poll2.xml:1.1 presentations/slides/intro/poll2.xml:1.2 --- presentations/slides/intro/poll2.xml:1.1 Wed Sep 22 15:15:35 2004 +++ presentations/slides/intro/poll2.xml Thu Sep 8 08:07:18 2005 @@ -4,12 +4,12 @@ In our template helper layer we implement our frontend API. </blurb> -<example title="Helper Layer" fontsize="1.6em" marginright="0em" marginleft="1em"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<example title="Helper Layer" fontsize="1.5em" marginright="0em" marginleft="1em"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <base href="http://php.net" /> <title>Questionnaire</title> - <style type="text/css" media="screen">@import "/poll/style.css";</style> + <style type="text/css">@import "/poll/style.css";</style> </head> <body> <h3>Questionnaire</h3> http://cvs.php.net/diff.php/presentations/slides/intro/poll3.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/intro/poll3.xml diff -u presentations/slides/intro/poll3.xml:1.1 presentations/slides/intro/poll3.xml:1.2 --- presentations/slides/intro/poll3.xml:1.1 Wed Sep 22 15:15:35 2004 +++ presentations/slides/intro/poll3.xml Thu Sep 8 08:07:18 2005 @@ -1,6 +1,6 @@ <slide title="Application Logic"> -<example title="SQL Schema" marginleft="1em" marginright="0em" fontsize="1.6em" type="php"><![CDATA[CREATE TABLE poll_votes ( +<example title="SQL Schema" marginleft="1em" marginright="0em" fontsize="1.5em" type="php"><![CDATA[CREATE TABLE poll_votes ( user_name varchar(32) binary NOT NULL default '', poll_id smallint(6) NOT NULL default '0', question smallint(6) NOT NULL default '0', @@ -19,7 +19,7 @@ INDEX (poll_id) ) TYPE=MyISAM;]]></example> -<example title="Logic Layer" marginleft="1em" marginright="0em" fontsize="1.6em"><![CDATA[<?php +<example title="Logic Layer" marginleft="1em" marginright="0em" fontsize="1.5em"><![CDATA[<?php function db_connect() { mysql_pconnect("localhost","poll_user","password"); http://cvs.php.net/diff.php/presentations/slides/intro/sqlite1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/intro/sqlite1.xml diff -u presentations/slides/intro/sqlite1.xml:1.2 presentations/slides/intro/sqlite1.xml:1.3 --- presentations/slides/intro/sqlite1.xml:1.2 Tue Oct 26 13:53:02 2004 +++ presentations/slides/intro/sqlite1.xml Thu Sep 8 08:07:18 2005 @@ -9,7 +9,7 @@ $result = sqlite_query($db,'select bar from foo'); $record = sqlite_fetch_array($result); - echo "<pre>"; print_r($record); echo "</pre>"; + var_export($record); } else { die ($sqliteerror); } http://cvs.php.net/diff.php/presentations/slides/intro/ws4.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/intro/ws4.xml diff -u presentations/slides/intro/ws4.xml:1.1 presentations/slides/intro/ws4.xml:1.2 --- presentations/slides/intro/ws4.xml:1.1 Fri Apr 29 19:18:12 2005 +++ presentations/slides/intro/ws4.xml Thu Sep 8 08:07:18 2005 @@ -16,8 +16,10 @@ appid string (required) The application ID. See Application IDs for more information. context string (required) The context to extract terms from (UTF-8 encoded). query string An optional query to help with the extraction process.</example> + <example title="Example" fontsize="1.4em" rfontsize="1.3em" result="1"><![CDATA[<?php -$context = "Italian sculptors and painters of the renaissance favored the Virgin Mary for inspiration."; +$context = "Italian sculptors and painters of the ". + "renaissance favored the Virgin Mary for inspiration."; $url = 'http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction'; $post = "query=madonna&appid=RESTDemo&context=".rawurlencode($context); $ch = curl_init(); @@ -27,8 +29,10 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $xml = simplexml_load_string(curl_exec($ch)); curl_close($ch); -$config = array('indent'=>TRUE, 'indent-attributes'=>TRUE, 'wrap-attributes'=>TRUE,'input-xml'=>TRUE, 'output-xml'=>TRUE); -echo nl2br(str_replace(' ','&nbsp;',htmlspecialchars(tidy_parse_string($xml->asXML(),$config)))); +$config = array('indent'=>TRUE, 'indent-attributes'=>TRUE, + 'wrap-attributes'=>TRUE,'input-xml'=>TRUE, 'output-xml'=>TRUE); +echo nl2br(str_replace(' ','&nbsp;', + htmlspecialchars(tidy_parse_string($xml->asXML(),$config)))); ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/intro/ws5.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/intro/ws5.xml diff -u presentations/slides/intro/ws5.xml:1.1 presentations/slides/intro/ws5.xml:1.2 --- presentations/slides/intro/ws5.xml:1.1 Thu Sep 8 04:15:09 2005 +++ presentations/slides/intro/ws5.xml Thu Sep 8 08:07:18 2005 @@ -3,9 +3,9 @@ Flickr also has a REST interface </blurb> -<example title="REST Query to get public photos" result="0" fontsize="1em"><![CDATA[http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos&user_id=56053642@N00&api_key=...]]></example> +<example title="REST Query to get public photos" result="0" fontsize="1em" marginright="0em"><![CDATA[http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos&user_id=56053642@N00&api_key=...]]></example> -<example title="Returned XML" result="0" fontsize="1.4em"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> +<example title="Returned XML" result="0" fontsize="1.4em" marginright="0em"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <photos page="1" pages="1" perpage="100" total="2"> <photo id="39006009" owner="56053642@N00" secret="f2086066d5" server="33" @@ -15,17 +15,19 @@ </photos> </rsp>]]></example> -<example fontsize="1.2em" title="We can parse it like this"><![CDATA[<?php +<example fontsize="1.2em" title="We can parse it like this" result="1" marginright="0em"><![CDATA[<?php function photo_url($p, $size='s', $ext='jpg') { return "http://photos{$p['server']}.flickr.com/{$p['id']}_{$p['secret']}_{$size}.{$ext}"; } +$url = "http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos". + "&user_id=56053642@N00&per_page=2&api_key=3aba8184848f9263b80795c95529bcd1"; $xml = simplexml_load_file($url); $perpage = $xml->photos['perpage']; $total = $xml->photos['total']; foreach($xml->photos->photo as $photo) { - echo '<a href="'.$photo_url($photo.'m').'">'; - echo '<img src="'.$photo_url($photo).'" height="75" width="75" />'; + echo '<a href="'.photo_url($photo,'b').'" target="_blank">'; + echo '<img src="'.photo_url($photo).'" height="75" width="75" />'; echo '<br />'.$photo['title'].'</a><br />'; } ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/lamp/php-usage.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/lamp/php-usage.xml diff -u presentations/slides/lamp/php-usage.xml:1.1 presentations/slides/lamp/php-usage.xml:1.2 --- presentations/slides/lamp/php-usage.xml:1.1 Mon Apr 18 03:14:17 2005 +++ presentations/slides/lamp/php-usage.xml Thu Sep 8 08:07:19 2005 @@ -1,6 +1,6 @@ <slide> <title>PHP Usage</title> -<image align="center" filename="phpstats-200504.png" /> +<image align="center" filename="phpstats-200509.png" /> <break/> <blurb>Source: Netcraft</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/lamp/the-lamp-stack.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/lamp/the-lamp-stack.xml diff -u presentations/slides/lamp/the-lamp-stack.xml:1.1 presentations/slides/lamp/the-lamp-stack.xml:1.2 --- presentations/slides/lamp/the-lamp-stack.xml:1.1 Mon Apr 18 03:14:17 2005 +++ presentations/slides/lamp/the-lamp-stack.xml Thu Sep 8 08:07:19 2005 @@ -1,4 +1,5 @@ <slide> <title>The LAMP Stack</title> +<break lines="4" /> <image align="center" filename="the-lamp-stack.png" /> </slide> http://cvs.php.net/co.php/presentations/slkey.xml?r=1.1&p=1 Index: presentations/slkey.xml +++ presentations/slkey.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" > <!-- 60 Minutes --> <topic>PHP</topic> <title>PHP</title> <event>FOSSSL-05</event> <location>Colombo, Sri Lanka</location> <date>Sept.7, 2005</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/serverside.xml</slide> <slide>slides/intro/idea.xml</slide> <slide>slides/intro/max_dev.xml</slide> <slide>slides/keynotes/dev1.xml</slide> <slide>slides/keynotes/dev2.xml</slide> <slide>slides/intro/xml.xml</slide> <slide>slides/intro/sqlite1.xml</slide> <slide>slides/intro/sqlite2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws4.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/ajax.xml</slide> <slide>slides/intro/app_arch.xml</slide> <slide>slides/intro/php-template.xml</slide> <slide>slides/intro/poll1.xml</slide> <slide>slides/intro/poll2.xml</slide> <slide>slides/intro/poll3.xml</slide> <slide>slides/intro/php_tuning1.xml</slide> <slide>slides/intro/new_apc.xml</slide> <slide>slides/intro/php_opcode_caches3.xml</slide> <slide>slides/intro/php_june05_bm.xml</slide> <slide>slides/intro/unicode1.xml</slide> <slide>slides/intro/slkey_ref.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/sltut.xml?r=1.1&p=1 Index: presentations/sltut.xml +++ presentations/sltut.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" > <!-- 180 Minutes --> <topic>PHP</topic> <title>PHP Tutorial</title> <event>FOSSSL-05</event> <location>Colombo, Sri Lanka</location> <date>Sept.7, 2005</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/serverside.xml</slide> <slide>slides/intro/idea.xml</slide> <slide>slides/intro/embed2.xml</slide> <slide>slides/intro/basics.xml</slide> <slide>slides/intro/modes.xml</slide> <slide>slides/intro/forms3.xml</slide> <slide>slides/intro/syntax.xml</slide> <slide>slides/intro/typing.xml</slide> <slide>slides/intro/arrays.xml</slide> <slide>slides/intro/funcs.xml</slide> <slide>slides/keynotes/dev1.xml</slide> <slide>slides/keynotes/dev2.xml</slide> <slide>slides/intro/max_dev.xml</slide> <slide>slides/intro/count0.xml</slide> <slide>slides/intro/count1.xml</slide> <slide>slides/intro/count2.xml</slide> <slide>slides/intro/count3.xml</slide> <slide>slides/intro/count4.xml</slide> <slide>slides/intro/count5.xml</slide> <chapter title="PHP5"> <slide>slides/intro/php5_agenda.xml</slide> <slide>slides/intro/php5_evolution.xml</slide> <slide>slides/intro/php5_revolution.xml</slide> <slide>slides/intro/php5_refclone.xml</slide> <slide>slides/intro/php5_construct.xml</slide> <slide>slides/intro/php5_private.xml</slide> <slide>slides/intro/php5_protected.xml</slide> <slide>slides/intro/php5_setget.xml</slide> <slide>slides/intro/php5_call.xml</slide> <slide>slides/intro/php5_exceptions.xml</slide> <slide>slides/intro/php5_static.xml</slide> <slide>slides/intro/php5_autoload.xml</slide> <slide>slides/intro/php5_interfaces.xml</slide> <slide>slides/intro/php5_final.xml</slide> <slide>slides/intro/php5_hinting.xml</slide> <slide>slides/intro/php5_iteration.xml</slide> <slide>slides/intro/php5_clone.xml</slide> <slide>slides/intro/php5_comparison.xml</slide> <slide>slides/intro/php5_reflection.xml</slide> <slide>slides/intro/streams.xml</slide> <slide>slides/intro/sqlite1.xml</slide> <slide>slides/intro/sqlite2.xml</slide> <slide>slides/intro/php5q2.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws3.xml</slide> <slide>slides/intro/ws4.xml</slide> <slide>slides/intro/ws5.xml</slide> <slide>slides/intro/php5_image.xml</slide> </chapter> <slide>slides/intro/design.xml</slide> <slide>slides/intro/php-template.xml</slide> <slide>slides/intro/php-template1.xml</slide> <slide>slides/intro/php-i18n.xml</slide> <slide>slides/intro/php-l10n.xml</slide> <slide>slides/intro/unicode1.xml</slide> <slide>slides/intro/app_arch.xml</slide> <slide>slides/intro/poll1.xml</slide> <slide>slides/intro/poll2.xml</slide> <slide>slides/intro/poll3.xml</slide> <slide>slides/intro/php_tuning1.xml</slide> <slide>slides/intro/new_apc.xml</slide> <slide>slides/intro/php_opcode_caches3.xml</slide> <slide>slides/intro/php_june05_bm.xml</slide> <slide>slides/intro/tech_bench1.xml</slide> <slide>slides/intro/tech_bench2.xml</slide> <slide>slides/intro/php_profiling.xml</slide> <slide>slides/intro/tech_benchapc1.xml</slide> <slide>slides/intro/tech_benchminit.xml</slide> <slide>slides/intro/tech_bench5.xml</slide> <slide>slides/intro/tech_bench6.xml</slide> <slide>slides/intro/pecl_gen.xml</slide> <slide>slides/intro/repl1.xml</slide> <slide>slides/intro/repl3.xml</slide> <slide>slides/intro/security_agenda.xml</slide> <slide>slides/intro/input_filter.xml</slide> <slide>slides/intro/input_filter2.xml</slide> <slide>slides/intro/sltut_ref.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/intro/slkey_ref.xml?r=1.1&p=1 Index: presentations/slides/intro/slkey_ref.xml +++ presentations/slides/intro/slkey_ref.xml <slide title="Resources"> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="3em" marginleft="3em" leader="Slides: " href="http://talks.php.net/slkey"/> <link fontsize="3em" marginleft="3em" leader="APC: " href="http://cvs.php.net/pecl/apc"/> <link fontsize="3em" marginleft="3em" leader="Yahoo: " href="http://developer.yahoo.com/"/> </slide> http://cvs.php.net/co.php/presentations/slides/intro/xml.xml?r=1.1&p=1 Index: presentations/slides/intro/xml.xml +++ presentations/slides/intro/xml.xml <slide title="XML"> <break lines="1" /> <example title="All XML handling based on libxml2" marginleft="2em" marginright="0em" result="0"><![CDATA[<?php $dom = new domDocument; $dom->load('data.xml'); ?>]]></example> <example title="XSL" result="0" marginleft="2em" marginright="0em"><![CDATA[<?php $domxsl = domDocument::load('stylesheet.xsl'); $proc = new xsltProcessor; $proc->importStyleSheet($domxsl); echo $proc->transformToXML($dom); ?>]]></example> <example title="XPath" result="0" fontsize="1.5em" marginleft="2em" marginright="0em"><![CDATA[<?php $ctx = new domXPath($dom); $result = $ctx->query('/breakfast_menu/food[@itemno > 3]/price/text()'); foreach($result as $node) { echo $node->nodeValue."<br />\n"; } ?>]]></example> <example title="menu.xml" result="1" marginleft="2em" marginright="0em" fontsize="1.75em" rfontsize="1.5em"><![CDATA[<?php class entities_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $bucket->data = htmlentities($bucket->data); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register("entities", "entities_filter"); echo "<pre>"; readfile("php://filter/read=entities/resource=menu.xml"); echo "</pre>"; ?>]]></example> <example title="SimpleXML" result="1" marginleft="2em"><![CDATA[<?php $menu = simplexml_load_file('menu.xml'); foreach ($menu->food as $item) { echo "{$item->price}\t{$item->name}<br />\n"; } ?>]]></example> </slide>
« previous php.pres (#1178) next »