cvs: presentations / php5intro-nl.xml /slides/php5intro/nl asp.png call.xml cli-funkyness.xml cli.xml clone.xml demo.png domxml-load.xml error_cb.png
exceptions.xml gtk-pear-inst.xml gtk-simple.xml gtkinst.png hello.php namespaces.xml nestednamespaces.xml nesting.jpg newobjectmodel.xml newoo.png
old-noref.png old-ref.png oldobjectmodel.xml oldobjectmodel2.xml pear.gif pear.xml pecl.gif pecl.xml private.xml profile.png protected.xml qmark.png
questions.xml resources.xml setget.xml simplexml-change.xml simplexml-load.xml structors.xml trace.png vardump.png xdebug-cb-dump.xml xdebug-demo.xml
xdebug-profile.xml xdebug-trace.xml xdebug.xml xml.gif xml.xml
| From: | Derick Rethans | Date: | Wed, 21 May 2003 21:10:05 +0000 |
| Subject: | cvs: presentations / php5intro-nl.xml /slides/php5intro/nl asp.png call.xml cli-funkyness.xml cli.xml clone.xml demo.png domxml-load.xml error_cb.png exceptions.xml gtk-pear-inst.xml gtk-simple.xml gtkinst.png hello.php namespaces.xml nestednamespaces.xml nesting.jpg newobjectmodel.xml newoo.png old-noref.png old-ref.png oldobjectmodel.xml oldobjectmodel2.xml pear.gif pear.xml pecl.gif pecl.xml private.xml profile.png protected.xml qmark.png questions.xml resources.xml setget.xml simplexml-change.xml simplexml-load.xml structors.xml trace.png vardump.png xdebug-cb-dump.xml xdebug-demo.xml xdebug-profile.xml xdebug-trace.xml xdebug.xml xml.gif xml.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-730@lists.php.net to get a copy of this message | ||
derick Wed May 21 17:10:05 2003 EDT
Added files:
/presentations php5intro-nl.xml
/presentations/slides/php5intro/nl asp.png call.xml
cli-funkyness.xml cli.xml
clone.xml demo.png
domxml-load.xml error_cb.png
exceptions.xml gtk-pear-inst.xml
gtk-simple.xml gtkinst.png
hello.php namespaces.xml
nestednamespaces.xml nesting.jpg
newobjectmodel.xml newoo.png
old-noref.png old-ref.png
oldobjectmodel.xml
oldobjectmodel2.xml pear.gif
pear.xml pecl.gif pecl.xml
private.xml profile.png
protected.xml qmark.png
questions.xml resources.xml
setget.xml simplexml-change.xml
simplexml-load.xml structors.xml
trace.png vardump.png
xdebug-cb-dump.xml
xdebug-demo.xml
xdebug-profile.xml
xdebug-trace.xml xdebug.xml
xml.gif xml.xml
Log:
- Add the PHP 5 Intro slides for the NLUUG Spring Conference
Index: presentations/php5intro-nl.xml +++ presentations/php5intro-nl.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/srm/style.css" backgroundfixed="1" > <topic>PHP</topic> <title>Meer PHP met PHP 5</title> <event>Spring Conference 2003</event> <location>Ede, The Nederlands</location> <date>May 22, 2003</date> <speaker>Derick Rethans</speaker> <email>d.rethans@jdimedia.nl</email> <url>http://pres.derickrethans.nl/php5intro</url> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/php5intro/nl/oldobjectmodel.xml</slide> <slide>slides/php5intro/nl/oldobjectmodel2.xml</slide> <slide>slides/php5intro/nl/newobjectmodel.xml</slide> <slide>slides/php5intro/nl/clone.xml</slide> <slide>slides/php5intro/nl/structors.xml</slide> <slide>slides/php5intro/nl/private.xml</slide> <slide>slides/php5intro/nl/protected.xml</slide> <slide>slides/php5intro/nl/setget.xml</slide> <slide>slides/php5intro/nl/call.xml</slide> <slide>slides/php5intro/nl/exceptions.xml</slide> <slide>slides/php5intro/nl/namespaces.xml</slide> <slide>slides/php5intro/nl/nestednamespaces.xml</slide> <slide>slides/php5intro/nl/pear.xml</slide> <slide>slides/php5intro/nl/pecl.xml</slide> <slide>slides/php5intro/nl/cli.xml</slide> <slide>slides/php5intro/nl/cli-funkyness.xml</slide> <slide>slides/php5intro/nl/gtk-pear-inst.xml</slide> <slide>slides/php5intro/nl/gtk-simple.xml</slide> <slide>slides/php5intro/nl/xml.xml</slide> <slide>slides/php5intro/nl/domxml-load.xml</slide> <slide>slides/php5intro/nl/simplexml-load.xml</slide> <slide>slides/php5intro/nl/simplexml-change.xml</slide> <slide>slides/php5intro/nl/xdebug.xml</slide> <slide>slides/php5intro/nl/xdebug-cb-dump.xml</slide> <slide>slides/php5intro/nl/xdebug-trace.xml</slide> <slide>slides/php5intro/nl/xdebug-profile.xml</slide> <slide>slides/php5intro/nl/xdebug-demo.xml</slide> <slide>slides/php5intro/nl/questions.xml</slide> <slide>slides/php5intro/nl/resources.xml</slide> </presentation> Index: presentations/slides/php5intro/nl/call.xml +++ presentations/slides/php5intro/nl/call.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>__call()</title> <list marginleft="3em" effect="slide" fontsize="3em"> <bullet>Afvangen van method aanroepen</bullet> </list> <break /> <example fontsize="1em"><![CDATA[<?php ? >]]></example> <example fontsize="1em"><![CDATA[]]></example> </slide> Index: presentations/slides/php5intro/nl/cli-funkyness.xml +++ presentations/slides/php5intro/nl/cli-funkyness.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>CLI Tricks</title> <break /> <image marginleft="4em" align="right" filename="asp.png" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Dit is nieuw in PHP 5</bullet> <bullet>Bewerken van stdin</bullet> </list> <break lines="3" /> <example fontsize="1.1em"><![CDATA[-B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines]]></example> <break lines="2" /> <example fontsize="1.5em"><![CDATA[$ find . | php -B '$l = 0;' -R '$l+=count(file($argn));' -E 'echo "Lines: $l\n";']]></example> <example fontsize="1.5em"><![CDATA[Lines: 102643]]></example> </slide> Index: presentations/slides/php5intro/nl/cli.xml +++ presentations/slides/php5intro/nl/cli.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>CLI</title> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Command Line Interface</bullet> <bullet>Eigenlijk niet nieuw in PHP 5, maar PHP 4.2.0</bullet> <bullet>Ideaal voor shell scripts</bullet> </list> <break /> <example fontsize="1.4em"><![CDATA[[derick@kossu nl]$ php -v PHP 5.0.0-dev (cli) (built: May 20 2003 11:06:44) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies]]></example> </slide> Index: presentations/slides/php5intro/nl/clone.xml +++ presentations/slides/php5intro/nl/clone.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Clone</title> <list marginleft="3em" fontsize="3.5em"> <bullet>Impliciet clonen</bullet> </list> <break /> <example fontsize="1.3em"><![CDATA[<?php class OS { var $name; function OS($name) { $this->name = $name; } } function changeName($obj, $name) { $obj->name = $name; } $linux = new OS('linux'); $win = $linux->__clone(); changeName($win, 'windows'); echo $linux->name. "\n"; echo $win->name; ? >]]></example> <example fontsize="1.3em"><![CDATA[Segmentation fault (core dumped)]]></example> </slide> Index: presentations/slides/php5intro/nl/domxml-load.xml +++ presentations/slides/php5intro/nl/domxml-load.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DOMXML load</title> <example fontsize="1.5em"><![CDATA[<?php $doc = domxml_open_file('book.xml'); $root = $doc->child_nodes(); $root = $root[0]; $books = $root->child_nodes(); foreach ($books as $book) { if (@$book->tagname == 'book') { $content = $book->child_nodes(); foreach ($content as $elem) { if (@$elem->tagname == 'author') { $author = $elem->get_content(); } if (@$elem->tagname == 'title') { $title = $elem->get_content(); } } echo "{$title} was written by {$author}\n"; } } ?>]]></example> </slide> Index: presentations/slides/php5intro/nl/exceptions.xml +++ presentations/slides/php5intro/nl/exceptions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Exceptions</title> <blurb> </blurb> <blurb>PHP 4:</blurb> <example fontsize="1.2em"><![CDATA[<?php if (@mysql_connect('localhost', 'root', 'ut34FblY:')) { if (@mysql_select_db('game')) { $r = mysql_query('SELECT * FROM news ORDER BY date DESC LIMIT 1'); ...]]></example> <blurb> </blurb> <blurb>PHP 5:</blurb> <example fontsize="1.2em"><![CDATA[<?php try { mysql_connect('localhost', 'root', 'ut34FblY:')); mysql_select_db('game'); $r = mysql_query('SELECT * FROM news ORDER BY date DESC LIMIT 1'); } catch (Exception $e) { /* Do recovery */ exit(); }]]></example> </slide> Index: presentations/slides/php5intro/nl/gtk-pear-inst.xml +++ presentations/slides/php5intro/nl/gtk-pear-inst.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP-GTK</title> <image align="center" filename="gtkinst.png" /> </slide> Index: presentations/slides/php5intro/nl/gtk-simple.xml +++ presentations/slides/php5intro/nl/gtk-simple.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP-GTK Simple</title> <example filename="hello.php" fontsize="1.2em" /> </slide> Index: presentations/slides/php5intro/nl/hello.php +++ presentations/slides/php5intro/nl/hello.php <?php if (!extension_loaded('gtk')) { dl( 'php_gtk.' . PHP_SHLIB_SUFFIX); } /* Called when the window is being destroyed. Simply quit the main loop. */ function destroy() { Gtk::main_quit(); } /* Called when button is clicked. Print the message and destroy the window. */ function hello() { global $window; print "Hello World!\n"; $window->destroy(); } $window = &new GtkWindow(); $window->connect('destroy', 'destroy'); /* Create a button, connect its clicked signal to hello() function and add * the button to the window. */ $button = &new GtkButton('Hello World!'); $button->connect('clicked', 'hello'); $window->add($button); $window->show_all(); Gtk::main(); ?> Index: presentations/slides/php5intro/nl/namespaces.xml +++ presentations/slides/php5intro/nl/namespaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Namespaces</title> <example fontsize="1.3em"><![CDATA[<?php namespace Language { class Perl { function exec_stmt($stmt) { $command = escapeshellcmd($stmt); system("echo $command | perl"); } } class PHP { function exec_stmt($stmt) { eval($stmt); } } } $p = new Language::Perl; $p->exec_stmt("print 'Hello Freaky Deaky World!'"); ? >]]></example> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Class bibliotheken</bullet> <bullet>PEAR: PHP Extension and Application Repository</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/nestednamespaces.xml +++ presentations/slides/php5intro/nl/nestednamespaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Nested Namespaces</title> <example fontsize="1.3em"><![CDATA[<?php namespace Languages:Perl { class Execute { function statement($cmd) { $cmd = escapeshellcmd($cmd); system("echo $cmd | perl"); } } } $e = new Languages:Perl::Execute; $e->statement("print 'Hello World!'"); ? >]]></example> <image marginright="2em" filename="nesting.jpg" align="right" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Het voegt niets toe...</bullet> <bullet type="none" marginleft="4em">behalve verwarring :)</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/newobjectmodel.xml +++ presentations/slides/php5intro/nl/newobjectmodel.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 5</title> <break lines="1" /> <image align="center" filename="newoo.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Pass by reference</bullet> <bullet>Objecten worden gerefereerd met een handle.</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/oldobjectmodel.xml +++ presentations/slides/php5intro/nl/oldobjectmodel.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 4</title> <break lines="3" /> <example fontsize="1.5em"><![CDATA[<?php class OS { var $name; function OS($name) { $this->name = $name; } } function changeName($obj, $name) { $obj->name = $name; } $linux = new OS('linux'); changeName($linux, 'windows'); echo $linux->name; ? >]]></example> </slide> Index: presentations/slides/php5intro/nl/oldobjectmodel2.xml +++ presentations/slides/php5intro/nl/oldobjectmodel2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 4</title> <image align="center" filename="old-noref.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Pass by value</bullet> <bullet>Gebruik overal references...</bullet> <bullet marginleft="5em" type="none">bij aanroep en zelfs bij instantiatie.</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/pear.xml +++ presentations/slides/php5intro/nl/pear.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PEAR</title> <image align="right" filename="pear.gif" /> <list marginleft="2em" fontsize="3.5em"> <bullet>PHP Extension and Application Repository</bullet> <bullet>Commandline tool voor beheer.</bullet> <bullet>Dependency checking.</bullet> </list> <break /> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear -v install Net_DIME downloading Net_DIME-0.3.tgz ... ...done: 6,740 bytes install ok: Net_DIME 0.3]]></example> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-upgrades Available Upgrades (beta): ========================== Package Version Size DB 1.4.0 60kB HTML_QuickForm 3.0Beta2 60kB Net_SMTP 1.2.3 6.1kB]]></example> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-all | head -6 All packages: ============= Package Latest Local apd 0.4p2 bcompiler 0.4 0.4 PHPDoc 0.1.0 0.1.0 ]]></example> </slide> Index: presentations/slides/php5intro/nl/pecl.xml +++ presentations/slides/php5intro/nl/pecl.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PECL</title> <image align="right" filename="pecl.gif" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>PHP Extension Code Library</bullet> <bullet>Siberia</bullet> <bullet>Shared extensions</bullet> <bullet>Zelfde tool als voor PEAR</bullet> <bullet>Toekomstig thuis voor alle extensies</bullet> </list> <break /> <example fontsize="1.4em"><![CDATA[[derick@kossu nl]$ sudo pear -v install http://files.derickrethans.nl/xdebug-1.2.0.tgz downloading xdebug-1.2.0.tgz ... ...done: 58,608 bytes 28 source files, building running: phpize PHP Api Version : 20020918 Zend Module Api No : 20020429 Zend Extension Api No : 20021010 building in /var/tmp/pear-build-root/xdebug-1.2.0 running: /tmp/tmpXOqy3A/xdebug-1.2.0/configure running: make xdebug.so copied to /tmp/tmpXOqy3A/xdebug-1.2.0/xdebug.so install ok: xdebug 1.2.0]]></example> </slide> Index: presentations/slides/php5intro/nl/private.xml +++ presentations/slides/php5intro/nl/private.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Private</title> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>'Strengste' access level</bullet> <bullet>Alleen toegankelijk voor eigen class.</bullet> <bullet>Afdwingen gebruik get()/set() functies</bullet> </list> <break lines="1" /> <example fontsize="1.3em"><![CDATA[<?php class Bedroom { private $action; function __construct() { $this->action = 'fun'; } } $br = new Bedroom(); echo $br->action. "\n"; ? >]]></example> <example fontsize="1.3em"><![CDATA[Fatal error: Cannot access private property bedroom::$action in - on line 12]]></example> </slide> Index: presentations/slides/php5intro/nl/protected.xml +++ presentations/slides/php5intro/nl/protected.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protected</title> <list marginleft="1em" effect="slide" fontsize="3.3em"> <bullet>Alleen toegankelijk voor eigen class en afgeleidde classes.</bullet> <bullet>Handig in packages.</bullet> </list> <break lines="1" /> <example fontsize="1.05em"><![CDATA[<?php class Bedroom { protected $action; function __construct() { $this->action = 'fun'; } protected function peek() { echo $this->action. "\n"; } } class Keyhole extends Bedroom { function peek() { echo $this->action. "\n"; } } $kh = new Keyhole(); $kh->peek(); $br = new Bedroom(); $br->peek(); /* Werkt niet */ ? >]]></example> </slide> Index: presentations/slides/php5intro/nl/questions.xml +++ presentations/slides/php5intro/nl/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb></blurb> <image filename="qmark.png" align="center"/> </slide> Index: presentations/slides/php5intro/nl/resources.xml +++ presentations/slides/php5intro/nl/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="2em" marginleft="4em" leader="Deze presentatie: " href="http://pres.derickrethans.nl/php5intro" target="_new"/> <link fontsize="2em" marginleft="4em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/php5intro/nl/setget.xml +++ presentations/slides/php5intro/nl/setget.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>__set() en __get()</title> <list marginleft="3em" effect="slide" fontsize="2.5em"> <bullet>Afvangen van gebruik properties</bullet> <bullet>In combinatie met private</bullet> <bullet>Als vervanging voor 'dynamic properties'</bullet> </list> <break /> <example fontsize="1em"><![CDATA[<?php class OSses { private $names = array(); public function __set($name, $value) { if (!in_array($name, array('windows', 'dos'))) { $this->names[$name] = $value; } } public function getNames() { return $this->names; } } $osses = new OSses(); $osses->linux = 'rocks'; $osses->windows = 'blows'; var_dump($osses->getNames()); ? >]]></example> <example fontsize="1em"><![CDATA[array(1) { ["linux"]=> string(5) "rocks" }]]></example> </slide> Index: presentations/slides/php5intro/nl/simplexml-change.xml +++ presentations/slides/php5intro/nl/simplexml-change.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SimpleXML save</title> <break /> <blurb>Before:</blurb> <example fontsize="1.2em"><![CDATA[<security> <id>15</id> </security>]]></example> <break /> <blurb>Change the ID:</blurb> <example fontsize="1.2em"><![CDATA[<?php $s = simplexml_load_file('security.xml'); echo $s->id; $s->id = 20; simplexml_save_file($s, 'security.new.xml'); ?>]]></example> <break /> <blurb>After:</blurb> <example fontsize="1.2em"><![CDATA[<security> <id>20</id> </security>]]></example> </slide> Index: presentations/slides/php5intro/nl/simplexml-load.xml +++ presentations/slides/php5intro/nl/simplexml-load.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SimpleXML load</title> <break lines="3" /> <example fontsize="1.4em"><![CDATA[<?php $books = simplexml_load_file('book.xml')->book; foreach ($books as $book) { echo "{$book->title} was written by {$book->author}\n"; } ?>]]></example> <break lines="3" /> <list marginleft="2em" fontsize="4.5em" effect="slide"> <bullet>K.I.S.S.</bullet> <bullet type="none" marginleft="4em">Keep It Simple Stupid</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/structors.xml +++ presentations/slides/php5intro/nl/structors.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Constructors/Destructors</title> <image align="center" filename="construction.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Nieuw type constructors: __construct().</bullet> <bullet>Eindelijk destructors: __destruct().</bullet> </list> <break lines="1" /> <example fontsize="1em"><![CDATA[<?php class Construction { var $area; function __construct($area) { $this->$area = $area; } function __destruct() { echo "Leaving {$this->area}\n"; } } $c = new Construction('London'); $vegas = $c; $vegas->area = "Las Vegas"; echo "\$c = NULL\n"; $c = NULL; echo "\$vegas = NULL\n"; $vegas = NULL; ? >]]></example> <example fontsize="1em"><![CDATA[$c = NULL $vegas = NULL Leaving Las Vegas EOS]]></example> </slide> Index: presentations/slides/php5intro/nl/xdebug-cb-dump.xml +++ presentations/slides/php5intro/nl/xdebug-cb-dump.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Aangepaste PHP functies</title> <blurb> </blurb> <blurb>Aangepaste error handler: </blurb> <image align="center" filename="error_cb.png"/> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb>Gemodificeerde var_dump() functie:</blurb> <image align="center" filename="vardump.png"/> </slide> Index: presentations/slides/php5intro/nl/xdebug-demo.xml +++ presentations/slides/php5intro/nl/xdebug-demo.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demo</title> <blurb> </blurb> <image align="center" filename="demo.png"/> </slide> Index: presentations/slides/php5intro/nl/xdebug-profile.xml +++ presentations/slides/php5intro/nl/xdebug-profile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Profiling</title> <image align="center" filename="profile.png"/> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>xdebug_start_profile()</bullet> <bullet>xdebug_dump_function_profile(mode)</bullet> <bullet marginleft="2em">8 profiling modes</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xdebug-trace.xml +++ presentations/slides/php5intro/nl/xdebug-trace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Tracing</title> <blurb> </blurb> <image align="center" filename="trace.png"/> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>xdebug_start_trace()</bullet> <bullet>xdebug_dump_function_trace()</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xdebug.xml +++ presentations/slides/php5intro/nl/xdebug.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>Geen 'echo' debugging meer nodig</bullet> <bullet>Zend extensie</bullet> <bullet type="none" marginleft="2em">zend_extension=/path/to/xdebug.so</bullet> <bullet type="none" marginleft="2em">zend_extension_ts=C:/path/to/xdebug.dll</bullet> <bullet>Grijpt in in de standaard error handler</bullet> <bullet type="none" marginleft="2em">en in de uitvoering van functies</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xml.xml +++ presentations/slides/php5intro/nl/xml.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing XML</title> <image align="center" filename="xml.gif" /> <blurb>Example XML to parse:</blurb> <example fontsize="1.2em"><![CDATA[<books> <book> <title>The Grapes of Wrath</title> <author>John Steinbeck</author> </book> <book> <title>The Pearl</title> <author>John Steinbeck</author> </book> </books>]]></example> <blurb>Expected output:</blurb> <example fontsize="1.2em"><![CDATA[The Grapes of Wrath was written by John Steinbeck The Pearl was written by John Steinbeck]]></example> </slide>
Index: presentations/php5intro-nl.xml +++ presentations/php5intro-nl.xml <presentation template="php" navmode="html" navbarbackground="#3C5BB4" stylesheet="presentations/slides/srm/style.css" backgroundfixed="1" > <topic>PHP</topic> <title>Meer PHP met PHP 5</title> <event>Spring Conference 2003</event> <location>Ede, The Nederlands</location> <date>May 22, 2003</date> <speaker>Derick Rethans</speaker> <email>d.rethans@jdimedia.nl</email> <url>http://pres.derickrethans.nl/php5intro</url> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/php5intro/nl/oldobjectmodel.xml</slide> <slide>slides/php5intro/nl/oldobjectmodel2.xml</slide> <slide>slides/php5intro/nl/newobjectmodel.xml</slide> <slide>slides/php5intro/nl/clone.xml</slide> <slide>slides/php5intro/nl/structors.xml</slide> <slide>slides/php5intro/nl/private.xml</slide> <slide>slides/php5intro/nl/protected.xml</slide> <slide>slides/php5intro/nl/setget.xml</slide> <slide>slides/php5intro/nl/call.xml</slide> <slide>slides/php5intro/nl/exceptions.xml</slide> <slide>slides/php5intro/nl/namespaces.xml</slide> <slide>slides/php5intro/nl/nestednamespaces.xml</slide> <slide>slides/php5intro/nl/pear.xml</slide> <slide>slides/php5intro/nl/pecl.xml</slide> <slide>slides/php5intro/nl/cli.xml</slide> <slide>slides/php5intro/nl/cli-funkyness.xml</slide> <slide>slides/php5intro/nl/gtk-pear-inst.xml</slide> <slide>slides/php5intro/nl/gtk-simple.xml</slide> <slide>slides/php5intro/nl/xml.xml</slide> <slide>slides/php5intro/nl/domxml-load.xml</slide> <slide>slides/php5intro/nl/simplexml-load.xml</slide> <slide>slides/php5intro/nl/simplexml-change.xml</slide> <slide>slides/php5intro/nl/xdebug.xml</slide> <slide>slides/php5intro/nl/xdebug-cb-dump.xml</slide> <slide>slides/php5intro/nl/xdebug-trace.xml</slide> <slide>slides/php5intro/nl/xdebug-profile.xml</slide> <slide>slides/php5intro/nl/xdebug-demo.xml</slide> <slide>slides/php5intro/nl/questions.xml</slide> <slide>slides/php5intro/nl/resources.xml</slide> </presentation> Index: presentations/slides/php5intro/nl/call.xml +++ presentations/slides/php5intro/nl/call.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>__call()</title> <list marginleft="3em" effect="slide" fontsize="3em"> <bullet>Afvangen van method aanroepen</bullet> </list> <break /> <example fontsize="1em"><![CDATA[<?php ? >]]></example> <example fontsize="1em"><![CDATA[]]></example> </slide> Index: presentations/slides/php5intro/nl/cli-funkyness.xml +++ presentations/slides/php5intro/nl/cli-funkyness.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>CLI Tricks</title> <break /> <image marginleft="4em" align="right" filename="asp.png" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Dit is nieuw in PHP 5</bullet> <bullet>Bewerken van stdin</bullet> </list> <break lines="3" /> <example fontsize="1.1em"><![CDATA[-B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines]]></example> <break lines="2" /> <example fontsize="1.5em"><![CDATA[$ find . | php -B '$l = 0;' -R '$l+=count(file($argn));' -E 'echo "Lines: $l\n";']]></example> <example fontsize="1.5em"><![CDATA[Lines: 102643]]></example> </slide> Index: presentations/slides/php5intro/nl/cli.xml +++ presentations/slides/php5intro/nl/cli.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>CLI</title> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Command Line Interface</bullet> <bullet>Eigenlijk niet nieuw in PHP 5, maar PHP 4.2.0</bullet> <bullet>Ideaal voor shell scripts</bullet> </list> <break /> <example fontsize="1.4em"><![CDATA[[derick@kossu nl]$ php -v PHP 5.0.0-dev (cli) (built: May 20 2003 11:06:44) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies]]></example> </slide> Index: presentations/slides/php5intro/nl/clone.xml +++ presentations/slides/php5intro/nl/clone.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Clone</title> <list marginleft="3em" fontsize="3.5em"> <bullet>Impliciet clonen</bullet> </list> <break /> <example fontsize="1.3em"><![CDATA[<?php class OS { var $name; function OS($name) { $this->name = $name; } } function changeName($obj, $name) { $obj->name = $name; } $linux = new OS('linux'); $win = $linux->__clone(); changeName($win, 'windows'); echo $linux->name. "\n"; echo $win->name; ? >]]></example> <example fontsize="1.3em"><![CDATA[Segmentation fault (core dumped)]]></example> </slide> Index: presentations/slides/php5intro/nl/domxml-load.xml +++ presentations/slides/php5intro/nl/domxml-load.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DOMXML load</title> <example fontsize="1.5em"><![CDATA[<?php $doc = domxml_open_file('book.xml'); $root = $doc->child_nodes(); $root = $root[0]; $books = $root->child_nodes(); foreach ($books as $book) { if (@$book->tagname == 'book') { $content = $book->child_nodes(); foreach ($content as $elem) { if (@$elem->tagname == 'author') { $author = $elem->get_content(); } if (@$elem->tagname == 'title') { $title = $elem->get_content(); } } echo "{$title} was written by {$author}\n"; } } ?>]]></example> </slide> Index: presentations/slides/php5intro/nl/exceptions.xml +++ presentations/slides/php5intro/nl/exceptions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Exceptions</title> <blurb> </blurb> <blurb>PHP 4:</blurb> <example fontsize="1.2em"><![CDATA[<?php if (@mysql_connect('localhost', 'root', 'ut34FblY:')) { if (@mysql_select_db('game')) { $r = mysql_query('SELECT * FROM news ORDER BY date DESC LIMIT 1'); ...]]></example> <blurb> </blurb> <blurb>PHP 5:</blurb> <example fontsize="1.2em"><![CDATA[<?php try { mysql_connect('localhost', 'root', 'ut34FblY:')); mysql_select_db('game'); $r = mysql_query('SELECT * FROM news ORDER BY date DESC LIMIT 1'); } catch (Exception $e) { /* Do recovery */ exit(); }]]></example> </slide> Index: presentations/slides/php5intro/nl/gtk-pear-inst.xml +++ presentations/slides/php5intro/nl/gtk-pear-inst.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP-GTK</title> <image align="center" filename="gtkinst.png" /> </slide> Index: presentations/slides/php5intro/nl/gtk-simple.xml +++ presentations/slides/php5intro/nl/gtk-simple.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP-GTK Simple</title> <example filename="hello.php" fontsize="1.2em" /> </slide> Index: presentations/slides/php5intro/nl/hello.php +++ presentations/slides/php5intro/nl/hello.php <?php if (!extension_loaded('gtk')) { dl( 'php_gtk.' . PHP_SHLIB_SUFFIX); } /* Called when the window is being destroyed. Simply quit the main loop. */ function destroy() { Gtk::main_quit(); } /* Called when button is clicked. Print the message and destroy the window. */ function hello() { global $window; print "Hello World!\n"; $window->destroy(); } $window = &new GtkWindow(); $window->connect('destroy', 'destroy'); /* Create a button, connect its clicked signal to hello() function and add * the button to the window. */ $button = &new GtkButton('Hello World!'); $button->connect('clicked', 'hello'); $window->add($button); $window->show_all(); Gtk::main(); ?> Index: presentations/slides/php5intro/nl/namespaces.xml +++ presentations/slides/php5intro/nl/namespaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Namespaces</title> <example fontsize="1.3em"><![CDATA[<?php namespace Language { class Perl { function exec_stmt($stmt) { $command = escapeshellcmd($stmt); system("echo $command | perl"); } } class PHP { function exec_stmt($stmt) { eval($stmt); } } } $p = new Language::Perl; $p->exec_stmt("print 'Hello Freaky Deaky World!'"); ? >]]></example> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Class bibliotheken</bullet> <bullet>PEAR: PHP Extension and Application Repository</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/nestednamespaces.xml +++ presentations/slides/php5intro/nl/nestednamespaces.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Nested Namespaces</title> <example fontsize="1.3em"><![CDATA[<?php namespace Languages:Perl { class Execute { function statement($cmd) { $cmd = escapeshellcmd($cmd); system("echo $cmd | perl"); } } } $e = new Languages:Perl::Execute; $e->statement("print 'Hello World!'"); ? >]]></example> <image marginright="2em" filename="nesting.jpg" align="right" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>Het voegt niets toe...</bullet> <bullet type="none" marginleft="4em">behalve verwarring :)</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/newobjectmodel.xml +++ presentations/slides/php5intro/nl/newobjectmodel.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 5</title> <break lines="1" /> <image align="center" filename="newoo.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Pass by reference</bullet> <bullet>Objecten worden gerefereerd met een handle.</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/oldobjectmodel.xml +++ presentations/slides/php5intro/nl/oldobjectmodel.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 4</title> <break lines="3" /> <example fontsize="1.5em"><![CDATA[<?php class OS { var $name; function OS($name) { $this->name = $name; } } function changeName($obj, $name) { $obj->name = $name; } $linux = new OS('linux'); changeName($linux, 'windows'); echo $linux->name; ? >]]></example> </slide> Index: presentations/slides/php5intro/nl/oldobjectmodel2.xml +++ presentations/slides/php5intro/nl/oldobjectmodel2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Objectmodel in PHP 4</title> <image align="center" filename="old-noref.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Pass by value</bullet> <bullet>Gebruik overal references...</bullet> <bullet marginleft="5em" type="none">bij aanroep en zelfs bij instantiatie.</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/pear.xml +++ presentations/slides/php5intro/nl/pear.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PEAR</title> <image align="right" filename="pear.gif" /> <list marginleft="2em" fontsize="3.5em"> <bullet>PHP Extension and Application Repository</bullet> <bullet>Commandline tool voor beheer.</bullet> <bullet>Dependency checking.</bullet> </list> <break /> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear -v install Net_DIME downloading Net_DIME-0.3.tgz ... ...done: 6,740 bytes install ok: Net_DIME 0.3]]></example> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-upgrades Available Upgrades (beta): ========================== Package Version Size DB 1.4.0 60kB HTML_QuickForm 3.0Beta2 60kB Net_SMTP 1.2.3 6.1kB]]></example> <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-all | head -6 All packages: ============= Package Latest Local apd 0.4p2 bcompiler 0.4 0.4 PHPDoc 0.1.0 0.1.0 ]]></example> </slide> Index: presentations/slides/php5intro/nl/pecl.xml +++ presentations/slides/php5intro/nl/pecl.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PECL</title> <image align="right" filename="pecl.gif" /> <list marginleft="2em" fontsize="3.5em" effect="slide"> <bullet>PHP Extension Code Library</bullet> <bullet>Siberia</bullet> <bullet>Shared extensions</bullet> <bullet>Zelfde tool als voor PEAR</bullet> <bullet>Toekomstig thuis voor alle extensies</bullet> </list> <break /> <example fontsize="1.4em"><![CDATA[[derick@kossu nl]$ sudo pear -v install http://files.derickrethans.nl/xdebug-1.2.0.tgz downloading xdebug-1.2.0.tgz ... ...done: 58,608 bytes 28 source files, building running: phpize PHP Api Version : 20020918 Zend Module Api No : 20020429 Zend Extension Api No : 20021010 building in /var/tmp/pear-build-root/xdebug-1.2.0 running: /tmp/tmpXOqy3A/xdebug-1.2.0/configure running: make xdebug.so copied to /tmp/tmpXOqy3A/xdebug-1.2.0/xdebug.so install ok: xdebug 1.2.0]]></example> </slide> Index: presentations/slides/php5intro/nl/private.xml +++ presentations/slides/php5intro/nl/private.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Private</title> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>'Strengste' access level</bullet> <bullet>Alleen toegankelijk voor eigen class.</bullet> <bullet>Afdwingen gebruik get()/set() functies</bullet> </list> <break lines="1" /> <example fontsize="1.3em"><![CDATA[<?php class Bedroom { private $action; function __construct() { $this->action = 'fun'; } } $br = new Bedroom(); echo $br->action. "\n"; ? >]]></example> <example fontsize="1.3em"><![CDATA[Fatal error: Cannot access private property bedroom::$action in - on line 12]]></example> </slide> Index: presentations/slides/php5intro/nl/protected.xml +++ presentations/slides/php5intro/nl/protected.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Protected</title> <list marginleft="1em" effect="slide" fontsize="3.3em"> <bullet>Alleen toegankelijk voor eigen class en afgeleidde classes.</bullet> <bullet>Handig in packages.</bullet> </list> <break lines="1" /> <example fontsize="1.05em"><![CDATA[<?php class Bedroom { protected $action; function __construct() { $this->action = 'fun'; } protected function peek() { echo $this->action. "\n"; } } class Keyhole extends Bedroom { function peek() { echo $this->action. "\n"; } } $kh = new Keyhole(); $kh->peek(); $br = new Bedroom(); $br->peek(); /* Werkt niet */ ? >]]></example> </slide> Index: presentations/slides/php5intro/nl/questions.xml +++ presentations/slides/php5intro/nl/questions.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Questions</title> <blurb></blurb> <image filename="qmark.png" align="center"/> </slide> Index: presentations/slides/php5intro/nl/resources.xml +++ presentations/slides/php5intro/nl/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="2em" marginleft="4em" leader="Deze presentatie: " href="http://pres.derickrethans.nl/php5intro" target="_new"/> <link fontsize="2em" marginleft="4em" leader="PHP: " href="http://www.php.net" target="_new"/> </slide> Index: presentations/slides/php5intro/nl/setget.xml +++ presentations/slides/php5intro/nl/setget.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>__set() en __get()</title> <list marginleft="3em" effect="slide" fontsize="2.5em"> <bullet>Afvangen van gebruik properties</bullet> <bullet>In combinatie met private</bullet> <bullet>Als vervanging voor 'dynamic properties'</bullet> </list> <break /> <example fontsize="1em"><![CDATA[<?php class OSses { private $names = array(); public function __set($name, $value) { if (!in_array($name, array('windows', 'dos'))) { $this->names[$name] = $value; } } public function getNames() { return $this->names; } } $osses = new OSses(); $osses->linux = 'rocks'; $osses->windows = 'blows'; var_dump($osses->getNames()); ? >]]></example> <example fontsize="1em"><![CDATA[array(1) { ["linux"]=> string(5) "rocks" }]]></example> </slide> Index: presentations/slides/php5intro/nl/simplexml-change.xml +++ presentations/slides/php5intro/nl/simplexml-change.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SimpleXML save</title> <break /> <blurb>Before:</blurb> <example fontsize="1.2em"><![CDATA[<security> <id>15</id> </security>]]></example> <break /> <blurb>Change the ID:</blurb> <example fontsize="1.2em"><![CDATA[<?php $s = simplexml_load_file('security.xml'); echo $s->id; $s->id = 20; simplexml_save_file($s, 'security.new.xml'); ?>]]></example> <break /> <blurb>After:</blurb> <example fontsize="1.2em"><![CDATA[<security> <id>20</id> </security>]]></example> </slide> Index: presentations/slides/php5intro/nl/simplexml-load.xml +++ presentations/slides/php5intro/nl/simplexml-load.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>SimpleXML load</title> <break lines="3" /> <example fontsize="1.4em"><![CDATA[<?php $books = simplexml_load_file('book.xml')->book; foreach ($books as $book) { echo "{$book->title} was written by {$book->author}\n"; } ?>]]></example> <break lines="3" /> <list marginleft="2em" fontsize="4.5em" effect="slide"> <bullet>K.I.S.S.</bullet> <bullet type="none" marginleft="4em">Keep It Simple Stupid</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/structors.xml +++ presentations/slides/php5intro/nl/structors.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Constructors/Destructors</title> <image align="center" filename="construction.png" /> <list marginleft="3em" effect="slide" fontsize="3.5em"> <bullet>Nieuw type constructors: __construct().</bullet> <bullet>Eindelijk destructors: __destruct().</bullet> </list> <break lines="1" /> <example fontsize="1em"><![CDATA[<?php class Construction { var $area; function __construct($area) { $this->$area = $area; } function __destruct() { echo "Leaving {$this->area}\n"; } } $c = new Construction('London'); $vegas = $c; $vegas->area = "Las Vegas"; echo "\$c = NULL\n"; $c = NULL; echo "\$vegas = NULL\n"; $vegas = NULL; ? >]]></example> <example fontsize="1em"><![CDATA[$c = NULL $vegas = NULL Leaving Las Vegas EOS]]></example> </slide> Index: presentations/slides/php5intro/nl/xdebug-cb-dump.xml +++ presentations/slides/php5intro/nl/xdebug-cb-dump.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Aangepaste PHP functies</title> <blurb> </blurb> <blurb>Aangepaste error handler: </blurb> <image align="center" filename="error_cb.png"/> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb>Gemodificeerde var_dump() functie:</blurb> <image align="center" filename="vardump.png"/> </slide> Index: presentations/slides/php5intro/nl/xdebug-demo.xml +++ presentations/slides/php5intro/nl/xdebug-demo.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demo</title> <blurb> </blurb> <image align="center" filename="demo.png"/> </slide> Index: presentations/slides/php5intro/nl/xdebug-profile.xml +++ presentations/slides/php5intro/nl/xdebug-profile.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Profiling</title> <image align="center" filename="profile.png"/> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>xdebug_start_profile()</bullet> <bullet>xdebug_dump_function_profile(mode)</bullet> <bullet marginleft="2em">8 profiling modes</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xdebug-trace.xml +++ presentations/slides/php5intro/nl/xdebug-trace.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Tracing</title> <blurb> </blurb> <image align="center" filename="trace.png"/> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="5em"> <bullet>xdebug_start_trace()</bullet> <bullet>xdebug_dump_function_trace()</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xdebug.xml +++ presentations/slides/php5intro/nl/xdebug.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <list effect="slide" fontsize="4.5em"> <bullet>Geen 'echo' debugging meer nodig</bullet> <bullet>Zend extensie</bullet> <bullet type="none" marginleft="2em">zend_extension=/path/to/xdebug.so</bullet> <bullet type="none" marginleft="2em">zend_extension_ts=C:/path/to/xdebug.dll</bullet> <bullet>Grijpt in in de standaard error handler</bullet> <bullet type="none" marginleft="2em">en in de uitvoering van functies</bullet> </list> </slide> Index: presentations/slides/php5intro/nl/xml.xml +++ presentations/slides/php5intro/nl/xml.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Parsing XML</title> <image align="center" filename="xml.gif" /> <blurb>Example XML to parse:</blurb> <example fontsize="1.2em"><![CDATA[<books> <book> <title>The Grapes of Wrath</title> <author>John Steinbeck</author> </book> <book> <title>The Pearl</title> <author>John Steinbeck</author> </book> </books>]]></example> <blurb>Expected output:</blurb> <example fontsize="1.2em"><![CDATA[The Grapes of Wrath was written by John Steinbeck The Pearl was written by John Steinbeck]]></example> </slide>