cvs: presentations /slides/extending ext1.xml ext11.xml ext12.xml ext16.xml ext2.xml ext4.xml ext5.xml ext8.xml ext9.xml tree-layout.xml why.xml
/slides/intro debug_backtrace.xml funky.xml image.xml mysql_opt.xml oop.xml opt.xml pdf.xml pdf_coords2.xml pdf_font.xml pdf_intro.xml
pdf_resources.xml pdf_templates.xml pdf_textsize.xml slashdot.rdf sqlex.xml sqlguest2.xml txt.php pres2 css.php objects.php

From: Date: Sat, 26 Apr 2003 17:44:23 +0000
Subject: cvs: presentations /slides/extending ext1.xml ext11.xml ext12.xml ext16.xml ext2.xml ext4.xml ext5.xml ext8.xml ext9.xml tree-layout.xml why.xml
/slides/intro debug_backtrace.xml funky.xml image.xml mysql_opt.xml oop.xml opt.xml pdf.xml pdf_coords2.xml pdf_font.xml pdf_intro.xml
pdf_resources.xml pdf_templates.xml pdf_textsize.xml slashdot.rdf sqlex.xml sqlguest2.xml txt.php pres2 css.php objects.php
Groups: php.pres 
Request: Send a blank email to pres+get-649@lists.php.net to get a copy of this message
rasmus Sat Apr 26 13:44:23 2003 EDT Modified files: /pres2 css.php objects.php /presentations/slides/extending ext1.xml ext11.xml ext12.xml ext16.xml ext2.xml ext4.xml ext5.xml ext8.xml ext9.xml tree-layout.xml why.xml /presentations/slides/intro debug_backtrace.xml funky.xml image.xml mysql_opt.xml oop.xml opt.xml pdf.xml pdf_coords2.xml pdf_font.xml pdf_intro.xml pdf_resources.xml pdf_templates.xml pdf_textsize.xml slashdot.rdf sqlex.xml sqlguest2.xml txt.php Log: I haven't committed my tweaks for a while now

Index: pres2/css.php diff -u pres2/css.php:1.12 pres2/css.php:1.13 --- pres2/css.php:1.12 Thu Apr 24 09:22:08 2003 +++ pres2/css.php Sat Apr 26 13:44:23 2003 @@ -156,6 +156,7 @@ span.c4 {position: fixed; bottom: 0.5em; right: 4em; top: auto; left: auto; color: ffffff; font-family: arial,verdana,helvetica; font-size: 70%} td.c3 {color: CC6600; font-family: arial, helvetica, verdana} span.c2 {color: ffffff; font-family: arial,hevetica,verdana} +span.c5 {position: fixed; bottom: 0.5em; right: 1em; top: auto; left: auto; color: 000000; font-family: arial,verdana,helvetica; font-size: 80%} td.c1 {font-family: arial,helvetica,verdana; font-size: 80%} </style> Index: pres2/objects.php diff -u pres2/objects.php:1.135 pres2/objects.php:1.136 --- pres2/objects.php:1.135 Fri Mar 21 15:52:15 2003 +++ pres2/objects.php Sat Apr 26 13:44:23 2003 @@ -1198,7 +1198,7 @@ if(!empty($pres[1]->outputbackground)) $_html_outputbackground = $pres[1]->outputbackground; if(!empty($objs[1]->outputbackground)) $_html_outputbackground = $objs[1]->outputbackground; if(!empty($this->outputbackground)) $_html_outputbackground = $this->outputbackground; - if(!empty($this->anchor)) echo "<a name=\"$this->anchor\">\n"; + if(!empty($this->anchor)) echo "<a name=\"$this->anchor\"></a>\n"; echo '<div class="shadow" style="margin: '. ((float)$this->margintop).'em '. ((float)$this->marginright+1).'em '. @@ -1247,7 +1247,7 @@ } } echo "</div></div>\n"; - if(!empty($this->anchor)) echo "</a>\n"; +# if(!empty($this->anchor)) echo "</a>\n"; } } /// }}} @@ -1284,7 +1284,7 @@ if(!empty($pres[1]->outputbackground)) $_html_outputbackground = $pres[1]->outputbackground; if(!empty($objs[1]->outputbackground)) $_html_outputbackground = $objs[1]->outputbackground; if(!empty($this->outputbackground)) $_html_outputbackground = $this->outputbackground; - if(!empty($this->anchor)) echo "<a name=\"$this->anchor\">\n"; + if(!empty($this->anchor)) echo "<a name=\"$this->anchor\"></a>\n"; echo "<br /><table bgcolor=\"$_html_outputbackground\"><tr><td>\n"; if(!empty($this->filename)) { @@ -1318,7 +1318,7 @@ } } echo "</td></tr></table>\n"; - if(!empty($this->anchor)) echo "</a>\n"; +# if(!empty($this->anchor)) echo "</a>\n"; } } // }}} @@ -2144,7 +2144,7 @@ } function html() { - global $objs, $pres; + global $objs, $pres, $nextTitle; // Slide layout templates if(!empty($objs[1]->layout)) switch($objs[1]->layout) { @@ -2161,6 +2161,15 @@ <img style="margin-bottom: -0.3em" src="images/bottomswoop.gif" width="100%" height="50" /> <span class="c4">&copy; Copyright 2002 MySQL AB</span> </div> + <? + } + break; + case 'php2': + if($nextTitle) { + ?> + <span class="C5"> + <?echo markup_text($nextTitle);?> + </span> <? } break; Index: presentations/slides/extending/ext1.xml diff -u presentations/slides/extending/ext1.xml:1.2 presentations/slides/extending/ext1.xml:1.3 --- presentations/slides/extending/ext1.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext1.xml Sat Apr 26 13:44:23 2003 @@ -7,7 +7,7 @@ <bullet>Look at the existing extensions for code examples</bullet> <bullet>Follow this example</bullet> </list> -<example title="Grabbing a copy of the CVS tree - Anonymous CVS instructions" type="shell"><![CDATA[% cvs -d:pserver:cvsread@cvs.php.net:/repository login +<example title="Grabbing a copy of the CVS tree - Anonymous CVS instructions" fontsize="1.75em" type="shell"><![CDATA[% cvs -d:pserver:cvsread@cvs.php.net:/repository login Password: phpfi % cvs -d:pserver:cvsread@cvs.php.net:/repository co php4 % cd php4 Index: presentations/slides/extending/ext11.xml diff -u presentations/slides/extending/ext11.xml:1.2 presentations/slides/extending/ext11.xml:1.3 --- presentations/slides/extending/ext11.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext11.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Advanced Parameter Parsing"> +<slide title="Real Parameter Parsing"> <blurb> To do real parameter handling, use the %zend_parse_parameters()% function. Index: presentations/slides/extending/ext12.xml diff -u presentations/slides/extending/ext12.xml:1.2 presentations/slides/extending/ext12.xml:1.3 --- presentations/slides/extending/ext12.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext12.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Accessing Array Parameters"> +<slide title="Array Parameters"> <blurb> If your function takes an array parameter. You can check it and access it like this: Index: presentations/slides/extending/ext16.xml diff -u presentations/slides/extending/ext16.xml:1.2 presentations/slides/extending/ext16.xml:1.3 --- presentations/slides/extending/ext16.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext16.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Setting and Accessing Global Variables"> +<slide title="Global Variables"> <blurb> If you need extension-wide global variables, you can't just use standard Index: presentations/slides/extending/ext2.xml diff -u presentations/slides/extending/ext2.xml:1.2 presentations/slides/extending/ext2.xml:1.3 --- presentations/slides/extending/ext2.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext2.xml Sat Apr 26 13:44:23 2003 @@ -4,7 +4,7 @@ autoconf, libtool and of course gcc and make. </blurb> -<example title="Next, install the command-line version of PHP" type="shell"><![CDATA[% cd php4 +<example title="Next, install the command-line version of PHP" fontsize="1.75em" type="shell"><![CDATA[% cd php4 % ./configure --with-mysql=/usr --with-pgsql --with-zlib \ --enable-inline-optimization --with-config-file-path=/etc % make Index: presentations/slides/extending/ext4.xml diff -u presentations/slides/extending/ext4.xml:1.1 presentations/slides/extending/ext4.xml:1.2 --- presentations/slides/extending/ext4.xml:1.1 Wed Oct 23 02:00:48 2002 +++ presentations/slides/extending/ext4.xml Sat Apr 26 13:44:23 2003 @@ -1,6 +1,6 @@ <slide title="Define the functions"> <blurb>From your plan, generate a function definition file</blurb> -<example type="shell" title="xmms.def"><![CDATA[int xmms_start(void) Start up XMMS if it is not already running +<example type="shell" title="xmms.def" fontsize="1.5em"><![CDATA[int xmms_start(void) Start up XMMS if it is not already running bool xmms_is_running(void) Check if XMMS is running int xmms_playlist_length(void) Get the number of songs in the playlist int xmms_playlist_pos(void) Get current playlist position Index: presentations/slides/extending/ext5.xml diff -u presentations/slides/extending/ext5.xml:1.1 presentations/slides/extending/ext5.xml:1.2 --- presentations/slides/extending/ext5.xml:1.1 Wed Oct 23 02:00:48 2002 +++ presentations/slides/extending/ext5.xml Sat Apr 26 13:44:23 2003 @@ -1,9 +1,9 @@ -<slide title="Creating a skeleton extension"> +<slide title="A skeleton extension"> <blurb> Run the *ext_skel* script which creates all the required skeleton files. </blurb> -<example type="shell"><![CDATA[% cd php4/ext +<example type="shell" fontsize="1.75em"><![CDATA[% cd php4/ext % ./ext_skel --extname=xmms --proto=xmms.def Creating directory xmms Creating basic files: config.m4 Makefile.in .cvsignore xmms.c Index: presentations/slides/extending/ext8.xml diff -u presentations/slides/extending/ext8.xml:1.1 presentations/slides/extending/ext8.xml:1.2 --- presentations/slides/extending/ext8.xml:1.1 Wed Oct 23 02:00:48 2002 +++ presentations/slides/extending/ext8.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="the pval/zval base datatype"> +<slide title="the pval/zval datatype"> <blurb> Data in PHP is stored in the pval or zval datatype. Two names for Index: presentations/slides/extending/ext9.xml diff -u presentations/slides/extending/ext9.xml:1.2 presentations/slides/extending/ext9.xml:1.3 --- presentations/slides/extending/ext9.xml:1.2 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/ext9.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,5 @@ <slide title="Convenience Macros"> +<blurb> </blurb> <example fontsize="1.5em" type="c"><![CDATA[#define Z_LVAL(zval) (zval).value.lval #define Z_BVAL(zval) ((zend_bool)(zval).value.lval) #define Z_DVAL(zval) (zval).value.dval Index: presentations/slides/extending/tree-layout.xml diff -u presentations/slides/extending/tree-layout.xml:1.1 presentations/slides/extending/tree-layout.xml:1.2 --- presentations/slides/extending/tree-layout.xml:1.1 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/tree-layout.xml Sat Apr 26 13:44:23 2003 @@ -1,5 +1,5 @@ -<slide title="PHP Tree5 Layout"> - +<slide title="PHP Tree Layout"> +<blurb> </blurb> <example fontsize="1.5em" type="shell">% cvs -d:pserver:cvsread@cvs.php.net:/repository co php4</example> <list title="Contents of php4/"> Index: presentations/slides/extending/why.xml diff -u presentations/slides/extending/why.xml:1.1 presentations/slides/extending/why.xml:1.2 --- presentations/slides/extending/why.xml:1.1 Sun Oct 27 21:00:48 2002 +++ presentations/slides/extending/why.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Why?"> +<slide title="Extending PHP"> <list title="Why hack PHP?"> <bullet>Fix a bug</bullet> Index: presentations/slides/intro/debug_backtrace.xml diff -u presentations/slides/intro/debug_backtrace.xml:1.1 presentations/slides/intro/debug_backtrace.xml:1.2 --- presentations/slides/intro/debug_backtrace.xml:1.1 Thu Oct 24 09:27:28 2002 +++ presentations/slides/intro/debug_backtrace.xml Sat Apr 26 13:44:23 2003 @@ -3,7 +3,7 @@ <blurb> %debug_backtrace()% is a new function in PHP 4.3 </blurb> -<example fontsize="1.5em" result="0" title="Custom error handler" align="left" filename="file1.php"/> +<example fontsize="1.3em" result="0" title="Custom error handler" align="left" filename="file1.php"/> <example fontsize="1.5em" result="0" title="Custom error handler" align="left" filename="file2.php"/> -<example filename="file1.php" hide="1" result="1" rfontsize="1em"/> +<example filename="file1.php" hide="1" result="1" rfontsize="1.5em"/> </slide> Index: presentations/slides/intro/funky.xml diff -u presentations/slides/intro/funky.xml:1.2 presentations/slides/intro/funky.xml:1.3 --- presentations/slides/intro/funky.xml:1.2 Fri Jul 5 19:09:15 2002 +++ presentations/slides/intro/funky.xml Sat Apr 26 13:44:23 2003 @@ -15,9 +15,9 @@ $s = $REDIRECT_URI; $d = $DOCUMENT_ROOT; // determine requested uri - $uri = substr($s, strpos($s,$d) + strlen($d) + 1); + $uri = substr($s, strpos($s,$d) + strlen($d)+1); ob_start(); // Start buffering output - // ... code to fetch and output content from DB ... + // ... code to fetch and output content from DB $data = ob_get_contents(); $fp = fopen("$DOCUMENT_ROOT/$uri",'w'); fputs($fp,$data); Index: presentations/slides/intro/image.xml diff -u presentations/slides/intro/image.xml:1.5 presentations/slides/intro/image.xml:1.6 --- presentations/slides/intro/image.xml:1.5 Wed Oct 16 16:48:35 2002 +++ presentations/slides/intro/image.xml Sat Apr 26 13:44:23 2003 @@ -1,5 +1,5 @@ <slide title="GD 1/2" outputbackground="#5b69a6"> -<example title="Creating a PNG with a TrueType font" filename="txt.php" /> +<example title="Creating a PNG with a TrueType font" filename="txt.php" fontsize="2em"/> <example><![CDATA[<IMG src="txt.php?text=<?echo urlencode($text)?>">]]></example> Index: presentations/slides/intro/mysql_opt.xml diff -u presentations/slides/intro/mysql_opt.xml:1.1 presentations/slides/intro/mysql_opt.xml:1.2 --- presentations/slides/intro/mysql_opt.xml:1.1 Thu Jul 25 15:34:49 2002 +++ presentations/slides/intro/mysql_opt.xml Sat Apr 26 13:44:23 2003 @@ -7,9 +7,10 @@ <bullet marginleft="1em">Use %mysqldumpslow% to look at these</bullet> </list> <example title="A non-indexed query" rfontsize="1.3em"><![CDATA[<? - mysql_connect('localhost'); - mysql_select_db('foo'); - $result = mysql_query("select * from users where ts>0"); +mysql_connect('localhost'); +mysql_select_db('foo'); +$result=mysql_query( + "select * from users where ts>0"); ?>]]></example> <example result="1" title="And an indexed query" rfontsize="1.3em"><![CDATA[<? Index: presentations/slides/intro/oop.xml diff -u presentations/slides/intro/oop.xml:1.2 presentations/slides/intro/oop.xml:1.3 --- presentations/slides/intro/oop.xml:1.2 Mon Jul 1 04:24:23 2002 +++ presentations/slides/intro/oop.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Object Oriented Programming"> +<slide title="OO Programming"> <example title="Class Definition"><![CDATA[<?php class Cart { Index: presentations/slides/intro/opt.xml diff -u presentations/slides/intro/opt.xml:1.1 presentations/slides/intro/opt.xml:1.2 --- presentations/slides/intro/opt.xml:1.1 Tue Jul 2 01:24:59 2002 +++ presentations/slides/intro/opt.xml Sat Apr 26 13:44:23 2003 @@ -7,12 +7,8 @@ <example><![CDATA[BAD: <? preg_match('/(\..*?)$/',$str,$reg);?>]]></example> <example><![CDATA[GOOD:<? substr($str,strrpos($str,'.')); ?>]]></example> -<blurb title="Use References if you are passing large data structs around to save memory"> -There is a tradeoff here. Manipulating references is actually a bit slower -than making copies of your data, but with references you will be using less -memory. So you need to determine if you are cpu or memory bound to decide -whether to go through and look for places to pass references to data instead of -copies. +<blurb title="References?"> +It is usually not faster to use references because of PHP's copy-on-write nature. </blurb> <blurb title="Use Persistent Database connections"> Some database are slower than others at establising new connections. The Index: presentations/slides/intro/pdf.xml diff -u presentations/slides/intro/pdf.xml:1.3 presentations/slides/intro/pdf.xml:1.4 --- presentations/slides/intro/pdf.xml:1.3 Sun Dec 15 13:38:52 2002 +++ presentations/slides/intro/pdf.xml Sat Apr 26 13:44:23 2003 @@ -5,6 +5,6 @@ filename="invoice.php" fontsize="1.5em" result="1" - type="link" + type="iframe" /> </slide> Index: presentations/slides/intro/pdf_coords2.xml diff -u presentations/slides/intro/pdf_coords2.xml:1.2 presentations/slides/intro/pdf_coords2.xml:1.3 --- presentations/slides/intro/pdf_coords2.xml:1.2 Sun Aug 18 17:11:45 2002 +++ presentations/slides/intro/pdf_coords2.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="A Saner Coordinate System"> +<slide title="Saner Coordinates"> <blurb> It is possible to move the origin and also reverse the direction. ie. you can make the top-left corner the origin and have positive Index: presentations/slides/intro/pdf_font.xml diff -u presentations/slides/intro/pdf_font.xml:1.3 presentations/slides/intro/pdf_font.xml:1.4 --- presentations/slides/intro/pdf_font.xml:1.3 Sun Aug 18 17:11:45 2002 +++ presentations/slides/intro/pdf_font.xml Sat Apr 26 13:44:23 2003 @@ -39,7 +39,7 @@ title="Font Example" result="1" type="iframe" - fontsize="1.5em" + fontsize="1.35em" /> <blurb> Index: presentations/slides/intro/pdf_intro.xml diff -u presentations/slides/intro/pdf_intro.xml:1.1 presentations/slides/intro/pdf_intro.xml:1.2 --- presentations/slides/intro/pdf_intro.xml:1.1 Sat Jul 20 13:15:53 2002 +++ presentations/slides/intro/pdf_intro.xml Sat Apr 26 13:44:23 2003 @@ -19,8 +19,8 @@ <bullet> ClibPDF (terms similar to pdflib)</bullet> </list> <list title="Why use PDF with PHP?"> -<bullet> Invoices for e-commerce sites</bullet> -<bullet> Report generation</bullet> -<bullet> Anything that requires precise control over printable output</bullet> +<bullet effect="slide"> Invoices for e-commerce sites</bullet> +<bullet effect="slide"> Report generation</bullet> +<bullet effect="slide"> Anything that requires precise control over printable output</bullet> </list> </slide> Index: presentations/slides/intro/pdf_resources.xml diff -u presentations/slides/intro/pdf_resources.xml:1.1 presentations/slides/intro/pdf_resources.xml:1.2 --- presentations/slides/intro/pdf_resources.xml:1.1 Sat Jul 20 15:43:54 2002 +++ presentations/slides/intro/pdf_resources.xml Sat Apr 26 13:44:23 2003 @@ -1,4 +1,4 @@ -<slide title="Resources"> +<slide title="Resources" backgroundImage="boi.jpg"> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> Index: presentations/slides/intro/pdf_templates.xml diff -u presentations/slides/intro/pdf_templates.xml:1.2 presentations/slides/intro/pdf_templates.xml:1.3 --- presentations/slides/intro/pdf_templates.xml:1.2 Sun Aug 18 17:11:45 2002 +++ presentations/slides/intro/pdf_templates.xml Sat Apr 26 13:44:23 2003 @@ -1,9 +1,9 @@ <slide title="Templates"> -<block> +<blurb> Templates (known as &quot;form XObjects&quot; in the PDF world) are useful when you need to repeat something on multiple pages. By putting the repeated PDF sequences in a template, the generated PDF file is smaller. -</block> +</blurb> <example title="Template Example" Index: presentations/slides/intro/pdf_textsize.xml diff -u presentations/slides/intro/pdf_textsize.xml:1.2 presentations/slides/intro/pdf_textsize.xml:1.3 --- presentations/slides/intro/pdf_textsize.xml:1.2 Sun Aug 18 17:11:45 2002 +++ presentations/slides/intro/pdf_textsize.xml Sat Apr 26 13:44:23 2003 @@ -21,7 +21,7 @@ <bullet>wordspacing</bullet> </list> -<example title="Calculating the height of a blurb"><![CDATA[<? +<example title="Calculating the height of a blurb" fontsize="1.85em"><![CDATA[<? pdf_save($pdf); pdf_translate($pdf,0,$page_height); pdf_scale($pdf,1,-1); Index: presentations/slides/intro/slashdot.rdf diff -u presentations/slides/intro/slashdot.rdf:1.4 presentations/slides/intro/slashdot.rdf:1.5 --- presentations/slides/intro/slashdot.rdf:1.4 Wed Nov 20 21:06:26 2002 +++ presentations/slides/intro/slashdot.rdf Sat Apr 26 13:44:23 2003 @@ -17,53 +17,53 @@ </image> <item> -<title>Drug Making Genes Added To Corn Jump To Soya</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/1236258</link> +<title>Local Root Hole in Linux Kernels</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/199208</link> </item> <item> -<title>Dell Handhelds Released</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/1231229</link> +<title>MySQL 4 Declared Production-Ready</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1854213</link> </item> <item> -<title>Lotus Nanotech</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/024243</link> +<title>LGP Announces Game Development Team</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1818202</link> </item> <item> -<title>Grand Tour: the Story of a Penguin and a Red Fedora</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/0014255</link> +<title>Wavy Lenses Extend Depth of Field in Digital Imaging</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1547249</link> </item> <item> -<title>Mesa 5.0 Released</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/022208</link> +<title>BusinessWeek on Wi-Fi</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1545235</link> </item> <item> -<title>Add-Ons Add Up</title> -<link>http://slashdot.org/article.pl?sid=02/11/17/2350251</link> +<title>Spider-Man Has Back Problems</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1532202</link> </item> <item> -<title>Bobby Fischer FBI Files Released Under FOIA</title> -<link>http://slashdot.org/article.pl?sid=02/11/18/0152244</link> +<title>Imagining Numbers</title> +<link>http://slashdot.org/article.pl?sid=03/03/11/2127216</link> </item> <item> -<title>Justifying the Common Criteria Security Evaluation</title> -<link>http://slashdot.org/article.pl?sid=02/11/17/2343231</link> +<title>Freenet 0.5.1 Released, P2P Network Stabilizing</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1354244</link> </item> <item> -<title>As the Spam Turns</title> -<link>http://slashdot.org/article.pl?sid=02/11/17/2339233</link> +<title>How Google Grows...and Grows...and Grows</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/1338232</link> </item> <item> -<title>Microsoft Profit and Loss by Business Area</title> -<link>http://slashdot.org/article.pl?sid=02/11/17/2037223</link> +<title>XML Co-Creator says XML Is Too Hard For Programmers</title> +<link>http://slashdot.org/article.pl?sid=03/03/18/0712248</link> </item> <textinput> Index: presentations/slides/intro/sqlex.xml diff -u presentations/slides/intro/sqlex.xml:1.2 presentations/slides/intro/sqlex.xml:1.3 --- presentations/slides/intro/sqlex.xml:1.2 Mon Jul 22 11:26:28 2002 +++ presentations/slides/intro/sqlex.xml Sat Apr 26 13:44:23 2003 @@ -8,14 +8,14 @@ mysql_select_db("products"); $result = mysql_query("SELECT * FROM details"); if ($result) { - echo "<TABLE>\n"; - echo "<TR><TH>Name</TH><TH>Description</TH></TR>\n"; - while ($a = mysql_fetch_array($result)) { - echo "<TR><TD>$a[name]</TD>", "<TD>$a[descr]</TD></TR>"; - } - echo "</TABLE>"; + echo "<TABLE>\n"; + echo "<TR><TH>Name</TH><TH>Description</TH></TR>\n"; + while ($a = mysql_fetch_array($result)) { + echo "<TR><TD>$a[name]</TD>", "<TD>$a[descr]</TD></TR>"; + } + echo "</TABLE>"; } else { - echo "<P>Nothing to see here."; + echo "<P>Nothing to see here."; } ?>]]></example> </slide> Index: presentations/slides/intro/sqlguest2.xml diff -u presentations/slides/intro/sqlguest2.xml:1.1 presentations/slides/intro/sqlguest2.xml:1.2 --- presentations/slides/intro/sqlguest2.xml:1.1 Mon Jul 1 05:55:07 2002 +++ presentations/slides/intro/sqlguest2.xml Sat Apr 26 13:44:23 2003 @@ -15,12 +15,11 @@ mysql_select_db('mydb'); if(isset($note)) { $ts = date("Y-m-d H:i:s"); - mysql_query("insert into comments values - (0,'$note','$ts')"); + mysql_query("insert into comments values (0,'$note','$ts')"); } ?> <h2>The entries so far:</h2> -<? $result = mysql_query("select * from comments"); +<? $result = mysql_query("select * from comments order by ts desc"); while($row=mysql_fetch_row($result)) { echo $row[0] ." " . $row[1] . " " . $row[2] . "<br>\n"; } ?> Index: presentations/slides/intro/txt.php diff -u presentations/slides/intro/txt.php:1.2 presentations/slides/intro/txt.php:1.3 --- presentations/slides/intro/txt.php:1.2 Mon Jul 1 16:16:36 2002 +++ presentations/slides/intro/txt.php Sat Apr 26 13:44:23 2003 @@ -4,7 +4,7 @@ $blue = ImageColorAllocate($im,0x5B,0x69,0xA6); $white = ImageColorAllocate($im,255,255,255); $black = ImageColorAllocate($im,0,0,0); -ImageTTFText($im, 45, 0, 10, 57, $black, "CANDY", $text); -ImageTTFText($im, 45, 0, 6, 54, $white, "CANDY", $text); +ImageTTFText($im, 45, 0, 10, 57,$black,"CANDY",$text); +ImageTTFText($im, 45, 0, 6, 54,$white,"CANDY",$text); ImagePNG($im); ?>
« previous php.pres (#649) next »