cvs: presentations / php5-intro-oscon-2003.xml /slides/php5intro book.php book.xml resources.xml rss_feed.php rss_feed.rdf simplexml1.xml
simplexml2.xml sqlite1.php sqlite1.xml sqlite2.php sqlite2.xml

From: Date: Mon, 30 Jun 2003 02:39:41 +0000
Subject: cvs: presentations / php5-intro-oscon-2003.xml /slides/php5intro book.php book.xml resources.xml rss_feed.php rss_feed.rdf simplexml1.xml
simplexml2.xml sqlite1.php sqlite1.xml sqlite2.php sqlite2.xml
Groups: php.pres 
Request: Send a blank email to pres+get-768@lists.php.net to get a copy of this message
shane Sun Jun 29 22:39:41 2003 EDT Added files: /presentations/slides/php5intro book.php book.xml resources.xml rss_feed.php rss_feed.rdf simplexml1.xml simplexml2.xml sqlite1.php sqlite1.xml sqlite2.php sqlite2.xml Modified files: /presentations php5-intro-oscon-2003.xml Log: add simplexml and sqlite slides to intro

Index: presentations/php5-intro-oscon-2003.xml diff -u presentations/php5-intro-oscon-2003.xml:1.1 presentations/php5-intro-oscon-2003.xml:1.2 --- presentations/php5-intro-oscon-2003.xml:1.1 Sun Jun 29 04:35:26 2003 +++ presentations/php5-intro-oscon-2003.xml Sun Jun 29 22:39:41 2003 @@ -22,8 +22,6 @@ <slide>slides/php5intro/blanktitlepage.xml</slide> <slide>slides/php5intro/newfunctionality.xml</slide> <slide>slides/php5intro/internals1.xml</slide> -<slide>slides/php5intro/exceptions.xml</slide> -<slide>slides/php5intro/exceptions1.xml</slide> <slide>slides/php5intro/variables.xml</slide> <slide>slides/php5intro/oldoo.xml</slide> <slide>slides/php5intro/newoo1.xml</slide> @@ -44,13 +42,18 @@ <slide>slides/php5intro/autoload.xml</slide> <slide>slides/php5intro/overload.xml</slide> <slide>slides/php5intro/overload1.xml</slide> -<slide>slides/php5intro/abstract.xml</slide> <slide>slides/php5intro/abstract1.xml</slide> <slide>slides/php5intro/interfaces.xml</slide> <slide>slides/php5intro/interfaces1.xml</slide> +<slide>slides/php5intro/exceptions.xml</slide> +<slide>slides/php5intro/exceptions1.xml</slide> <slide>slides/php5intro/typehint.xml</slide> <slide>slides/php5intro/spl.xml</slide> <slide>slides/php5intro/streams.xml</slide> -<slide>slides/php5intro/thankyou.xml</slide> +<slide>slides/php5intro/simplexml1.xml</slide> +<slide>slides/php5intro/simplexml2.xml</slide> +<slide>slides/php5intro/sqlite1.xml</slide> +<slide>slides/php5intro/sqlite2.xml</slide> +<slide>slides/php5intro/resources.xml</slide> </presentation> Index: presentations/slides/php5intro/book.php +++ presentations/slides/php5intro/book.php <?php $books = simplexml_load_file('presentations/slides/php5intro/book.xml'); foreach ($books->book as $book) { echo "{$book->title} was written by {$book->author}<br>\n"; } ?> Index: presentations/slides/php5intro/book.xml +++ presentations/slides/php5intro/book.xml <books> <book> <title>The Grapes of Wrath</title> <author>John Steinbeck</author> </book> <book> <title>The Pearl</title> <author>John Steinbeck</author> </book> </books> Index: presentations/slides/php5intro/resources.xml +++ presentations/slides/php5intro/resources.xml <slide> <title>Thank You!</title> <blurb fontsize="3.5em" title="More Information"> </blurb> <link align="left" leader="These Slides, " href="http://talks.php.net/" /> <link align="left" leader="PHP/Zend Changes, " href="http://cvs.php.net/cvs.php/ZendEngine2/ZEND_CHANGES?login=2" /> <link align="left" leader="Zend Object API, " href="http://cvs.php.net/cvs.php/ZendEngine2/OBJECTS2_HOWTO?login=2" /> <link align="left" leader="SQLite, " href="http://www.php.net/ref.sqlite"/> <link align="left" leader="SimpleXML, " href="http://www.php.net/ref.simplexml"/> <link align="left" leader="SPL, " href="http://marcus-boerger.de/php/ext/spl/" /> </slide> Index: presentations/slides/php5intro/rss_feed.php +++ presentations/slides/php5intro/rss_feed.php <?php $rdf = simplexml_load_file('presentations/slides/php5intro/rss_feed.rdf'); ?> <table border="1" cellspacing="0" cellpadding="0" bordercolor="#0000FF"> <tr> <td> <table border="0" cellspacing="0" cellpadding="4"> <tr> <td style="background-color:blue; color:white;"> <?php echo $rdf->channel->title; ?> </td> </tr> <?php foreach ($rdf->channel->item as $item) { ?> <tr> <td> <a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a> </td> </tr> <?php } ?> </table> </td> </tr> </table> Index: presentations/slides/php5intro/rss_feed.rdf +++ presentations/slides/php5intro/rss_feed.rdf <?xml version="1.0"?> <!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> <channel> <pubDate>Sun, 29 Jun 2003 11:53:53 GMT</pubDate> <description>Newest Articles and How-To's on PHPBuilder.com</description> <link>http://phpbuilder.com</link> <title>PHPBuilder.com New Articles</title> <webMaster>staff@phpbuilder.com</webMaster> <language>en-us</language> <item> <title>Regression Testing With JMeter</title> <link>http://www.phpbuilder.com/columns/bommarito20030610.php3</link> <description>Regression Testing With JMeter</description> </item> <item> <title>Advanced Image Editing Under the GD Library</title> <link>http://www.phpbuilder.com/columns/cash20030526.php3</link> <description>Advanced Image Editing Under the GD Library</description> </item> <item> <title>The Benefits of Using Objects with Databases</title> <link>http://www.phpbuilder.com/columns/barnum20030509.php3</link> <description>The Benefits of Using Objects with Databases</description> </item> <item> <title>Interfacing with COM objects under Windows</title> <link>http://www.phpbuilder.com/columns/venkatesan20030501.php3</link> <description>Interfacing with COM objects under Windows</description> </item> <item> <title>Dynamic XML Conversion Using the SAX Parser</title> <link>http://www.phpbuilder.com/columns/scheffler20030325.php3</link> <description>Dynamic XML Conversion Using the SAX Parser</description> </item> <item> <title>Arrays 101</title> <link>http://www.phpbuilder.com/columns/petrovich20030424.php3</link> <description>Arrays 101</description> </item> <item> <title>Introduction to PHP5</title> <link>http://www.phpbuilder.com/columns/argerich20030411.php3</link> <description>Introduction to PHP5</description> </item> <item> <title>Installing PHP-GTK on Linux</title> <link>http://www.phpbuilder.com/columns/starkey20030401.php3</link> <description>Installing PHP-GTK on Linux</description> </item> <item> <title>Installing PHP under BadBlue Web Server</title> <link>http://www.phpbuilder.com/columns/jain20030228.php3</link> <description>Installing PHP under BadBlue Web Server</description> </item> <item> <title>Installing PHP under Xitami</title> <link>http://www.phpbuilder.com/columns/jain20030324.php3</link> <description>Installing PHP under Xitami</description> </item> <item> <title>A Test To See If You Write Sloppy Software</title> <link>http://www.phpbuilder.com/columns/perdue20030310.php3</link> <description>A Test To See If You Write Sloppy Software</description> </item> <item> <title>Switchbox</title> <link>http://www.phpbuilder.com/columns/fryzel20030306.php3</link> <description>Switchbox</description> </item> <item> <title>Professional PHP4 Multimedia Programming</title> <link>http://www.phpbuilder.com/columns/manning20030305.php3</link> <description>Professional PHP4 Multimedia Programming</description> </item> <item> <title>PHP Iterator</title> <link>http://www.phpbuilder.com/columns/bosanac20030225.php3</link> <description>PHP Iterator</description> </item> <item> <title>Dynamic Graphs with PHP, MySQL and GD</title> <link>http://www.phpbuilder.com/columns/nasser20030219.php3</link> <description>Dynamic Graphs with PHP, MySQL and GD</description> </item> <item> <title>Synchronizing Your MySQL Database Using SQLyog</title> <link>http://www.phpbuilder.com/columns/insane20030214.php3</link> <description>Synchronizing Your MySQL Database Using SQLyog</description> </item> <item> <title>OO Design: Abstract Classes</title> <link>http://www.phpbuilder.com/columns/griffin20030207.php3</link> <description>OO Design: Abstract Classes</description> </item> <item> <title>Moving Logic Into the Database</title> <link>http://www.phpbuilder.com/columns/perdue20030102.php3</link> <description>Moving Logic Into the Database</description> </item> <item> <title>PEAR Primer</title> <link>http://www.phpbuilder.com/columns/stump20021223.php3</link> <description>PEAR Primer</description> </item> <item> <title>Converting XML into a PHP data structure</title> <link>http://www.phpbuilder.com/columns/lorenso20021221.php3</link> <description>Converting XML into a PHP data structure</description> </item> </channel> </rss> Index: presentations/slides/php5intro/simplexml1.xml +++ presentations/slides/php5intro/simplexml1.xml <slide> <title>Simple XML</title> <list> <bullet>Simple XML is Simply Brilliant</bullet> <bullet>No more SAX parsing</bullet> <bullet>Use Simple API or DOM</bullet> <bullet>Combine with XSLT, XPath, other LibXML capabilities</bullet> <bullet>Future PEAR::SOAP to be based on Simple XML</bullet> </list> <example title="Book XML File" filename="book.xml" type="XML"/> <example title="Book PHP File" filename="book.php" type="php" result="1"/> </slide> Index: presentations/slides/php5intro/simplexml2.xml +++ presentations/slides/php5intro/simplexml2.xml <slide> <title>Simple RDF</title> <list> <bullet>RDF: Complexity made Simple</bullet> <bullet>Used to have to write SAX parser, or use PEAR Classes</bullet> <bullet>Faster using C extension</bullet> </list> <example title="RDF Processing" fontsize="1.4em" filename="rss_feed.php" type="php" result="1"/> </slide> Index: presentations/slides/php5intro/sqlite1.php +++ presentations/slides/php5intro/sqlite1.php <?php $db = sqlite_open(':memory:', 0666, $sqliteerror); if ($db) { sqlite_query($db, 'CREATE TABLE foo (bar varchar(10))'); sqlite_query($db, "INSERT INTO foo VALUES ('fnord')"); $result = sqlite_query($db,'select bar from foo'); $record = sqlite_fetch_array($result); echo "<pre>"; var_dump($record); echo "</pre>"; } else { die ($sqliteerror); } ?> Index: presentations/slides/php5intro/sqlite1.xml +++ presentations/slides/php5intro/sqlite1.xml <slide> <title>SQLite</title> <blurb>Now there is always a DB fall back from script libraries or packages</blurb> <list> <bullet>Embeded flat file SQL database</bullet> <bullet>No more flat file databases</bullet> <bullet>Enabled by default</bullet> <bullet>Function or OO interface</bullet> <bullet>Cool memory DB capability</bullet> <bullet>Excelent SQL standards support</bullet> </list> <example title="Memory Database" fontsize="1.4em" filename="sqlite1.php" type="php" result="1"/> </slide> Index: presentations/slides/php5intro/sqlite2.php +++ presentations/slides/php5intro/sqlite2.php <?php $db = new sqlite_db(':memory:'); $db->query("CREATE TABLE foo(c1 date, c2 time, c3 varchar(64))"); $db->query("INSERT INTO foo VALUES ('2002-01-02', '12:49:00', NULL)"); $r = $db->query("SELECT * from foo"); echo "<pre>"; var_dump($r->fetch_array()); echo "</pre>"; ?> Index: presentations/slides/php5intro/sqlite2.xml +++ presentations/slides/php5intro/sqlite2.xml <slide> <title>SQLite OO</title> <list> <bullet>Same thing with Objects</bullet> </list> <example title="Memory Database" fontsize="1.4em" filename="sqlite2.php" type="php" result="1"/> </slide>
« previous php.pres (#768) next »