cvs: presentations /slides/tidy_cug api.xml api_ex1.php api_ex2.php api_ex3.php bandwidth.xml bandwidth_ex1.php beauty.xml beauty_ex1.php
beauty_ex1_res.html bookcoversmall.jpg clean.xml clean_ex1.html clean_ex1.php clean_ex1_res.html config.xml config2.xml config2_ex1.php configa.xml
dumpit5.php example.html from4to5.xml function.tidy-get-output.html intro.xml intro2.xml intro2_ex1.html intro2_ex1.php intro2_ex1_res.html intro3.xml
intro3_ex1.php intro3_ex1_res.html intro4.xml intro4_ex1.php intro4_ex1_res.html markup.xml myconfig.tcfg outputbuf.xml parsing.xml parsing2.xml
parsing3.xml parsing4.xml parsing5.xml parsing6.xml parsing7.xml parsing8.xml parsing9.xml php.html repair.xml smarty.xml thankyou.xml tidyopts.xml
titlepage.xml tree.gif urlgrab5.php xhtml.xml xhtml_ex1.html xhtml_ex1.php xhtml_ex1_res.html
| From: | John Coggeshall | Date: | Sat, 03 Jan 2004 21:19:26 +0000 |
| Subject: | cvs: presentations /slides/tidy_cug api.xml api_ex1.php api_ex2.php api_ex3.php bandwidth.xml bandwidth_ex1.php beauty.xml beauty_ex1.php beauty_ex1_res.html bookcoversmall.jpg clean.xml clean_ex1.html clean_ex1.php clean_ex1_res.html config.xml config2.xml config2_ex1.php configa.xml dumpit5.php example.html from4to5.xml function.tidy-get-output.html intro.xml intro2.xml intro2_ex1.html intro2_ex1.php intro2_ex1_res.html intro3.xml intro3_ex1.php intro3_ex1_res.html intro4.xml intro4_ex1.php intro4_ex1_res.html markup.xml myconfig.tcfg outputbuf.xml parsing.xml parsing2.xml parsing3.xml parsing4.xml parsing5.xml parsing6.xml parsing7.xml parsing8.xml parsing9.xml php.html repair.xml smarty.xml thankyou.xml tidyopts.xml titlepage.xml tree.gif urlgrab5.php xhtml.xml xhtml_ex1.html xhtml_ex1.php xhtml_ex1_res.html |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-918@lists.php.net to get a copy of this message | ||
john Sat Jan 3 16:19:26 2004 EDT
Added files:
/presentations/slides/tidy_cug api.xml api_ex1.php api_ex2.php
api_ex3.php bandwidth.xml
bandwidth_ex1.php beauty.xml
beauty_ex1.php beauty_ex1_res.html
bookcoversmall.jpg clean.xml
clean_ex1.html clean_ex1.php
clean_ex1_res.html config.xml
config2.xml config2_ex1.php
configa.xml dumpit5.php example.html
from4to5.xml
function.tidy-get-output.html
intro.xml intro2.xml intro2_ex1.html
intro2_ex1.php intro2_ex1_res.html
intro3.xml intro3_ex1.php
intro3_ex1_res.html intro4.xml
intro4_ex1.php intro4_ex1_res.html
markup.xml myconfig.tcfg
outputbuf.xml parsing.xml
parsing2.xml parsing3.xml
parsing4.xml parsing5.xml
parsing6.xml parsing7.xml
parsing8.xml parsing9.xml php.html
repair.xml smarty.xml thankyou.xml
tidyopts.xml titlepage.xml tree.gif
urlgrab5.php xhtml.xml
xhtml_ex1.html xhtml_ex1.php
xhtml_ex1_res.html
Log:
Adding the Chicago User Group talk to talks.php.net
Index: presentations/slides/tidy_cug/api.xml +++ presentations/slides/tidy_cug/api.xml <slide title="Incredibly Flexible API"> <blurb title="Objects? Procedural? Pick your Pleasure!"> The tidy PHP extension in PHP 5 has a incredibly flexible API which allows you to use procedural or object oriented syntax. In fact, you can even use both at the same time! </blurb> <example type="php" filename="api_ex1.php" title="Procedural API"/> <example type="php" filename="api_ex2.php" title="Object Oriented API"/> <example type="php" filename="api_ex3.php" title="Mix and Match"/> </slide> Index: presentations/slides/tidy_cug/api_ex1.php +++ presentations/slides/tidy_cug/api_ex1.php <?php /* Parse a file */ $tidy1 = tidy_parse_file("myfile.html"); /* Parse a string */ $tidy2 = tidy_parse_string("<HTML><B>Hello!</B>"); /* Clean up the markup */ tidy_clean_repair($tidy1); tidy_clean_repair($tidy2); /* Get the error buffer */ $errors = tidy_get_error_buffer($tidy1); /* Get the output */ $output = tidy_get_output($tidy2); ?> Index: presentations/slides/tidy_cug/api_ex2.php +++ presentations/slides/tidy_cug/api_ex2.php <?php /* Create a new document instance */ $tidy = new tidy_doc(); /* Parse a remote URL via Streams */ $tidy->parse_file("http://www.coggeshall.org/"); /* Clean and repair the HTML document */ $tidy->clean_repair(); /* Access the error buffer */ $error_buf = $tidy->error_buf; /* Access the output by object overloading */ echo $tidy; ?> Index: presentations/slides/tidy_cug/api_ex3.php +++ presentations/slides/tidy_cug/api_ex3.php <?php /* Parse a new document */ $tidy = tidy_parse_file("http://www.coggeshall.org/"); /* Clean and repair the document */ $tidy->clean_repair(); /* Output the results; */ echo $tidy; ?> Index: presentations/slides/tidy_cug/bandwidth.xml +++ presentations/slides/tidy_cug/bandwidth.xml <slide title="Save bandwidth with Tidy"> <blurb title="You can save considerable bandwidth with tidy as well"> Consider the following ran against a copy of the php.net home page: </blurb> <example fontsize="1.6em" filename="bandwidth_ex1.php" title="Saving bandwidth with tidy"/> <blurb title="After tidy is finished, compare the file sizes.."/> <example type="html" fontsize="1.6em" title="Before and after..."> <![CDATA[<pre> -rw-rw-r-- 1 john john <b>27066</b> Jan 3 04:11 php.html -rw-rw-r-- 1 john john <b>26193</b> Jan 3 04:11 php_tidy.html</pre> ]]> </example> <blurb title="Without losing maintainability, tidy has saved 873 bytes per request"> That might not seem like a lot, but when you serve 100,000 hits a day you save *87.3 megabytes a day* in bandwidth. </blurb> </slide> Index: presentations/slides/tidy_cug/bandwidth_ex1.php +++ presentations/slides/tidy_cug/bandwidth_ex1.php <?php $tidy = tidy_parse_file("php.html"); tidy_setopt($tidy, "clean", true); tidy_setopt($tidy, "drop-proprietary-attributes", true); tidy_setopt($tidy, "drop-font-tags", true); tidy_setopt($tidy, "drop-empty-paras", true); tidy_setopt($tidy, "hide-comments", true); tidy_setopt($tidy, "join-classes", true); tidy_setopt($tidy, "join-styles", true); tidy_clean_repair($tidy); echo $tidy; ?> Index: presentations/slides/tidy_cug/beauty.xml +++ presentations/slides/tidy_cug/beauty.xml <slide title="Beautify HTML"> <blurb title="On the flipside, Tidy can also beautify HTML for easy reading"/> <example type="xml" fontsize="1.0em" filename="function.tidy-get-output.html" title="From this..."/> <example type="php" filename="beauty_ex1.php"/> <example type="xml" fontsize="1.0em" filename="beauty_ex1_res.html" title="To this..."/> </slide> Index: presentations/slides/tidy_cug/beauty_ex1.php +++ presentations/slides/tidy_cug/beauty_ex1.php <?php $tidy = new tidy_doc(); tidy_setopt($tidy, "indent", 2); tidy_setopt($tidy, "indent-spaces", 4); tidy_setopt($tidy, "wrap", 4096); $tidy->parse_file("function.tidy-get-output.html"); tidy_clean_repair($tidy); echo $tidy; Index: presentations/slides/tidy_cug/beauty_ex1_res.html +++ presentations/slides/tidy_cug/beauty_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>tidy_get_output</title> <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7"> <link rel="HOME" title="PHP Manual" href="index.html"> <link rel="UP" title="tidy Functions" href="ref.tidy.html"> <link rel="PREVIOUS" title="tidy_get_html" href="function.tidy-get-html.html"> <link rel="NEXT" title="tidy_get_release" href="function.tidy-get-release.html"> <meta http-equiv="Content-type" content="text/html; charset=us-ascii"> </head> <body class="refentry" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="NAVHEADER"> <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th colspan="3" align="center">PHP Manual</th> </tr> <tr> <td width="10%" align="left" valign="bottom"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="80%" align="center" valign="bottom"></td> <td width="10%" align="right" valign="bottom"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> </table> <hr align="left" width="100%"> </div> <h1><a name="function.tidy-get-output"></a>tidy_get_output</h1> <div class="refnamediv"> <a name="AEN104234"></a> <p>(no version information, might be only in CVS)</p>tidy_get_output -- Return a string representing the parsed tidy markup </div> <div class="refsect1"> <a name="AEN104237"></a> <h2>Description</h2>string <b class="methodname">tidy_get_output</b> ( resource tidy)<br> <br> <p>Returns a string representing the input document, as manipulated by tidy.</p> </div> <div class="NAVFOOTER"> <hr align="left" width="100%"> <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%" align="left" valign="top"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td> <td width="33%" align="right" valign="top"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> <tr> <td width="33%" align="left" valign="top">tidy_get_html</td> <td width="34%" align="center" valign="top"><a href="ref.tidy.html" accesskey="U">Up</a></td> <td width="33%" align="right" valign="top">tidy_get_release</td> </tr> </table> </div> </body> </html> Index: presentations/slides/tidy_cug/clean.xml +++ presentations/slides/tidy_cug/clean.xml <slide title="Converting To Stylesheets"> <blurb title="Automatically converting documents not using CSS"> Tidy can convert documents using <FONT> tags to CSS automatically, just set the %clean% option to %true% </blurb> <example type="xml" filename="clean_ex1.html" title="Input"/> <example filename="clean_ex1.php" title="Converting to CSS"/> <example type="xml" filename="clean_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/clean_ex1.html +++ presentations/slides/tidy_cug/clean_ex1.html <HTML><HEAD><TITLE><TITLE></HEAD> <BODY> <FONT COLOR="red">Hello, World!</FONT><BR/> <B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B> </BODY> </HTML> Index: presentations/slides/tidy_cug/clean_ex1.php +++ presentations/slides/tidy_cug/clean_ex1.php <?php $tidy = tidy_parse_file("clean_ex1.html"); tidy_setopt($tidy, "clean", true); tidy_clean_repair($tidy); echo $tidy; ?> Index: presentations/slides/tidy_cug/clean_ex1_res.html +++ presentations/slides/tidy_cug/clean_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> <style type="text/css"> b.c2 {color: #C0C0C0; font-size: 120%} span.c1 {color: red} </style> </head> <body> <span class="c1">Hello, World!</span><br> <b class="c2">More Text...</b> </body> </html> Index: presentations/slides/tidy_cug/config.xml +++ presentations/slides/tidy_cug/config.xml <slide title="Controlling Options"> <blurb title="Tidy Configuration Options"> Tidy configuration options represent the bulk of the power of the tidy extension. By adjusting these values you can change the behavior of tidy to match your needs. </blurb> <blurb title="Configuration options can be set a number of ways"/> <list> <bullet>Specifying a default configuration file using the %tidy.default_config% php.ini directive</bullet> <bullet>Setting options at run time using %tidy_setopt()% or the %setopt()% method</bullet> <bullet>Loading a configuration file at run time using %tidy_load_config()% or the %load_config()% method</bullet> <bullet>Specifying a configuration file when available as a function parameter i.e. %tidy_repair_file()%</bullet> </list> </slide> Index: presentations/slides/tidy_cug/config2.xml +++ presentations/slides/tidy_cug/config2.xml <slide title="Controlling Options"> <blurb title="Configuration Files"> Configuration files are generally simple text documents, but can be created using PHP </blurb> <example title="Creating a configuration File" filename="config2_ex1.php"/> <example type="text" title="Resulting configuration file" filename="myconfig.tcfg"/> </slide> Index: presentations/slides/tidy_cug/config2_ex1.php +++ presentations/slides/tidy_cug/config2_ex1.php <?php $tidy = new tidy_doc(); /* Set a number of options */ $tidy->setopt("output-xhtml", true); $tidy->setopt("fix-uri", true); $tidy->setopt("uppercase-tags", true); /* Save the configuration file */ $tidy->save_config("myconfig.tcfg"); ?> Index: presentations/slides/tidy_cug/configa.xml +++ presentations/slides/tidy_cug/configa.xml <slide title="Controlling Options"> <blurb title="Retrieving configuration options"> Options can be retrieved a number of ways </blurb> <list> <bullet>At runtime using %tidy_getopt()% or the %getopt()% method</bullet> <bullet>Saving the configuration using %tidy_save_config()% or the %save_config()% method</bullet> <bullet>Temporarily saving the configuration using %tidy_snapshot_config()% / %snapshot_config()% and restoring using %tidy_restore_config()% / %restore_config()%</bullet> </list> <blurb> The configuration can also be reset to the default using %tidy_reset_config()% (uses %tidy.default_config%) </blurb> </slide> Index: presentations/slides/tidy_cug/dumpit5.php +++ presentations/slides/tidy_cug/dumpit5.php <?php $tidy = tidy_parse_file("example.html"); /* Optionally you can do this here if you want to fix up the document */ /* $tidy->clean_repair() */ $tree = $tidy->root(); dump_tree($tree); echo "\n"; function node_type($type) { switch($type) { case TIDY_NODETYPE_ROOT: return "Root Node"; case TIDY_NODETYPE_DOCTYPE: return "DocType Node"; case TIDY_NODETYPE_COMMENT: return "Comment Node"; case TIDY_NODETYPE_PROCINS: return "ProcIns Node"; case TIDY_NODETYPE_TEXT: return "Text Node"; case TIDY_NODETYPE_START: return "Start Node"; case TIDY_NODETYPE_END: return "End Node"; case TIDY_NODETYPE_STARTEND: return "Start/End Node"; case TIDY_NODETYPE_CDATA: return "CDATA Node"; case TIDY_NODETYPE_SECTION: return "Section Node"; case TIDY_NODETYPE_ASP: return "ASP Source Code Node"; case TIDY_NODETYPE_PHP: return "PHP Source Code Node"; case TIDY_NODETYPE_JSTE: return "JSTE Source Code"; case TIDY_NODETYPE_XMLDECL: return "XML Declaration Node"; default: return "Unknown Node"; } } function do_leaf($string, $indent) { for($i = 0; $i < $indent; $i++) { echo " "; } echo $string; } function dump_tree(tidy_node $node, $indent = 0) { /* Put something there if the node name is empty */ $nodename = trim(strtoupper($node->name)); $nodename = (empty($nodename)) ? "[EMPTY]" : $nodename; /* Generate the Node, and a pretty name for it */ do_leaf(" + $nodename (".node_type($node->type).")\n", $indent); /* Check to see if this node is a text node. Text nodes are generated by start/end tags and contain the text in between. i.e. <B>foo</B> will create a text node with $node->value equal to 'foo' */ if($node->type == TIDY_NODETYPE_TEXT) { do_leaf(" |\n", $indent); do_leaf(" +---- Value: '{$node->value}'\n", $indent); } if(count($node->attribute)) { do_leaf(" |\n", $indent); do_leaf(" +---- Attributes\n", $indent); foreach($node->attribute as $name=>$value) { @do_leaf(" +-- $name\n", $indent); do_leaf(" | +-- Value: $value\n", $indent); } } /* Recurse along the children to generate the remaining nodes */ if($node->has_children()) { foreach($node->child as $child) { dump_tree($child, $indent + 3); } } } ?> Index: presentations/slides/tidy_cug/example.html +++ presentations/slides/tidy_cug/example.html <HTML> <HEAD> <TITLE>Example basic HTML document</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <B>Hello, World!</B> </BODY> </HTML> Index: presentations/slides/tidy_cug/from4to5.xml +++ presentations/slides/tidy_cug/from4to5.xml <slide title="So what's different From 4 to 5?"> <blurb title="The changes between tidy in 4.3.x and tidy in 5.0.0"> Simply put, the differences between 4.3.x and 5.0.0 versions of tidy (tidy versions 1.0 and 2.0) are significant </blurb> <blurb> In Tidy for 1.0, you could only manipulate one document at once. Although Tidy 1.0 worked in PHP 5 (allowing for some of the parsing abilities you've seen), the API has since been refactored to be easier to use </blurb> <example title="Tidy 1.0"><![CDATA[<?php tidy_parse_file("http://www.coggeshall.org/"); tidy_clean_repair(); echo tidy_get_output(); ?>]]></example> <blurb title="Tidy 1.0 is still maintained for the 4.3.x branch, but will no longer be improved"/> </slide> Index: presentations/slides/tidy_cug/function.tidy-get-output.html +++ presentations/slides/tidy_cug/function.tidy-get-output.html <HTML ><HEAD ><TITLE >tidy_get_output</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="tidy Functions" HREF="ref.tidy.html"><LINK REL="PREVIOUS" TITLE="tidy_get_html" HREF="function.tidy-get-html.html"><LINK REL="NEXT" TITLE="tidy_get_release" HREF="function.tidy-get-release.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.tidy-get-output" ></A >tidy_get_output</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN104234" ></A ><P > (no version information, might be only in CVS)</P >tidy_get_output -- Return a string representing the parsed tidy markup </DIV ><DIV CLASS="refsect1" ><A NAME="AEN104237" ></A ><H2 >Description</H2 >string <B CLASS="methodname" >tidy_get_output</B > ( resource tidy)<BR ></BR ><P > Returns a string representing the input document, as manipulated by tidy. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >tidy_get_html</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.tidy.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >tidy_get_release</TD ></TR ></TABLE ></DIV ></BODY ></HTML > Index: presentations/slides/tidy_cug/intro.xml +++ presentations/slides/tidy_cug/intro.xml <slide title="Tidying up your HTML"> <blurb title="Why'd I show up to talk about tidy?"> Because Tidy is a really cool technology for today's dynamic web environment </blurb> <blurb title="Why do you care?"> What tidy can do for you: </blurb> <list> <bullet>Make your HTML Completely web-standards compliant automatically</bullet> <bullet>Identify potential problems with your markup</bullet> <bullet>Make your web sites load faster</bullet> <bullet>Validate and repair user-submitted markup</bullet> <bullet>Extract all of the URLs from any web page in 21 lines of code *without regular expressions*</bullet> <bullet>Convert malformed HTML documents into XHTML 1.0 documents automatically</bullet> <bullet>Never use a regular expression for screen scraping again</bullet> </list> </slide> Index: presentations/slides/tidy_cug/intro2.xml +++ presentations/slides/tidy_cug/intro2.xml <slide title="Web standard in a snap"> <blurb title="With Tidy, complying with web standards is easy"> Tidy has a great markup parser which intelligently corrects a wide range of errors: </blurb> <example type="xml" filename="intro2_ex1.html" title="Input HTML"/> <example type="php" filename="intro2_ex1.php" title="Clean it up with Tidy"/> <example type="xml" filename="intro2_ex1_res.html" title="Output HTML"/> </slide> Index: presentations/slides/tidy_cug/intro2_ex1.html +++ presentations/slides/tidy_cug/intro2_ex1.html <P>Hello, <B>This HTML</I><I>is all sorts of</U></B> messed up! Index: presentations/slides/tidy_cug/intro2_ex1.php +++ presentations/slides/tidy_cug/intro2_ex1.php <?php $tidy = tidy_parse_file("intro2_ex1.html"); tidy_clean_repair($tidy); echo tidy_get_output($tidy); ?> Index: presentations/slides/tidy_cug/intro2_ex1_res.html +++ presentations/slides/tidy_cug/intro2_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p>Hello, <b>This HTML</b><i>is all sorts of</i> messed up!</p> </body> </html> Index: presentations/slides/tidy_cug/intro3.xml +++ presentations/slides/tidy_cug/intro3.xml <slide title="Identifying problems"> <blurb title="Not only can tidy fix things, it can tell you what went wrong:"> Tidy has a great markup parser which intelligently corrects a wide range of errors: </blurb> <example type="php" filename="intro3_ex1.php" title="Displaying the error buffer"/> <example type="xml" filename="intro3_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/intro3_ex1.php +++ presentations/slides/tidy_cug/intro3_ex1.php <?php $tidy = tidy_parse_file("intro2_ex1.html"); tidy_clean_repair($tidy); echo tidy_get_error_buffer($tidy); ?> Index: presentations/slides/tidy_cug/intro3_ex1_res.html +++ presentations/slides/tidy_cug/intro3_ex1_res.html line 1 column 1 - Warning: missing <!DOCTYPE> declaration line 1 column 11 - Warning: replacing unexpected i by </i> line 1 column 27 - Warning: replacing unexpected u by </u> line 1 column 49 - Warning: discarding unexpected </b> line 1 column 1 - Warning: inserting missing 'title' element Index: presentations/slides/tidy_cug/intro4.xml +++ presentations/slides/tidy_cug/intro4.xml <slide title="Controlling Tidy"> <blurb title="Don't want a complete HTML document?"> Tidy has a wide range of configuration options that allow you to manipulate how the output of tidy will look. In this case, you can use the 'show-body-only' option to keep tidy from creating a full HTML document. </blurb> <example type="php" filename="intro4_ex1.php" title="Setting options"/> <example type="xml" filename="intro4_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/intro4_ex1.php +++ presentations/slides/tidy_cug/intro4_ex1.php <?php $tidy = new tidy_doc(); $tidy->setopt("show-body-only", true); $tidy->parse_file("intro2_ex1.html"); $tidy->clean_repair(); echo $tidy; ?> Index: presentations/slides/tidy_cug/intro4_ex1_res.html +++ presentations/slides/tidy_cug/intro4_ex1_res.html <p>Hello, <b>This HTML</b><i>is all sorts of</i> messed up!</p> Index: presentations/slides/tidy_cug/markup.xml +++ presentations/slides/tidy_cug/markup.xml <slide title="What is Tidy, anyway?"> <blurb title="The tidy for PHP allows for a wide range of web-centric tasks including:"/> <list> <bullet>Clean, diagnose and automatically repair malformed markup</bullet> <bullet>Parse, navigate and extract portions of a HTML document from within PHP</bullet> </list> </slide> Index: presentations/slides/tidy_cug/myconfig.tcfg +++ presentations/slides/tidy_cug/myconfig.tcfg indent-spaces: 0 output-xhtml: yes uppercase-tags: yes tidy-mark: no force-output: yes Index: presentations/slides/tidy_cug/outputbuf.xml +++ presentations/slides/tidy_cug/outputbuf.xml <slide title="Tidy Output Buffering"> <blurb title="Tidy also supports output buffering"> The function %ob_tidyhandler()% is available for use with PHP output buffering to automatically parse, clean and repair output based on the %tidy.default_config% directive. </blurb> <example title="Using tidy output buffering"><![CDATA[<?php ob_start("ob_tidyhandler"); /* Data output here...*/ ?>]]></example> <blurb>Alternatively, you can set the %tidy.clean_output% php.ini directive to true to automatically clean output. </blurb> <blurb>*BE WARNED: Tidy does _not_ check the content type of the output!*</blurb> </slide> Index: presentations/slides/tidy_cug/parsing.xml +++ presentations/slides/tidy_cug/parsing.xml <slide title="Parsing with Tidy"> <blurb title="Wait! There's More!"> As powerful as tidy already is, the PHP tidy extension also makes parsing and navigating an HTML document tree a snap! </blurb> <blurb title="Accessing Document Nodes"> Tidy allows you to "jump into" a document tree at key points and from there navigate your way using object constructs </blurb> <blurb title="Just call one of these four methods to get started.."/> <list> <bullet> %root()% -- Begin at the start of the document</bullet> <bullet> %head()% -- Begin at the <HEAD> tag</bullet> <bullet> %html()% -- Begin at the <HTML> tag</bullet> <bullet> %body()% -- Begin at the <BODY> tag</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing2.xml +++ presentations/slides/tidy_cug/parsing2.xml <slide title="Jumping into a document"> <image filename="tree.gif" align="center" width="300" height="200"/> <example fontsize="1.6em" title="Given a basic HTML document..."><![CDATA[<HTML> <HEAD> <TITLE>Example basic HTML document</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <B>Hello, World!</B> </BODY> </HTML>]]> </example> <example fontsize="1.6em" title="You can Access a given 'jump node' like so.."><![CDATA[ <?php $tidy = tidy_parse_file("myhtmldoc.html"); $root = $tidy->root(); $html = $tidy->html(); $head = $tidy->head(); $body = $tidy->body(); ?>]]></example> </slide> Index: presentations/slides/tidy_cug/parsing3.xml +++ presentations/slides/tidy_cug/parsing3.xml <slide title="The Tidy Node"> <blurb title="A tidy node is a PHP object"> Each node is an instance of the internal %tidy_node% class with the following structure: </blurb> <example title="The tidy_node class" fontsize="1.6em"><![CDATA[<?php class tidy_node { public $value; public $name; public $type; public $id; /* $id Not always available, depends on type */ public tidy_attr $attribute[]; public tidy_node $child[]; public function has_children(); public function is_comment(); public function is_html(); public function is_text(); public function is_jste(); public function is_asp(); public function is_php(); } ?>]]></example> </slide> Index: presentations/slides/tidy_cug/parsing4.xml +++ presentations/slides/tidy_cug/parsing4.xml <slide title="The Tidy Node"> <blurb title="What the properities mean"/> <list> <bullet>%$value% - The value of the current node, and all subnodes combined</bullet> <bullet>%$name% - The name of the node (generally the HTML tag)</bullet> <bullet>%$type% - The type of node (discussed in next slide)</bullet> <bullet>%$id% - The ID of the node (not always available, depends on type)</bullet> <bullet>%$attribute% - An associative array of attributes for the node</bullet> <bullet>%$child% - An indexed array of all the children of this node</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing5.xml +++ presentations/slides/tidy_cug/parsing5.xml <slide title="The Tidy Node"> <blurb title="Node Types and IDs"> There are 14 different types of nodes, each is represented by a PHP constant </blurb> <list> <bullet>%TIDY_NODETYPE_ROOT% - The root node of the tree</bullet> <bullet>%TIDY_NODETYPE_DOCTYPE% - The DOCTYPE of the tree</bullet> <bullet>%TIDY_NODETYPE_COMMENT% - A comment</bullet> <bullet>%TIDY_NODETYPE_PROCINS% - ????</bullet> <bullet>%TIDY_NODETYPE_TEXT% - A text element of the tree</bullet> <bullet>*%TIDY_NODETYPE_START%* - The start of a markup tag</bullet> <bullet>*%TIDY_NODETYPE_END%* - The end of a markup tag</bullet> <bullet>*%TIDY_NODETYPE_STARTEND%* - A tag that does not have an end (one-liner)</bullet> <bullet>%TIDY_NODETYPE_CDATA% - A CDATA block</bullet> <bullet>%TIDY_NODETYPE_SECTION% - A section block</bullet> <bullet>%TIDY_NODETYPE_ASP% - An ASP code block</bullet> <bullet>%TIDY_NODETYPE_JSTE% - A JSTE code block</bullet> <bullet>%TIDY_NODETYPE_PHP% - A PHP code block</bullet> <bullet>%TIDY_NODETYPE_XMLDECL% - A XML Declaration</bullet> </list> <blurb title="Node IDs"> For those types listed in bold above, a node ID is also associated which maps to a known HTML tag. These IDs are represented by constants of the form TIDY_TAG_%TAGNAME% WHERE %TAGNAME% is the HTML tag (such as 'A', 'BODY', etc.) </blurb> <list> <bullet>%TIDY_TAG_A% - A node for an %A% tag</bullet> <bullet>%TIDY_TAG_BODY% - A node for a %BODY% tag</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing6.xml +++ presentations/slides/tidy_cug/parsing6.xml <slide title="Using the Tidy parser"> <blurb title="Bye bye, regular expressions!"> Thanks to the tidy parser, no longer do you have to rely on regular expressions to extract content from another HTML document. Rather, you can use a much more maintainable solution! </blurb> <blurb> In the following example (found in the ext/tidy/examples/ directory), I use the tidy parser to extract all of the links from an arbitary HTML document </blurb> <example fontsize="1.6em" filename="urlgrab5.php" title="Grabbing URLs from an HTML document"/> </slide> Index: presentations/slides/tidy_cug/parsing7.xml +++ presentations/slides/tidy_cug/parsing7.xml <slide title="Using the Tidy parser"> <blurb title="Dumping the document tree"> Here is another quick example I wrote. In this example, I use the tidy parser to navigate the entire document tree and display it. Taken from %ext/tidy/examples/dumpit5.php% </blurb> <example fontsize="1.6em" filename="dumpit5.php" title="Dumping the document tree"/> </slide> Index: presentations/slides/tidy_cug/parsing8.xml +++ presentations/slides/tidy_cug/parsing8.xml <slide title="Using the Tidy parser"> <blurb title="And here is the output..."/> <example fontsize="1.6em" title="ext/tidy/examples/dumpit5.php output"><![CDATA[ + [EMPTY] (Root Node) + HTML (Start Node) + HEAD (Start Node) + TITLE (Start Node) + [EMPTY] (Text Node) | +---- Value: 'Example basic HTML document' + BODY (Start Node) | +---- Attributes +-- bgcolor | +-- Value: #FFFFFF + B (Start Node) + [EMPTY] (Text Node) | +---- Value: 'Hello, World!' ]]></example> </slide> Index: presentations/slides/tidy_cug/parsing9.xml +++ presentations/slides/tidy_cug/parsing9.xml <slide title="Other useful parsing tidbits"> <blurb title="Pulling Tables out of documents"> When you display the value for a particular node, you recieve the entire contents of that node plus all of its children nodes. Thus, entire tables can be pulled out of HTML documents regardless of complexity just by saying: </blurb> <example><![CDATA[<?php if($node->id == TIDY_TAG_TABLE) { echo $node->value; } ?>]]></example> <blurb title="Nodes are overloaded, too!"> Just as was the case with tidy documents, the %tidy_node% class is overloaded, meaning you can treat an instance of the object just as if it were any other string: </blurb> <example><![CDATA[<?php if($node->id == TIDY_TAG_TABLE) { echo $node; } ?>]]></example> </slide> Index: presentations/slides/tidy_cug/php.html +++ presentations/slides/tidy_cug/php.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>PHP: Hypertext Preprocessor</title><link rel="stylesheet" href="PHP:%20Hypertext%20Preprocessor_files/style.css"> <link rel="stylesheet" href="PHP:%20Hypertext%20Preprocessor_files/phpnet.css"> <link rel="shortcut icon" href="http://static.php.net/www.php.net/favicon.ico"> <script language="Javascript" type="text/javascript" src="PHP:%20Hypertext%20Preprocessor_files/userprefs.js"></script> <!-- base href="http://www.php.net/index.php" --></head> <body bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff" vlink="#000099" onload="boldEvents(); searchHistory();"> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody><tr bgcolor="#9999cc"> <td align="center" rowspan="2" width="126"><a href="http://www.php.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/php.gif" alt="PHP" width="120" height="67" hspace="3"></a></td> <td> </td> </tr> <tr bgcolor="#9999cc"> <td align="right" valign="bottom"> <a href="http://www.php.net/downloads.php" class="small">downloads</a> | <a href="http://www.php.net/docs.php" class="small">documentation</a> | <a href="http://www.php.net/FAQ.php" class="small">faq</a> | <a href="http://www.php.net/support.php" class="small">getting help</a> | <a href="http://www.php.net/mailing-lists.php" class="small">mailing lists</a> | <a href="http://bugs.php.net/" class="small">reporting bugs</a> | <a href="http://www.php.net/sites.php" class="small">php.net sites</a> | <a href="http://www.php.net/links.php" class="small">links</a> | <a href="http://www.php.net/my.php" class="small">my php.net</a> </td> </tr> <tr bgcolor="#333366"><td colspan="2"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> <tr bgcolor="#666699"> <td align="right" valign="top" colspan="2" class="quicksearch"> <form method="post" action="/search.php" class="thin" name="topsearch"> <small><span title="Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)"><u>s</u>earch for</span></small> <input class="small" type="text" name="pattern" value="" size="30" accesskey="s"> <small>in the</small> <select name="show" class="small"><option value="quickref" selected="selected">function list</option><option value="wholesite">whole site</option><option value="manual">online documentation [en]</option><option value="bugdb">bug database</option><option value="maillist">general mailing list</option><option value="devlist">developer mailing list</option><option value="phpdoc">documentation mailing list </option></select> <input type="image" src="PHP:%20Hypertext%20Preprocessor_files/small_submit_white.gif" alt="search" align="baseline"> </form> </td> </tr> <tr bgcolor="#333366"><td colspan="3"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> </tbody></table> <!--/UdmComment--> <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr valign="top"> <td width="200" bgcolor="#f0f0f0"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tbody><tr valign="top"><td class="sidebar"> <h3>What is PHP?</h3> <p> <acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the <a href="http://www.php.net/tut.php">introductory tutorial</a>. After that, check out the online <a href="http://www.php.net/docs.php">manual</a>, and the example archive sites and some of the other resources available in the <a href="http://www.php.net/links.php">links section</a>. </p> <p> Ever wondered how popular PHP is? see the <a href="http://www.php.net/usage.php">Netcraft Survey</a>. </p> <p> PHP is a project of the <a href="http://www.apache.org/">Apache Software Foundation</a>. </p> <h3><a href="http://www.php.net/thanks.php">Thanks To</a></h3> <ul class="simple"> <li><a href="http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li> <li><a href="http://www.directi.com/">Directi</a></li> <li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li> <li><a href="http://www.ev1servers.net/">EV1Servers</a></li> <li><a href="http://www.servercentral.net/">Server Central</a></li> <li><a href="http://www.redundant.com/">Redundant Networks</a></li> <li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li> <li><a href="http://www.rackspace.com/?supbid=php.net">Rackspace</a></li> </ul> <h3>Related sites</h3> <ul class="simple"> <li><a href="http://www.apache.org/">Apache</a></li> <li><a href="http://www.mysql.com/">MySQL</a></li> <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> <li><a href="http://www.zend.com/">Zend Technologies</a></li> </ul> <h3>Community</h3> <ul class="simple"> <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> <li><a href="http://www.osdn.org/">OSDN</a></li> </ul> <h3>Syndication</h3> <p> You can grab our news as an RSS feed via a daily dump in a file named <a href="http://www.php.net/news.rss">news.rss</a>. </p> <h3>Contact</h3> <p> Please submit website bugs in the <a href="http://bugs.php.net/">bug system</a>. </p></td></tr> </tbody></table> </td> <td bgcolor="#cccccc" background="PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> <td> <table cellpadding="10" cellspacing="0" width="100%"> <tbody><tr><td valign="top"> <h1>PHP 4.3.4RC2 released</h1> <p> <span class="newsdate">[20-Oct-2003]</span> <a href="http://qa.php.net/">PHP 4.3.4RC2</a> has been released for testing. This release candidate is hopefully the final release candidate prior to the 4.3.4 release and should be very stable. Please test this release as much as possible, so that any remaining issues can be uncovered and resolved prior to the final release. </p> <p> List of changes can be found in the <a href="http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.412&r2=1.1247.2.442">NEWS</a> file. </p> <hr> <a href="http://www.directionphp.biz/"><img src="PHP:%20Hypertext%20Preprocessor_files/directionphp.png" alt="Direction|PHP" width="99" height="128" style="float: right;"></a> <h1>Monthly PHP Magazine in French launched!</h1> <p> <span class="newsdate">[15-Oct-2003]</span> <a href="http://www.nexen.net/">Nexen.net</a> has launched Direction|PHP, the first PHP and MySQL dedicated magazine in French. This monthly publication features indeep coverage of PHP industry, business and user cases and technical articles from PHP|Architect. </p> <p> For more information, read the <a href="http://www.directionphp.biz/index.php">Direction|PHP website</a> (in French). </p> <hr> <a href="http://www.apachecon.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/apachecon2003.jpg" alt="ApacheCon" width="135" height="45" style="float: right;"></a> <h1>ApacheCon 2003, the Global Hub for All Things Apache</h1> <p> <span class="newsdate">[11-Oct-2003]</span> The <a href="http://www.apachecon.com/">official conference of the Apache Software Foundation</a> will be held November 16-20, 2003 in Las Vegas. More than 60 sessions highlight core and next-generation Apache server tools, offering a wide range of beginner, intermediate and advanced sessions. Learn firsthand the latest developments in Apache, as well as key open source projects, including PHP, Perl, XML, Java, MySQL, and WebDAV. </p> <hr> <a href="http://www.phpcruise.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/phpcruise.png" alt="php|cruise" width="162" height="29" style="float: right;"></a> <h1>php|cruise: The World's First Ever PHP-only Cruise</h1> <p> <span class="newsdate">[20-Sep-2003]</span> The publishers of php|architect have announced <a href="http://www.phparch.com/cruise/">php|cruise</a>, a five-day cruise to the Bahamas Islands featuring a lot of fun and over thirty different sessions dedicated to PHP from well known experts like Wez Furlong, Alan Knowles and John Coggeshall. </p> <p> The cruise will take place March 1st to 5th, 2004. The organizers have <a href="http://www.phparch.com/cruise/contest/">announced a contest</a> to give away one free place on the cruise. </p> <hr> <a href="http://www.zend.com/zend/php_survey_results.php"><img src="PHP:%20Hypertext%20Preprocessor_files/zendtech_logo.gif" alt="Zend Technologies" width="150" height="77" style="float: right;"></a> <h1>PHP Usage Survey Results</h1> <p> <span class="newsdate">[18-Sep-2003]</span> <a href="http://www.zend.com/zend/php_survey_results.php">Check out</a> the results of the PHP Usage Survey conducted by Zend Technologies, including feedback from thousands of PHP users around the world. Thanks for all who contributed! </p> <hr> <a href="http://weblabor.hu/php-doc-chm"><img src="PHP:%20Hypertext%20Preprocessor_files/chmhelp.gif" alt="CHM" width="48" height="48" style="float: right;"></a> <h1>PHP Manual CHM Edition - 12th build</h1> <p> <span class="newsdate">[06-Sep-2003]</span> The 12th build of the extended CHM edition is out now, and <a href="http://www.php.net/get/php_manual_chm_12.zip/from/a/mirror">available for download</a>. This build contains updated content and user notes, as well as fixes the bugs found in the previous build. A new optional "phpZ" skin is also introduced in this release, courtesy of Gonzalo De la Pena Andreu. For more information, visit <a href="http://weblabor.hu/php-doc-chm/">the homepage of this edition.</a> </p> <hr> <a href="http://www.phpconference.de/2003/index_en.php"><img src="PHP:%20Hypertext%20Preprocessor_files/international_conference_2003.gif" alt="International PHP Conference 2003" width="120" height="77" style="float: right;"></a> <h1>International PHP Conference 2003 program online</h1> <p> <span class="newsdate">[05-Sep-2003]</span> The organisers of the <a href="http://www.phpconference.de/2003/index_en.php">International PHP Conference</a> which will take place for the third time in Frankfurt, Germany from Nov. 2 to 5, 2003 have announced the conference program. The conference board which consists of Bjoern Schotte, Zak Greant, Zeev Suraski, Thies Arntzen and Jan Lehnardt has chosen more than 40 sessions for the main program on Nov. 4 and 5 and 7 in-depth Power Workshops for the pre conference program on Nov. 2 and 3. Among the prominent speaking crowd is Zeev Suraski, Ken Coar and many others. See <a href="http://www.phpconference.de/2003/index_en.php">the conference website</a> for more information. </p> <hr> <a href="http://servercentral.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/server_central.gif" alt="Server Central" width="120" height="120" style="float: right;"></a> <h1>Server Central Donates Server</h1> <p> <span class="newsdate">[28-Aug-2003]</span> Chicago-based company <a href="http://servercentral.net/">Server Central</a> has donated PHP.net a brand new server with a gigabit connection. The box is a quad 2.4GHz machine with 2GB ram, so we're going to be using it to power our more resource-intensive tasks, including building the manual. Thanks, Server Central! </p> <hr> <h1>European Open Source Development Threatened!</h1> <p> <span class="newsdate">[27-Aug-2003]</span> Today sees an international day of protest against the move by the EU to make obtaining a patent easier within Europe. Such patents may cause Open Source software such as PHP to infringe on existing licenses and new ones, meaning we would no longer be safe to distribute PHP within Europe. Contact your EU Representative to get this cruicial vote blocked. Find out more at the <a href="http://swpat.ffii.org/">campaign website</a> </p> <hr> <a href="http://www.php-con.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/phpcon_2003.gif" alt="php{con west 2003" width="120" height="60" style="float: right;"></a> <h1>php{con west is announced</h1> <p> <span class="newsdate">[26-Aug-2003]</span> php{con returns to the San Francisco Bay Area with new sessions, PHP gurus and a whole new day of PHP-intensive learning. Their program features a full day of tutorials, three technical session tracks over two days, an all day coding marathon, Code Sprint, social events, works in progress, and presentations from PHP luminaries. Early Bird discounts end on September 26th. See the full program and register online at <a href="http://www.php-con.com/">their website</a> </p> <hr> <h1>PHP 4.3.3 released!</h1> <p> <span class="newsdate">[25-Aug-2003]</span> The PHP developers are proud to announce the immediate availability of <a href="http://www.php.net/release_4_3_3.php">PHP 4.3.3</a>. This release contains a large number of bug fixes and we <strong>strongly</strong> recommend that all users of PHP upgrade to this version. Full list of fixes can be found in the <a href="http://www.php.net/ChangeLog-4.php#4.3.3">NEWS</a> file. </p> <hr> <a href="http://www.activestate.com/Corporate/ActiveAwards/"><img src="PHP:%20Hypertext%20Preprocessor_files/activestate_logo.gif" alt="ActiveState" width="115" height="50" style="float: right;"></a> <h1>Active Awards 2003 Winners</h1> <p> <span class="newsdate">[15-Aug-2003]</span> The <a href="http://www.activestate.com/Corporate/ActiveAwards/">Active Awards</a> are held annually to honor members of the open source community who actively contribute to open source languages and display excellence in their programming efforts. Programmers' Choice Award winners were nominated and chosen by the open source community. Activators' Choice Award winners were chosen by ActiveState's development team. </p> <p> This year's nominees were: Monte Ohrt, Paul S. Owen, Stanislav Malyshev, Stig Bakken and Wez Furlong. The Programmers' Choice winner is <strong>Stig Bakken</strong>, the father of PEAR. The Activators' Choice winner is <strong>Ilia Alshanetsky</strong>, member of the PHP Quality Assurance team, developer of the fudforum package, and a major contributor to PHP development. </p> <hr> <h1>PHP.net news history</h1> <p> <span class="newsdate">[15-Aug-2003]</span> Ever wonder what was the original PHP 3.0 release announcement, what where the choices when the PHP: Hypertext Preprocessor name was choosen, or since when you can use URL shortcuts to access pieces of our site? We have digged up some of the most interesting news items published on PHP.net since January 1998, when the site started to serve its visitors. You can find these <a href="http://www.php.net/news-2003.php">in the news archives</a>. There is also some historical information in <a href="http://www.php.net/history">the manual's history appendix</a>. </p> <hr> <h1>Select mirror for redirection</h1> <p> <span class="newsdate">[13-Aug-2003]</span> The www.php.net site tries to do the best to choose close mirrors based on all available data when redirecting users to mirror sites. Sometimes close mirror sites are unfortunately not the fastest. This is why we have added the mirror site selection possibility to <a href="http://www.php.net/my.php">our My PHP.net service</a>, which enables users to select a specific mirror site for redirections. </p> <hr> <a href="http://www.php-mag.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/php-mag.gif" alt="PHP Magazine" width="130" height="38" style="float: right;"></a> <h1>PHP Magazine web site now with daily news</h1> <p> <span class="newsdate">[12-Aug-2003]</span> <a href="http://www.php-mag.net/">The International PHP Magazine web site</a> now offers daily news for PHP professionals and beginners from all over the world, helping them to stay up-to-date with the latest news on PHP and related technologies. </p> <hr> <h1>URL Shortcuts and Site Search</h1> <p> <span class="newsdate">[29-Jul-2003]</span> After many of our users requested a change in how <a href="http://www.php.net/urlhowto.php">our URL shortcuts</a> behave when someone mistypes a shortcut, the default behaviour now is to look for a function name instead of performing a documentation search on Google. Those, who were satisfied with the Google search, can <a href="http://www.php.net/my.php">set their preference at the My PHP.net page</a>. We are working on a better onsite search solution, Google is used temporarily to search our site. </p> <hr> <p class="center"><a href="http://www.php.net/news-2003.php">News Archive</a></p> </td></tr></tbody></table></td><td bgcolor="#cccccc" background="PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="185" bgcolor="#f0f0f0"> <table width="100%" cellpadding="4" cellspacing="0"> <tbody><tr valign="top"><td class="sidebar"><div align="center"><h3>This mirror sponsored by:</h3> <a href="http://www.webhostingtalk.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/mirror.gif" alt="Web Hosting Talk" height="125" width="125"></a></div><br><hr> <h3>Upcoming Events <a href="http://www.php.net/submit-event.php">[add]</a></h3> <h4 class="eventmonth">October</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">29. <a href="http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">30. <a href="http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <h4>Conferences</h4> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1095">php-con West 2003</a></span><br> <span class="event_ITA">24. <a href="http://www.php.net/cal.php?id=1110">First italian PHP day</a></span><br> <h4>Training</h4> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1050">PHP/MySQL Bootcamp</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1087">PHP/MySQL Bootcamp 5 Days (MD)</a></span><br> <span class="event_CAN">24. <a href="http://www.php.net/cal.php?id=1105">PHP/MySQL Open Systems Web Dev</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_USA" style="font-weight: bold;">26. <a href="http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1132">Online MySQL course</a></span><br> <span class="event_NLD">27. <a href="http://www.php.net/cal.php?id=1035">PHP Programming en PHP Advanced</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1079">LogiCreate PHP Training</a></span><br> <span class="event_DEU">27. <a href="http://www.php.net/cal.php?id=1083">Apache/PHP/MySQL-Workshop</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1101">AMP Technology Training</a></span><br> <span class="event_GBR">28. <a href="http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=1116">PHP Training in San Francisco</a></span><br> <h4 class="eventmonth">November</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">1. <a href="http://www.php.net/cal.php?id=96">Chicago</a></span><br> <span class="event_USA" style="font-weight: bold;">5. <a href="http://www.php.net/cal.php?id=661">PHP/LAMP Denver</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=76">SEMPUG</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=109">SDPHP (San Diego, CA)</a></span><br> <span class="event_DEU">6. <a href="http://www.php.net/cal.php?id=272">Hannover</a></span><br> <span class="event_CAN">6. <a href="http://www.php.net/cal.php?id=1133">PHPQuebec - Montreal</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=561">Meetup Day</a></span><br> <span class="event_AUS">6. <a href="http://www.php.net/cal.php?id=1127">Sydney PHP Group meeting</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=1005">Omaha PHP Users Group Meetup</a></span><br> <span class="event_DEU">7. <a href="http://www.php.net/cal.php?id=95">Frankfurt</a></span><br> <span class="event_DEU">7. <a href="http://www.php.net/cal.php?id=153">Köln/Bonn</a></span><br> <span class="event_ESP">7. <a href="http://www.php.net/cal.php?id=240">Reunión mensual</a></span><br> <span class="event_CAN">11. <a href="http://www.php.net/cal.php?id=1134">PHPQuebec - Quebec</a></span><br> <span class="event_USA" style="font-weight: bold;">12. <a href="http://www.php.net/cal.php?id=104">Twin Cities</a></span><br> <span class="event_CAN">13. <a href="http://www.php.net/cal.php?id=960">Vancouver</a></span><br> <span class="event_DEU">15. <a href="http://www.php.net/cal.php?id=79">Stuttgart</a></span><br> <span class="event_USA" style="font-weight: bold;">15. <a href="http://www.php.net/cal.php?id=1131">Kansas City</a></span><br> <span class="event_USA" style="font-weight: bold;">19. <a href="http://www.php.net/cal.php?id=474">Seattle</a></span><br> <span class="event_CAN">19. <a href="http://www.php.net/cal.php?id=651">Calgary</a></span><br> <span class="event_NZL">19. <a href="http://www.php.net/cal.php?id=837">Wellington NZ</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">26. <a href="http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">27. <a href="http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <span class="event_ITA">29. <a href="http://www.php.net/cal.php?id=1136">Changes in PHP 5/Zend Engine 2.0</a></span><br> <h4>Conferences</h4> <span class="event_DEU">2. <a href="http://www.php.net/cal.php?id=1014">International PHP Conference</a></span><br> <span class="event_USA" style="font-weight: bold;">16. <a href="http://www.php.net/cal.php?id=1125">ApacheCon 2003</a></span><br> <h4>Training</h4> <span class="event_PHL">1. <a href="http://www.php.net/cal.php?id=1097">Extreme PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">1. <a href="http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=338">MySQL Spain</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=445">PHP-Madrid</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=456">Curso PHP Madrid</a></span><br> <span class="event_DEU">3. <a href="http://www.php.net/cal.php?id=641">PHP E-Learning/Germany</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=998">Curso on-line ActionScript / PHP</a></span><br> <span class="event_YUG">3. <a href="http://www.php.net/cal.php?id=1124">AlefBrain PHP Training</a></span><br> <span class="event_ESP">4. <a href="http://www.php.net/cal.php?id=841">Curso on-line de PHP-MySQL</a></span><br> <span class="event_USA" style="font-weight: bold;">8. <a href="http://www.php.net/cal.php?id=1051">Intro to PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">10. <a href="http://www.php.net/cal.php?id=1128">RAMP Training & Certification</a></span><br> <span class="event_NLD">10. <a href="http://www.php.net/cal.php?id=1025">PHP Advanced Programming</a></span><br> <span class="event_NLD">19. <a href="http://www.php.net/cal.php?id=1023">CIW Dynamic Server Pages (DSP)</a></span><br> <span class="event_NLD">24. <a href="http://www.php.net/cal.php?id=1036">PHP Programming en PHP Advanced</a></span><br> <span class="event_NLD">24. <a href="http://www.php.net/cal.php?id=1028">PHP Programming</a></span><br> <span class="event_GBR">24. <a href="http://www.php.net/cal.php?id=1129">"Technology for PHP", UK</a></span><br> <span class="event_GBR">25. <a href="http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=1117">PHP Training in San Francisco</a></span><br> <span class="event_GBR">25. <a href="http://www.php.net/cal.php?id=1130">"PHP Programming", UK</a></span><br> <span class="event_BRA">27. <a href="http://www.php.net/cal.php?id=1137">PHP Brasil - Training</a></span><br> <span class="event_USA" style="font-weight: bold;">30. <a href="http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br></td></tr> </tbody></table> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="175" height="1" border="0" alt=""></td> </tr></tbody></table> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody><tr bgcolor="#333366"><td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> <tr bgcolor="#9999cc"> <td align="right" valign="bottom"> <a href="http://www.php.net/source.php?url=/index.php" class="small">show source</a> | <a href="http://www.php.net/credits.php" class="small">credits</a> | <a href="http://www.php.net/sitemap.php" class="small">sitemap</a> | <a href="http://www.php.net/mirrors.php" class="small">mirror sites</a> </td> </tr> <tr bgcolor="#333366"><td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> </tbody></table> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody><tr valign="top" bgcolor="#cccccc"> <td><small><a href="http://www.php.net/copyright.php">Copyright © 2001-2003 The PHP Group</a><br>All rights reserved.</small></td> <td align="right"><small> <a href="http://www.php.net/mirror.php">This mirror</a> generously provided by: <a href="http://www.webhostingtalk.com/">Web Hosting Talk</a><br> Last updated: Sat Oct 25 11:11:43 2003 EDT </small> </td> </tr> </tbody></table> <!--/UdmComment--> </body></html> Index: presentations/slides/tidy_cug/repair.xml +++ presentations/slides/tidy_cug/repair.xml <slide title="Tidy simplified"> <blurb> Common tidy operations can be simplified into a single PHP function call which allows you to tidy a string or input file using a specified configuration... </blurb> <blurb> %tidy_repair_string($tidy, $data [, $config_file]);% </blurb> <blurb> %tidy_repair_file($tidy, $data, [, $config_file [, $use_include_path]]);% </blurb> <example fontsize="1.6em" title="Repairing http://www.coggeshall.org/"><![CDATA[<?php echo tidy_repair_file("http://www.coggeshall.org/", "basic.tcfg"); ?>]]> </example> <example fontsize="1.6em" title="Repairing user POST data"><![CDATA[<?php if(!empty($_POST['data'])) { $data = tidy_repair_string($_POST['data']); } ?>]]> </example> </slide> Index: presentations/slides/tidy_cug/smarty.xml +++ presentations/slides/tidy_cug/smarty.xml <slide title="Smarty output filter"> <blurb title="Smarty output filter plugin"> Here is a quick output filter plugin I wrote for use on one of my sites that uses tidy and Smarty (http://smarty.php.net/). </blurb> <example type="php" title="A Smarty Output filter"><![CDATA[<?php function smarty_outputfilter_tidyrepairhtml($source, &$smarty) { if(extension_loaded('tidy')) { return tidy_repair_string($source); } } ?>]]> </example> </slide> Index: presentations/slides/tidy_cug/thankyou.xml +++ presentations/slides/tidy_cug/thankyou.xml <slide title="Questions, Comments?"> <blurb align="center" title="Shameless book plug! -- *The PHP Developer's Handbook*"> If you found this useful, you'll find my upcoming book on PHP 5 even better! ISBN: 0-672-32511-X </blurb> <image filename="bookcoversmall.jpg" align="center"/> <blurb title="Find more information online..."/> <blurb><![CDATA[<BR>]]></blurb> <link align="center" leader="libTidy Homepage: ">http://tidy.sourceforge.net/</link> <link align="center" leader="PHP Tidy Homepage: ">http://www.coggeshall.org/tidy.php</link> </slide> Index: presentations/slides/tidy_cug/tidyopts.xml +++ presentations/slides/tidy_cug/tidyopts.xml <slide title="Configuration Options"> <blurb title="Tidy configuration options"> The following is a list of all of the configuration options supported by tidy <![CDATA[ <HR/> <CENTER> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Tidy Configuration Directive</th><th>Value</th></tr> <tr><td class="e">indent-spaces </td><td class="v">0 </td></tr> <tr><td class="e">wrap </td><td class="v">68 </td></tr> <tr><td class="e">tab-size </td><td class="v">8 </td></tr> <tr><td class="e">char-encoding </td><td class="v">1 </td></tr> <tr><td class="e">input-encoding </td><td class="v">3 </td></tr> <tr><td class="e">output-encoding </td><td class="v">1 </td></tr> <tr><td class="e">newline </td><td class="v">0 </td></tr> <tr><td class="e">doctype-mode </td><td class="v">1 </td></tr> <tr><td class="e">doctype </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">repeated-attributes </td><td class="v">1 </td></tr> <tr><td class="e">alt-text </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">slide-style </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">error-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">output-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">write-back </td><td class="v">FALSE </td></tr> <tr><td class="e">markup </td><td class="v">TRUE </td></tr> <tr><td class="e">show-warnings </td><td class="v">TRUE </td></tr> <tr><td class="e">quiet </td><td class="v">FALSE </td></tr> <tr><td class="e">indent </td><td class="v">0 </td></tr> <tr><td class="e">hide-endtags </td><td class="v">FALSE </td></tr> <tr><td class="e">input-xml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-xml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-xhtml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-html </td><td class="v">FALSE </td></tr> <tr><td class="e">add-xml-decl </td><td class="v">FALSE </td></tr> <tr><td class="e">uppercase-tags </td><td class="v">FALSE </td></tr> <tr><td class="e">uppercase-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">bare </td><td class="v">FALSE </td></tr> <tr><td class="e">clean </td><td class="v">FALSE </td></tr> <tr><td class="e">logical-emphasis </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-proprietary-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-font-tags </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-empty-paras </td><td class="v">TRUE </td></tr> <tr><td class="e">fix-bad-comments </td><td class="v">TRUE </td></tr> <tr><td class="e">break-before-br </td><td class="v">FALSE </td></tr> <tr><td class="e">split </td><td class="v">FALSE </td></tr> <tr><td class="e">numeric-entities </td><td class="v">FALSE </td></tr> <tr><td class="e">quote-marks </td><td class="v">FALSE </td></tr> <tr><td class="e">quote-nbsp </td><td class="v">TRUE </td></tr> <tr><td class="e">quote-ampersand </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">wrap-script-literals </td><td class="v">FALSE </td></tr> <tr><td class="e">wrap-sections </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-asp </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-jste </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-php </td><td class="v">TRUE </td></tr> <tr><td class="e">fix-backslash </td><td class="v">TRUE </td></tr> <tr><td class="e">indent-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">assume-xml-procins </td><td class="v">FALSE </td></tr> <tr><td class="e">add-xml-space </td><td class="v">FALSE </td></tr> <tr><td class="e">enclose-text </td><td class="v">FALSE </td></tr> <tr><td class="e">enclose-block-text </td><td class="v">FALSE </td></tr> <tr><td class="e">keep-time </td><td class="v">FALSE </td></tr> <tr><td class="e">word-2000 </td><td class="v">FALSE </td></tr> <tr><td class="e">tidy-mark </td><td class="v">FALSE </td></tr> <tr><td class="e">gnu-emacs </td><td class="v">FALSE </td></tr> <tr><td class="e">gnu-emacs-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">literal-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">show-body-only </td><td class="v">FALSE </td></tr> <tr><td class="e">fix-uri </td><td class="v">TRUE </td></tr> <tr><td class="e">lower-literals </td><td class="v">TRUE </td></tr> <tr><td class="e">hide-comments </td><td class="v">FALSE </td></tr> <tr><td class="e">indent-cdata </td><td class="v">FALSE </td></tr> <tr><td class="e">force-output </td><td class="v">TRUE </td></tr> <tr><td class="e">show-errors </td><td class="v">6 </td></tr> <tr><td class="e">ascii-chars </td><td class="v">TRUE </td></tr> <tr><td class="e">join-classes </td><td class="v">FALSE </td></tr> <tr><td class="e">join-styles </td><td class="v">TRUE </td></tr> <tr><td class="e">escape-cdata </td><td class="v">FALSE </td></tr> <tr><td class="e">language </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">ncr </td><td class="v">TRUE </td></tr> <tr><td class="e">output-bom </td><td class="v">2 </td></tr> <tr><td class="e">replace-color </td><td class="v">FALSE </td></tr> <tr><td class="e">css-prefix </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-inline-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-blocklevel-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-empty-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-pre-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">accessibility-check </td><td class="v">0 </td></tr> <tr><td class="e">vertical-space </td><td class="v">FALSE </td></tr> <tr><td class="e">punctuation-wrap </td><td class="v">FALSE </td></tr> </table></center>]]> </blurb> </slide> Index: presentations/slides/tidy_cug/titlepage.xml +++ presentations/slides/tidy_cug/titlepage.xml <slide template="titlepage" fontsize="6em"> <title>Welcome!</title> </slide> Index: presentations/slides/tidy_cug/urlgrab5.php +++ presentations/slides/tidy_cug/urlgrab5.php <?php function dump_nodes(tidy_node $node, &$urls = NULL) { $urls = (is_array($urls)) ? $urls : array(); if(isset($node->id)) { if($node->id == TIDY_TAG_A) { $urls[] = $node->attribute['href']; } } if($node->has_children()) { foreach($node->child as $c) { dump_nodes($c, $urls); } } return $urls; } $a = tidy_parse_file($_SERVER['argv'][1]); $a->clean_repair(); print_r(dump_nodes($a->html())); ?> Index: presentations/slides/tidy_cug/xhtml.xml +++ presentations/slides/tidy_cug/xhtml.xml <slide title="Converting To XHTML"> <blurb title="Automatically coverting HTML to XHTML"> Tidy can also quickly convert HTML to XHTML documents. For instance, the php.net homepage: </blurb> <example filename="xhtml_ex1.php" title="Converting to XHTML"/> </slide> Index: presentations/slides/tidy_cug/xhtml_ex1.html +++ presentations/slides/tidy_cug/xhtml_ex1.html <HTML><HEAD><TITLE><TITLE></HEAD> <BODY> <FONT COLOR="red">Hello, World!</FONT><BR/> <B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B> </BODY> </HTML> Index: presentations/slides/tidy_cug/xhtml_ex1.php +++ presentations/slides/tidy_cug/xhtml_ex1.php <?php $tidy = tidy_parse_file("http://www.php.net/"); $tidy->setopt("output-xhtml", true); $tidy->clean_repair(); echo $tidy; ?> Index: presentations/slides/tidy_cug/xhtml_ex1_res.html +++ presentations/slides/tidy_cug/xhtml_ex1_res.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PHP: Hypertext Preprocessor</title> <link rel="stylesheet" href= "PHP:%20Hypertext%20Preprocessor_files/style.css" type="text/css"> <link rel="stylesheet" href= "PHP:%20Hypertext%20Preprocessor_files/phpnet.css" type="text/css"> <link rel="shortcut icon" href= "http://static.php.net/www.php.net/favicon.ico"> <script language="Javascript" type="text/javascript" src= "PHP:%20Hypertext%20Preprocessor_files/userprefs.js"> </script><!-- base href="http://www.php.net/index.php" --> </head> <body bgcolor="#FFFFFF" text="#000000" link="#000099" alink= "#0000FF" vlink="#000099" onload="boldEvents(); searchHistory();"> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr bgcolor="#9999CC"> <td align="center" rowspan="2" width="126"><a href= "http://www.php.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/php.gif" alt="PHP" width= "120" height="67" hspace="3"></a></td> <td> </td> </tr> <tr bgcolor="#9999CC"> <td align="right" valign="bottom"><a href= "http://www.php.net/downloads.php" class="small">downloads</a> | <a href="http://www.php.net/docs.php" class= "small">documentation</a> | <a href="http://www.php.net/FAQ.php" class="small">faq</a> | <a href="http://www.php.net/support.php" class="small">getting help</a> | <a href= "http://www.php.net/mailing-lists.php" class="small">mailing lists</a> | <a href="http://bugs.php.net/" class="small">reporting bugs</a> | <a href="http://www.php.net/sites.php" class= "small">php.net sites</a> | <a href="http://www.php.net/links.php" class="small">links</a> | <a href="http://www.php.net/my.php" class="small">my php.net</a> </td> </tr> <tr bgcolor="#333366"> <td colspan="2"><img src= "PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr bgcolor="#666699"> <td align="right" valign="top" colspan="2" class="quicksearch"> <form method="post" action="/search.php" class="thin" name= "topsearch"><small><span title= "Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)"><u>s</u>earch for</span></small> <input class="small" type="text" name="pattern" value="" size="30" accesskey="s"> <small>in the</small> <select name="show" class="small"> <option value="quickref" selected="selected">function list</option> <option value="wholesite">whole site</option> <option value="manual">online documentation [en]</option> <option value="bugdb">bug database</option> <option value="maillist">general mailing list</option> <option value="devlist">developer mailing list</option> <option value="phpdoc">documentation mailing list</option> </select> <input type="image" src= "PHP:%20Hypertext%20Preprocessor_files/small_submit_white.gif" alt= "search" align="baseline"> </form> </td> </tr> <tr bgcolor="#333366"> <td colspan="3"><img src= "PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> </tbody> </table> <!--/UdmComment--> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr valign="top"> <td width="200" bgcolor="#F0F0F0"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tbody> <tr valign="top"> <td class="sidebar"> <h3>What is PHP?</h3> <p><acronym title= "recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the <a href="http://www.php.net/tut.php">introductory tutorial</a>. After that, check out the online <a href= "http://www.php.net/docs.php">manual</a>, and the example archive sites and some of the other resources available in the <a href= "http://www.php.net/links.php">links section</a>.</p> <p>Ever wondered how popular PHP is? see the <a href= "http://www.php.net/usage.php">Netcraft Survey</a>.</p> <p>PHP is a project of the <a href="http://www.apache.org/">Apache Software Foundation</a>.</p> <h3><a href="http://www.php.net/thanks.php">Thanks To</a></h3> <ul class="simple"> <li><a href= "http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li> <li><a href="http://www.directi.com/">Directi</a></li> <li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li> <li><a href="http://www.ev1servers.net/">EV1Servers</a></li> <li><a href="http://www.servercentral.net/">Server Central</a></li> <li><a href="http://www.redundant.com/">Redundant Networks</a></li> <li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li> <li><a href= "http://www.rackspace.com/?supbid=php.net">Rackspace</a></li> </ul> <h3>Related sites</h3> <ul class="simple"> <li><a href="http://www.apache.org/">Apache</a></li> <li><a href="http://www.mysql.com/">MySQL</a></li> <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> <li><a href="http://www.zend.com/">Zend Technologies</a></li> </ul> <h3>Community</h3> <ul class="simple"> <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> <li><a href="http://www.osdn.org/">OSDN</a></li> </ul> <h3>Syndication</h3> <p>You can grab our news as an RSS feed via a daily dump in a file named <a href="http://www.php.net/news.rss">news.rss</a>.</p> <h3>Contact</h3> <p>Please submit website bugs in the <a href= "http://bugs.php.net/">bug system</a>.</p> </td> </tr> </tbody> </table> </td> <td bgcolor="#CCCCCC" background= "PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "1" height="1" border="0" alt=""></td> <td> <table cellpadding="10" cellspacing="0" width="100%"> <tbody> <tr> <td valign="top"> <h1>PHP 4.3.4RC2 released</h1> <p><span class="newsdate">[20-Oct-2003]</span> <a href= "http://qa.php.net/">PHP 4.3.4RC2</a> has been released for testing. This release candidate is hopefully the final release candidate prior to the 4.3.4 release and should be very stable. Please test this release as much as possible, so that any remaining issues can be uncovered and resolved prior to the final release.</p> <p>List of changes can be found in the <a href= "http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.412&r2=1.1247.2.442"> NEWS</a> file.</p> <hr> <a href="http://www.directionphp.biz/"><img src= "PHP:%20Hypertext%20Preprocessor_files/directionphp.png" alt= "Direction|PHP" width="99" height="128" style="float: right;"></a> <h1>Monthly PHP Magazine in French launched!</h1> <p><span class="newsdate">[15-Oct-2003]</span> <a href= "http://www.nexen.net/">Nexen.net</a> has launched Direction|PHP, the first PHP and MySQL dedicated magazine in French. This monthly publication features indeep coverage of PHP industry, business and user cases and technical articles from PHP|Architect.</p> <p>For more information, read the <a href= "http://www.directionphp.biz/index.php">Direction|PHP website</a> (in French).</p> <hr> <a href="http://www.apachecon.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/apachecon2003.jpg" alt= "ApacheCon" width="135" height="45" style="float: right;"></a> <h1>ApacheCon 2003, the Global Hub for All Things Apache</h1> <p><span class="newsdate">[11-Oct-2003]</span> The <a href= "http://www.apachecon.com/">official conference of the Apache Software Foundation</a> will be held November 16-20, 2003 in Las Vegas. More than 60 sessions highlight core and next-generation Apache server tools, offering a wide range of beginner, intermediate and advanced sessions. Learn firsthand the latest developments in Apache, as well as key open source projects, including PHP, Perl, XML, Java, MySQL, and WebDAV.</p> <hr> <a href="http://www.phpcruise.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/phpcruise.png" alt= "php|cruise" width="162" height="29" style="float: right;"></a> <h1>php|cruise: The World's First Ever PHP-only Cruise</h1> <p><span class="newsdate">[20-Sep-2003]</span> The publishers of php|architect have announced <a href= "http://www.phparch.com/cruise/">php|cruise</a>, a five-day cruise to the Bahamas Islands featuring a lot of fun and over thirty different sessions dedicated to PHP from well known experts like Wez Furlong, Alan Knowles and John Coggeshall.</p> <p>The cruise will take place March 1st to 5th, 2004. The organizers have <a href= "http://www.phparch.com/cruise/contest/">announced a contest</a> to give away one free place on the cruise.</p> <hr> <a href="http://www.zend.com/zend/php_survey_results.php"><img src= "PHP:%20Hypertext%20Preprocessor_files/zendtech_logo.gif" alt= "Zend Technologies" width="150" height="77" style= "float: right;"></a> <h1>PHP Usage Survey Results</h1> <p><span class="newsdate">[18-Sep-2003]</span> <a href= "http://www.zend.com/zend/php_survey_results.php">Check out</a> the results of the PHP Usage Survey conducted by Zend Technologies, including feedback from thousands of PHP users around the world. Thanks for all who contributed!</p> <hr> <a href="http://weblabor.hu/php-doc-chm"><img src= "PHP:%20Hypertext%20Preprocessor_files/chmhelp.gif" alt="CHM" width="48" height="48" style="float: right;"></a> <h1>PHP Manual CHM Edition - 12th build</h1> <p><span class="newsdate">[06-Sep-2003]</span> The 12th build of the extended CHM edition is out now, and <a href= "http://www.php.net/get/php_manual_chm_12.zip/from/a/mirror">available for download</a>. This build contains updated content and user notes, as well as fixes the bugs found in the previous build. A new optional "phpZ" skin is also introduced in this release, courtesy of Gonzalo De la Pena Andreu. For more information, visit <a href= "http://weblabor.hu/php-doc-chm/">the homepage of this edition.</a></p> <hr> <a href="http://www.phpconference.de/2003/index_en.php"><img src= "PHP:%20Hypertext%20Preprocessor_files/international_conference_2003.gif" alt="International PHP Conference 2003" width="120" height= "77" style="float: right;"></a> <h1>International PHP Conference 2003 program online</h1> <p><span class="newsdate">[05-Sep-2003]</span> The organisers of the <a href= "http://www.phpconference.de/2003/index_en.php">International PHP Conference</a> which will take place for the third time in Frankfurt, Germany from Nov. 2 to 5, 2003 have announced the conference program. The conference board which consists of Bjoern Schotte, Zak Greant, Zeev Suraski, Thies Arntzen and Jan Lehnardt has chosen more than 40 sessions for the main program on Nov. 4 and 5 and 7 in-depth Power Workshops for the pre conference program on Nov. 2 and 3. Among the prominent speaking crowd is Zeev Suraski, Ken Coar and many others. See <a href= "http://www.phpconference.de/2003/index_en.php">the conference website</a> for more information.</p> <hr> <a href="http://servercentral.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/server_central.gif" alt= "Server Central" width="120" height="120" style= "float: right;"></a> <h1>Server Central Donates Server</h1> <p><span class="newsdate">[28-Aug-2003]</span> Chicago-based company <a href="http://servercentral.net/">Server Central</a> has donated PHP.net a brand new server with a gigabit connection. The box is a quad 2.4GHz machine with 2GB ram, so we're going to be using it to power our more resource-intensive tasks, including building the manual. Thanks, Server Central!</p> <hr> <h1>European Open Source Development Threatened!</h1> <p><span class="newsdate">[27-Aug-2003]</span> Today sees an international day of protest against the move by the EU to make obtaining a patent easier within Europe. Such patents may cause Open Source software such as PHP to infringe on existing licenses and new ones, meaning we would no longer be safe to distribute PHP within Europe. Contact your EU Representative to get this cruicial vote blocked. Find out more at the <a href= "http://swpat.ffii.org/">campaign website</a></p> <hr> <a href="http://www.php-con.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/phpcon_2003.gif" alt= "php{con west 2003" width="120" height="60" style= "float: right;"></a> <h1>php{con west is announced</h1> <p><span class="newsdate">[26-Aug-2003]</span> php{con returns to the San Francisco Bay Area with new sessions, PHP gurus and a whole new day of PHP-intensive learning. Their program features a full day of tutorials, three technical session tracks over two days, an all day coding marathon, Code Sprint, social events, works in progress, and presentations from PHP luminaries. Early Bird discounts end on September 26th. See the full program and register online at <a href="http://www.php-con.com/">their website</a></p> <hr> <h1>PHP 4.3.3 released!</h1> <p><span class="newsdate">[25-Aug-2003]</span> The PHP developers are proud to announce the immediate availability of <a href= "http://www.php.net/release_4_3_3.php">PHP 4.3.3</a>. This release contains a large number of bug fixes and we <strong>strongly</strong> recommend that all users of PHP upgrade to this version. Full list of fixes can be found in the <a href= "http://www.php.net/ChangeLog-4.php#4.3.3">NEWS</a> file.</p> <hr> <a href= "http://www.activestate.com/Corporate/ActiveAwards/"><img src= "PHP:%20Hypertext%20Preprocessor_files/activestate_logo.gif" alt= "ActiveState" width="115" height="50" style="float: right;"></a> <h1>Active Awards 2003 Winners</h1> <p><span class="newsdate">[15-Aug-2003]</span> The <a href= "http://www.activestate.com/Corporate/ActiveAwards/">Active Awards</a> are held annually to honor members of the open source community who actively contribute to open source languages and display excellence in their programming efforts. Programmers' Choice Award winners were nominated and chosen by the open source community. Activators' Choice Award winners were chosen by ActiveState's development team.</p> <p>This year's nominees were: Monte Ohrt, Paul S. Owen, Stanislav Malyshev, Stig Bakken and Wez Furlong. The Programmers' Choice winner is <strong>Stig Bakken</strong>, the father of PEAR. The Activators' Choice winner is <strong>Ilia Alshanetsky</strong>, member of the PHP Quality Assurance team, developer of the fudforum package, and a major contributor to PHP development.</p> <hr> <h1>PHP.net news history</h1> <p><span class="newsdate">[15-Aug-2003]</span> Ever wonder what was the original PHP 3.0 release announcement, what where the choices when the PHP: Hypertext Preprocessor name was choosen, or since when you can use URL shortcuts to access pieces of our site? We have digged up some of the most interesting news items published on PHP.net since January 1998, when the site started to serve its visitors. You can find these <a href= "http://www.php.net/news-2003.php">in the news archives</a>. There is also some historical information in <a href= "http://www.php.net/history">the manual's history appendix</a>.</p> <hr> <h1>Select mirror for redirection</h1> <p><span class="newsdate">[13-Aug-2003]</span> The www.php.net site tries to do the best to choose close mirrors based on all available data when redirecting users to mirror sites. Sometimes close mirror sites are unfortunately not the fastest. This is why we have added the mirror site selection possibility to <a href= "http://www.php.net/my.php">our My PHP.net service</a>, which enables users to select a specific mirror site for redirections.</p> <hr> <a href="http://www.php-mag.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/php-mag.gif" alt= "PHP Magazine" width="130" height="38" style="float: right;"></a> <h1>PHP Magazine web site now with daily news</h1> <p><span class="newsdate">[12-Aug-2003]</span> <a href= "http://www.php-mag.net/">The International PHP Magazine web site</a> now offers daily news for PHP professionals and beginners from all over the world, helping them to stay up-to-date with the latest news on PHP and related technologies.</p> <hr> <h1>URL Shortcuts and Site Search</h1> <p><span class="newsdate">[29-Jul-2003]</span> After many of our users requested a change in how <a href= "http://www.php.net/urlhowto.php">our URL shortcuts</a> behave when someone mistypes a shortcut, the default behaviour now is to look for a function name instead of performing a documentation search on Google. Those, who were satisfied with the Google search, can <a href="http://www.php.net/my.php">set their preference at the My PHP.net page</a>. We are working on a better onsite search solution, Google is used temporarily to search our site.</p> <hr> <p class="center"><a href="http://www.php.net/news-2003.php">News Archive</a></p> </td> </tr> </tbody> </table> </td> <td bgcolor="#CCCCCC" background= "PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "1" height="1" border="0" alt=""></td> <td width="185" bgcolor="#F0F0F0"> <table width="100%" cellpadding="4" cellspacing="0"> <tbody> <tr valign="top"> <td class="sidebar"> <div align="center"> <h3>This mirror sponsored by:</h3> <a href="http://www.webhostingtalk.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/mirror.gif" alt= "Web Hosting Talk" height="125" width="125"></a></div> <br> <hr> <h3>Upcoming Events <a href= "http://www.php.net/submit-event.php">[add]</a></h3> <h4 class="eventmonth">October</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">29. <a href= "http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">30. <a href= "http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <h4>Conferences</h4> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1095">php-con West 2003</a></span><br> <span class="event_ITA">24. <a href= "http://www.php.net/cal.php?id=1110">First italian PHP day</a></span><br> <h4>Training</h4> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1050">PHP/MySQL Bootcamp</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1087">PHP/MySQL Bootcamp 5 Days (MD)</a></span><br> <span class="event_CAN">24. <a href= "http://www.php.net/cal.php?id=1105">PHP/MySQL Open Systems Web Dev</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_USA" style="font-weight: bold;">26. <a href= "http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1132">Online MySQL course</a></span><br> <span class="event_NLD">27. <a href= "http://www.php.net/cal.php?id=1035">PHP Programming en PHP Advanced</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1079">LogiCreate PHP Training</a></span><br> <span class="event_DEU">27. <a href= "http://www.php.net/cal.php?id=1083">Apache/PHP/MySQL-Workshop</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1101">AMP Technology Training</a></span><br> <span class="event_GBR">28. <a href= "http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=1116">PHP Training in San Francisco</a></span><br> <h4 class="eventmonth">November</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">1. <a href= "http://www.php.net/cal.php?id=96">Chicago</a></span><br> <span class="event_USA" style="font-weight: bold;">5. <a href= "http://www.php.net/cal.php?id=661">PHP/LAMP Denver</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=76">SEMPUG</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=109">SDPHP (San Diego, CA)</a></span><br> <span class="event_DEU">6. <a href= "http://www.php.net/cal.php?id=272">Hannover</a></span><br> <span class="event_CAN">6. <a href= "http://www.php.net/cal.php?id=1133">PHPQuebec - Montreal</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=561">Meetup Day</a></span><br> <span class="event_AUS">6. <a href= "http://www.php.net/cal.php?id=1127">Sydney PHP Group meeting</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=1005">Omaha PHP Users Group Meetup</a></span><br> <span class="event_DEU">7. <a href= "http://www.php.net/cal.php?id=95">Frankfurt</a></span><br> <span class="event_DEU">7. <a href= "http://www.php.net/cal.php?id=153">Köln/Bonn</a></span><br> <span class="event_ESP">7. <a href= "http://www.php.net/cal.php?id=240">Reunión mensual</a></span><br> <span class="event_CAN">11. <a href= "http://www.php.net/cal.php?id=1134">PHPQuebec - Quebec</a></span><br> <span class="event_USA" style="font-weight: bold;">12. <a href= "http://www.php.net/cal.php?id=104">Twin Cities</a></span><br> <span class="event_CAN">13. <a href= "http://www.php.net/cal.php?id=960">Vancouver</a></span><br> <span class="event_DEU">15. <a href= "http://www.php.net/cal.php?id=79">Stuttgart</a></span><br> <span class="event_USA" style="font-weight: bold;">15. <a href= "http://www.php.net/cal.php?id=1131">Kansas City</a></span><br> <span class="event_USA" style="font-weight: bold;">19. <a href= "http://www.php.net/cal.php?id=474">Seattle</a></span><br> <span class="event_CAN">19. <a href= "http://www.php.net/cal.php?id=651">Calgary</a></span><br> <span class="event_NZL">19. <a href= "http://www.php.net/cal.php?id=837">Wellington NZ</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">26. <a href= "http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">27. <a href= "http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <span class="event_ITA">29. <a href= "http://www.php.net/cal.php?id=1136">Changes in PHP 5/Zend Engine 2.0</a></span><br> <h4>Conferences</h4> <span class="event_DEU">2. <a href= "http://www.php.net/cal.php?id=1014">International PHP Conference</a></span><br> <span class="event_USA" style="font-weight: bold;">16. <a href= "http://www.php.net/cal.php?id=1125">ApacheCon 2003</a></span><br> <h4>Training</h4> <span class="event_PHL">1. <a href= "http://www.php.net/cal.php?id=1097">Extreme PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">1. <a href= "http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=338">MySQL Spain</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=445">PHP-Madrid</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=456">Curso PHP Madrid</a></span><br> <span class="event_DEU">3. <a href= "http://www.php.net/cal.php?id=641">PHP E-Learning/Germany</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=998">Curso on-line ActionScript / PHP</a></span><br> <span class="event_YUG">3. <a href= "http://www.php.net/cal.php?id=1124">AlefBrain PHP Training</a></span><br> <span class="event_ESP">4. <a href= "http://www.php.net/cal.php?id=841">Curso on-line de PHP-MySQL</a></span><br> <span class="event_USA" style="font-weight: bold;">8. <a href= "http://www.php.net/cal.php?id=1051">Intro to PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">10. <a href= "http://www.php.net/cal.php?id=1128">RAMP Training & Certification</a></span><br> <span class="event_NLD">10. <a href= "http://www.php.net/cal.php?id=1025">PHP Advanced Programming</a></span><br> <span class="event_NLD">19. <a href= "http://www.php.net/cal.php?id=1023">CIW Dynamic Server Pages (DSP)</a></span><br> <span class="event_NLD">24. <a href= "http://www.php.net/cal.php?id=1036">PHP Programming en PHP Advanced</a></span><br> <span class="event_NLD">24. <a href= "http://www.php.net/cal.php?id=1028">PHP Programming</a></span><br> <span class="event_GBR">24. <a href= "http://www.php.net/cal.php?id=1129">"Technology for PHP", UK</a></span><br> <span class="event_GBR">25. <a href= "http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=1117">PHP Training in San Francisco</a></span><br> <span class="event_GBR">25. <a href= "http://www.php.net/cal.php?id=1130">"PHP Programming", UK</a></span><br> <span class="event_BRA">27. <a href= "http://www.php.net/cal.php?id=1137">PHP Brasil - Training</a></span><br> <span class="event_USA" style="font-weight: bold;">30. <a href= "http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br></td> </tr> </tbody> </table> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "175" height="1" border="0" alt=""></td> </tr> </tbody> </table> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr bgcolor="#333366"> <td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr bgcolor="#9999CC"> <td align="right" valign="bottom"><a href= "http://www.php.net/source.php?url=/index.php" class="small">show source</a> | <a href="http://www.php.net/credits.php" class= "small">credits</a> | <a href="http://www.php.net/sitemap.php" class="small">sitemap</a> | <a href= "http://www.php.net/mirrors.php" class="small">mirror sites</a> </td> </tr> <tr bgcolor="#333366"> <td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody> <tr valign="top" bgcolor="#CCCCCC"> <td><small><a href="http://www.php.net/copyright.php">Copyright © 2001-2003 The PHP Group</a><br> All rights reserved.</small></td> <td align="right"><small><a href= "http://www.php.net/mirror.php">This mirror</a> generously provided by: <a href="http://www.webhostingtalk.com/">Web Hosting Talk</a><br> Last updated: Sat Oct 25 11:11:43 2003 EDT</small></td> </tr> </tbody> </table> <!--/UdmComment--> </body> </html>
Index: presentations/slides/tidy_cug/api.xml +++ presentations/slides/tidy_cug/api.xml <slide title="Incredibly Flexible API"> <blurb title="Objects? Procedural? Pick your Pleasure!"> The tidy PHP extension in PHP 5 has a incredibly flexible API which allows you to use procedural or object oriented syntax. In fact, you can even use both at the same time! </blurb> <example type="php" filename="api_ex1.php" title="Procedural API"/> <example type="php" filename="api_ex2.php" title="Object Oriented API"/> <example type="php" filename="api_ex3.php" title="Mix and Match"/> </slide> Index: presentations/slides/tidy_cug/api_ex1.php +++ presentations/slides/tidy_cug/api_ex1.php <?php /* Parse a file */ $tidy1 = tidy_parse_file("myfile.html"); /* Parse a string */ $tidy2 = tidy_parse_string("<HTML><B>Hello!</B>"); /* Clean up the markup */ tidy_clean_repair($tidy1); tidy_clean_repair($tidy2); /* Get the error buffer */ $errors = tidy_get_error_buffer($tidy1); /* Get the output */ $output = tidy_get_output($tidy2); ?> Index: presentations/slides/tidy_cug/api_ex2.php +++ presentations/slides/tidy_cug/api_ex2.php <?php /* Create a new document instance */ $tidy = new tidy_doc(); /* Parse a remote URL via Streams */ $tidy->parse_file("http://www.coggeshall.org/"); /* Clean and repair the HTML document */ $tidy->clean_repair(); /* Access the error buffer */ $error_buf = $tidy->error_buf; /* Access the output by object overloading */ echo $tidy; ?> Index: presentations/slides/tidy_cug/api_ex3.php +++ presentations/slides/tidy_cug/api_ex3.php <?php /* Parse a new document */ $tidy = tidy_parse_file("http://www.coggeshall.org/"); /* Clean and repair the document */ $tidy->clean_repair(); /* Output the results; */ echo $tidy; ?> Index: presentations/slides/tidy_cug/bandwidth.xml +++ presentations/slides/tidy_cug/bandwidth.xml <slide title="Save bandwidth with Tidy"> <blurb title="You can save considerable bandwidth with tidy as well"> Consider the following ran against a copy of the php.net home page: </blurb> <example fontsize="1.6em" filename="bandwidth_ex1.php" title="Saving bandwidth with tidy"/> <blurb title="After tidy is finished, compare the file sizes.."/> <example type="html" fontsize="1.6em" title="Before and after..."> <![CDATA[<pre> -rw-rw-r-- 1 john john <b>27066</b> Jan 3 04:11 php.html -rw-rw-r-- 1 john john <b>26193</b> Jan 3 04:11 php_tidy.html</pre> ]]> </example> <blurb title="Without losing maintainability, tidy has saved 873 bytes per request"> That might not seem like a lot, but when you serve 100,000 hits a day you save *87.3 megabytes a day* in bandwidth. </blurb> </slide> Index: presentations/slides/tidy_cug/bandwidth_ex1.php +++ presentations/slides/tidy_cug/bandwidth_ex1.php <?php $tidy = tidy_parse_file("php.html"); tidy_setopt($tidy, "clean", true); tidy_setopt($tidy, "drop-proprietary-attributes", true); tidy_setopt($tidy, "drop-font-tags", true); tidy_setopt($tidy, "drop-empty-paras", true); tidy_setopt($tidy, "hide-comments", true); tidy_setopt($tidy, "join-classes", true); tidy_setopt($tidy, "join-styles", true); tidy_clean_repair($tidy); echo $tidy; ?> Index: presentations/slides/tidy_cug/beauty.xml +++ presentations/slides/tidy_cug/beauty.xml <slide title="Beautify HTML"> <blurb title="On the flipside, Tidy can also beautify HTML for easy reading"/> <example type="xml" fontsize="1.0em" filename="function.tidy-get-output.html" title="From this..."/> <example type="php" filename="beauty_ex1.php"/> <example type="xml" fontsize="1.0em" filename="beauty_ex1_res.html" title="To this..."/> </slide> Index: presentations/slides/tidy_cug/beauty_ex1.php +++ presentations/slides/tidy_cug/beauty_ex1.php <?php $tidy = new tidy_doc(); tidy_setopt($tidy, "indent", 2); tidy_setopt($tidy, "indent-spaces", 4); tidy_setopt($tidy, "wrap", 4096); $tidy->parse_file("function.tidy-get-output.html"); tidy_clean_repair($tidy); echo $tidy; Index: presentations/slides/tidy_cug/beauty_ex1_res.html +++ presentations/slides/tidy_cug/beauty_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>tidy_get_output</title> <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7"> <link rel="HOME" title="PHP Manual" href="index.html"> <link rel="UP" title="tidy Functions" href="ref.tidy.html"> <link rel="PREVIOUS" title="tidy_get_html" href="function.tidy-get-html.html"> <link rel="NEXT" title="tidy_get_release" href="function.tidy-get-release.html"> <meta http-equiv="Content-type" content="text/html; charset=us-ascii"> </head> <body class="refentry" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="NAVHEADER"> <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th colspan="3" align="center">PHP Manual</th> </tr> <tr> <td width="10%" align="left" valign="bottom"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="80%" align="center" valign="bottom"></td> <td width="10%" align="right" valign="bottom"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> </table> <hr align="left" width="100%"> </div> <h1><a name="function.tidy-get-output"></a>tidy_get_output</h1> <div class="refnamediv"> <a name="AEN104234"></a> <p>(no version information, might be only in CVS)</p>tidy_get_output -- Return a string representing the parsed tidy markup </div> <div class="refsect1"> <a name="AEN104237"></a> <h2>Description</h2>string <b class="methodname">tidy_get_output</b> ( resource tidy)<br> <br> <p>Returns a string representing the input document, as manipulated by tidy.</p> </div> <div class="NAVFOOTER"> <hr align="left" width="100%"> <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%" align="left" valign="top"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td> <td width="33%" align="right" valign="top"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> <tr> <td width="33%" align="left" valign="top">tidy_get_html</td> <td width="34%" align="center" valign="top"><a href="ref.tidy.html" accesskey="U">Up</a></td> <td width="33%" align="right" valign="top">tidy_get_release</td> </tr> </table> </div> </body> </html> Index: presentations/slides/tidy_cug/clean.xml +++ presentations/slides/tidy_cug/clean.xml <slide title="Converting To Stylesheets"> <blurb title="Automatically converting documents not using CSS"> Tidy can convert documents using <FONT> tags to CSS automatically, just set the %clean% option to %true% </blurb> <example type="xml" filename="clean_ex1.html" title="Input"/> <example filename="clean_ex1.php" title="Converting to CSS"/> <example type="xml" filename="clean_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/clean_ex1.html +++ presentations/slides/tidy_cug/clean_ex1.html <HTML><HEAD><TITLE><TITLE></HEAD> <BODY> <FONT COLOR="red">Hello, World!</FONT><BR/> <B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B> </BODY> </HTML> Index: presentations/slides/tidy_cug/clean_ex1.php +++ presentations/slides/tidy_cug/clean_ex1.php <?php $tidy = tidy_parse_file("clean_ex1.html"); tidy_setopt($tidy, "clean", true); tidy_clean_repair($tidy); echo $tidy; ?> Index: presentations/slides/tidy_cug/clean_ex1_res.html +++ presentations/slides/tidy_cug/clean_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> <style type="text/css"> b.c2 {color: #C0C0C0; font-size: 120%} span.c1 {color: red} </style> </head> <body> <span class="c1">Hello, World!</span><br> <b class="c2">More Text...</b> </body> </html> Index: presentations/slides/tidy_cug/config.xml +++ presentations/slides/tidy_cug/config.xml <slide title="Controlling Options"> <blurb title="Tidy Configuration Options"> Tidy configuration options represent the bulk of the power of the tidy extension. By adjusting these values you can change the behavior of tidy to match your needs. </blurb> <blurb title="Configuration options can be set a number of ways"/> <list> <bullet>Specifying a default configuration file using the %tidy.default_config% php.ini directive</bullet> <bullet>Setting options at run time using %tidy_setopt()% or the %setopt()% method</bullet> <bullet>Loading a configuration file at run time using %tidy_load_config()% or the %load_config()% method</bullet> <bullet>Specifying a configuration file when available as a function parameter i.e. %tidy_repair_file()%</bullet> </list> </slide> Index: presentations/slides/tidy_cug/config2.xml +++ presentations/slides/tidy_cug/config2.xml <slide title="Controlling Options"> <blurb title="Configuration Files"> Configuration files are generally simple text documents, but can be created using PHP </blurb> <example title="Creating a configuration File" filename="config2_ex1.php"/> <example type="text" title="Resulting configuration file" filename="myconfig.tcfg"/> </slide> Index: presentations/slides/tidy_cug/config2_ex1.php +++ presentations/slides/tidy_cug/config2_ex1.php <?php $tidy = new tidy_doc(); /* Set a number of options */ $tidy->setopt("output-xhtml", true); $tidy->setopt("fix-uri", true); $tidy->setopt("uppercase-tags", true); /* Save the configuration file */ $tidy->save_config("myconfig.tcfg"); ?> Index: presentations/slides/tidy_cug/configa.xml +++ presentations/slides/tidy_cug/configa.xml <slide title="Controlling Options"> <blurb title="Retrieving configuration options"> Options can be retrieved a number of ways </blurb> <list> <bullet>At runtime using %tidy_getopt()% or the %getopt()% method</bullet> <bullet>Saving the configuration using %tidy_save_config()% or the %save_config()% method</bullet> <bullet>Temporarily saving the configuration using %tidy_snapshot_config()% / %snapshot_config()% and restoring using %tidy_restore_config()% / %restore_config()%</bullet> </list> <blurb> The configuration can also be reset to the default using %tidy_reset_config()% (uses %tidy.default_config%) </blurb> </slide> Index: presentations/slides/tidy_cug/dumpit5.php +++ presentations/slides/tidy_cug/dumpit5.php <?php $tidy = tidy_parse_file("example.html"); /* Optionally you can do this here if you want to fix up the document */ /* $tidy->clean_repair() */ $tree = $tidy->root(); dump_tree($tree); echo "\n"; function node_type($type) { switch($type) { case TIDY_NODETYPE_ROOT: return "Root Node"; case TIDY_NODETYPE_DOCTYPE: return "DocType Node"; case TIDY_NODETYPE_COMMENT: return "Comment Node"; case TIDY_NODETYPE_PROCINS: return "ProcIns Node"; case TIDY_NODETYPE_TEXT: return "Text Node"; case TIDY_NODETYPE_START: return "Start Node"; case TIDY_NODETYPE_END: return "End Node"; case TIDY_NODETYPE_STARTEND: return "Start/End Node"; case TIDY_NODETYPE_CDATA: return "CDATA Node"; case TIDY_NODETYPE_SECTION: return "Section Node"; case TIDY_NODETYPE_ASP: return "ASP Source Code Node"; case TIDY_NODETYPE_PHP: return "PHP Source Code Node"; case TIDY_NODETYPE_JSTE: return "JSTE Source Code"; case TIDY_NODETYPE_XMLDECL: return "XML Declaration Node"; default: return "Unknown Node"; } } function do_leaf($string, $indent) { for($i = 0; $i < $indent; $i++) { echo " "; } echo $string; } function dump_tree(tidy_node $node, $indent = 0) { /* Put something there if the node name is empty */ $nodename = trim(strtoupper($node->name)); $nodename = (empty($nodename)) ? "[EMPTY]" : $nodename; /* Generate the Node, and a pretty name for it */ do_leaf(" + $nodename (".node_type($node->type).")\n", $indent); /* Check to see if this node is a text node. Text nodes are generated by start/end tags and contain the text in between. i.e. <B>foo</B> will create a text node with $node->value equal to 'foo' */ if($node->type == TIDY_NODETYPE_TEXT) { do_leaf(" |\n", $indent); do_leaf(" +---- Value: '{$node->value}'\n", $indent); } if(count($node->attribute)) { do_leaf(" |\n", $indent); do_leaf(" +---- Attributes\n", $indent); foreach($node->attribute as $name=>$value) { @do_leaf(" +-- $name\n", $indent); do_leaf(" | +-- Value: $value\n", $indent); } } /* Recurse along the children to generate the remaining nodes */ if($node->has_children()) { foreach($node->child as $child) { dump_tree($child, $indent + 3); } } } ?> Index: presentations/slides/tidy_cug/example.html +++ presentations/slides/tidy_cug/example.html <HTML> <HEAD> <TITLE>Example basic HTML document</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <B>Hello, World!</B> </BODY> </HTML> Index: presentations/slides/tidy_cug/from4to5.xml +++ presentations/slides/tidy_cug/from4to5.xml <slide title="So what's different From 4 to 5?"> <blurb title="The changes between tidy in 4.3.x and tidy in 5.0.0"> Simply put, the differences between 4.3.x and 5.0.0 versions of tidy (tidy versions 1.0 and 2.0) are significant </blurb> <blurb> In Tidy for 1.0, you could only manipulate one document at once. Although Tidy 1.0 worked in PHP 5 (allowing for some of the parsing abilities you've seen), the API has since been refactored to be easier to use </blurb> <example title="Tidy 1.0"><![CDATA[<?php tidy_parse_file("http://www.coggeshall.org/"); tidy_clean_repair(); echo tidy_get_output(); ?>]]></example> <blurb title="Tidy 1.0 is still maintained for the 4.3.x branch, but will no longer be improved"/> </slide> Index: presentations/slides/tidy_cug/function.tidy-get-output.html +++ presentations/slides/tidy_cug/function.tidy-get-output.html <HTML ><HEAD ><TITLE >tidy_get_output</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="tidy Functions" HREF="ref.tidy.html"><LINK REL="PREVIOUS" TITLE="tidy_get_html" HREF="function.tidy-get-html.html"><LINK REL="NEXT" TITLE="tidy_get_release" HREF="function.tidy-get-release.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.tidy-get-output" ></A >tidy_get_output</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN104234" ></A ><P > (no version information, might be only in CVS)</P >tidy_get_output -- Return a string representing the parsed tidy markup </DIV ><DIV CLASS="refsect1" ><A NAME="AEN104237" ></A ><H2 >Description</H2 >string <B CLASS="methodname" >tidy_get_output</B > ( resource tidy)<BR ></BR ><P > Returns a string representing the input document, as manipulated by tidy. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >tidy_get_html</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.tidy.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >tidy_get_release</TD ></TR ></TABLE ></DIV ></BODY ></HTML > Index: presentations/slides/tidy_cug/intro.xml +++ presentations/slides/tidy_cug/intro.xml <slide title="Tidying up your HTML"> <blurb title="Why'd I show up to talk about tidy?"> Because Tidy is a really cool technology for today's dynamic web environment </blurb> <blurb title="Why do you care?"> What tidy can do for you: </blurb> <list> <bullet>Make your HTML Completely web-standards compliant automatically</bullet> <bullet>Identify potential problems with your markup</bullet> <bullet>Make your web sites load faster</bullet> <bullet>Validate and repair user-submitted markup</bullet> <bullet>Extract all of the URLs from any web page in 21 lines of code *without regular expressions*</bullet> <bullet>Convert malformed HTML documents into XHTML 1.0 documents automatically</bullet> <bullet>Never use a regular expression for screen scraping again</bullet> </list> </slide> Index: presentations/slides/tidy_cug/intro2.xml +++ presentations/slides/tidy_cug/intro2.xml <slide title="Web standard in a snap"> <blurb title="With Tidy, complying with web standards is easy"> Tidy has a great markup parser which intelligently corrects a wide range of errors: </blurb> <example type="xml" filename="intro2_ex1.html" title="Input HTML"/> <example type="php" filename="intro2_ex1.php" title="Clean it up with Tidy"/> <example type="xml" filename="intro2_ex1_res.html" title="Output HTML"/> </slide> Index: presentations/slides/tidy_cug/intro2_ex1.html +++ presentations/slides/tidy_cug/intro2_ex1.html <P>Hello, <B>This HTML</I><I>is all sorts of</U></B> messed up! Index: presentations/slides/tidy_cug/intro2_ex1.php +++ presentations/slides/tidy_cug/intro2_ex1.php <?php $tidy = tidy_parse_file("intro2_ex1.html"); tidy_clean_repair($tidy); echo tidy_get_output($tidy); ?> Index: presentations/slides/tidy_cug/intro2_ex1_res.html +++ presentations/slides/tidy_cug/intro2_ex1_res.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p>Hello, <b>This HTML</b><i>is all sorts of</i> messed up!</p> </body> </html> Index: presentations/slides/tidy_cug/intro3.xml +++ presentations/slides/tidy_cug/intro3.xml <slide title="Identifying problems"> <blurb title="Not only can tidy fix things, it can tell you what went wrong:"> Tidy has a great markup parser which intelligently corrects a wide range of errors: </blurb> <example type="php" filename="intro3_ex1.php" title="Displaying the error buffer"/> <example type="xml" filename="intro3_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/intro3_ex1.php +++ presentations/slides/tidy_cug/intro3_ex1.php <?php $tidy = tidy_parse_file("intro2_ex1.html"); tidy_clean_repair($tidy); echo tidy_get_error_buffer($tidy); ?> Index: presentations/slides/tidy_cug/intro3_ex1_res.html +++ presentations/slides/tidy_cug/intro3_ex1_res.html line 1 column 1 - Warning: missing <!DOCTYPE> declaration line 1 column 11 - Warning: replacing unexpected i by </i> line 1 column 27 - Warning: replacing unexpected u by </u> line 1 column 49 - Warning: discarding unexpected </b> line 1 column 1 - Warning: inserting missing 'title' element Index: presentations/slides/tidy_cug/intro4.xml +++ presentations/slides/tidy_cug/intro4.xml <slide title="Controlling Tidy"> <blurb title="Don't want a complete HTML document?"> Tidy has a wide range of configuration options that allow you to manipulate how the output of tidy will look. In this case, you can use the 'show-body-only' option to keep tidy from creating a full HTML document. </blurb> <example type="php" filename="intro4_ex1.php" title="Setting options"/> <example type="xml" filename="intro4_ex1_res.html" title="Result"/> </slide> Index: presentations/slides/tidy_cug/intro4_ex1.php +++ presentations/slides/tidy_cug/intro4_ex1.php <?php $tidy = new tidy_doc(); $tidy->setopt("show-body-only", true); $tidy->parse_file("intro2_ex1.html"); $tidy->clean_repair(); echo $tidy; ?> Index: presentations/slides/tidy_cug/intro4_ex1_res.html +++ presentations/slides/tidy_cug/intro4_ex1_res.html <p>Hello, <b>This HTML</b><i>is all sorts of</i> messed up!</p> Index: presentations/slides/tidy_cug/markup.xml +++ presentations/slides/tidy_cug/markup.xml <slide title="What is Tidy, anyway?"> <blurb title="The tidy for PHP allows for a wide range of web-centric tasks including:"/> <list> <bullet>Clean, diagnose and automatically repair malformed markup</bullet> <bullet>Parse, navigate and extract portions of a HTML document from within PHP</bullet> </list> </slide> Index: presentations/slides/tidy_cug/myconfig.tcfg +++ presentations/slides/tidy_cug/myconfig.tcfg indent-spaces: 0 output-xhtml: yes uppercase-tags: yes tidy-mark: no force-output: yes Index: presentations/slides/tidy_cug/outputbuf.xml +++ presentations/slides/tidy_cug/outputbuf.xml <slide title="Tidy Output Buffering"> <blurb title="Tidy also supports output buffering"> The function %ob_tidyhandler()% is available for use with PHP output buffering to automatically parse, clean and repair output based on the %tidy.default_config% directive. </blurb> <example title="Using tidy output buffering"><![CDATA[<?php ob_start("ob_tidyhandler"); /* Data output here...*/ ?>]]></example> <blurb>Alternatively, you can set the %tidy.clean_output% php.ini directive to true to automatically clean output. </blurb> <blurb>*BE WARNED: Tidy does _not_ check the content type of the output!*</blurb> </slide> Index: presentations/slides/tidy_cug/parsing.xml +++ presentations/slides/tidy_cug/parsing.xml <slide title="Parsing with Tidy"> <blurb title="Wait! There's More!"> As powerful as tidy already is, the PHP tidy extension also makes parsing and navigating an HTML document tree a snap! </blurb> <blurb title="Accessing Document Nodes"> Tidy allows you to "jump into" a document tree at key points and from there navigate your way using object constructs </blurb> <blurb title="Just call one of these four methods to get started.."/> <list> <bullet> %root()% -- Begin at the start of the document</bullet> <bullet> %head()% -- Begin at the <HEAD> tag</bullet> <bullet> %html()% -- Begin at the <HTML> tag</bullet> <bullet> %body()% -- Begin at the <BODY> tag</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing2.xml +++ presentations/slides/tidy_cug/parsing2.xml <slide title="Jumping into a document"> <image filename="tree.gif" align="center" width="300" height="200"/> <example fontsize="1.6em" title="Given a basic HTML document..."><![CDATA[<HTML> <HEAD> <TITLE>Example basic HTML document</TITLE> </HEAD> <BODY BGCOLOR=#FFFFFF> <B>Hello, World!</B> </BODY> </HTML>]]> </example> <example fontsize="1.6em" title="You can Access a given 'jump node' like so.."><![CDATA[ <?php $tidy = tidy_parse_file("myhtmldoc.html"); $root = $tidy->root(); $html = $tidy->html(); $head = $tidy->head(); $body = $tidy->body(); ?>]]></example> </slide> Index: presentations/slides/tidy_cug/parsing3.xml +++ presentations/slides/tidy_cug/parsing3.xml <slide title="The Tidy Node"> <blurb title="A tidy node is a PHP object"> Each node is an instance of the internal %tidy_node% class with the following structure: </blurb> <example title="The tidy_node class" fontsize="1.6em"><![CDATA[<?php class tidy_node { public $value; public $name; public $type; public $id; /* $id Not always available, depends on type */ public tidy_attr $attribute[]; public tidy_node $child[]; public function has_children(); public function is_comment(); public function is_html(); public function is_text(); public function is_jste(); public function is_asp(); public function is_php(); } ?>]]></example> </slide> Index: presentations/slides/tidy_cug/parsing4.xml +++ presentations/slides/tidy_cug/parsing4.xml <slide title="The Tidy Node"> <blurb title="What the properities mean"/> <list> <bullet>%$value% - The value of the current node, and all subnodes combined</bullet> <bullet>%$name% - The name of the node (generally the HTML tag)</bullet> <bullet>%$type% - The type of node (discussed in next slide)</bullet> <bullet>%$id% - The ID of the node (not always available, depends on type)</bullet> <bullet>%$attribute% - An associative array of attributes for the node</bullet> <bullet>%$child% - An indexed array of all the children of this node</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing5.xml +++ presentations/slides/tidy_cug/parsing5.xml <slide title="The Tidy Node"> <blurb title="Node Types and IDs"> There are 14 different types of nodes, each is represented by a PHP constant </blurb> <list> <bullet>%TIDY_NODETYPE_ROOT% - The root node of the tree</bullet> <bullet>%TIDY_NODETYPE_DOCTYPE% - The DOCTYPE of the tree</bullet> <bullet>%TIDY_NODETYPE_COMMENT% - A comment</bullet> <bullet>%TIDY_NODETYPE_PROCINS% - ????</bullet> <bullet>%TIDY_NODETYPE_TEXT% - A text element of the tree</bullet> <bullet>*%TIDY_NODETYPE_START%* - The start of a markup tag</bullet> <bullet>*%TIDY_NODETYPE_END%* - The end of a markup tag</bullet> <bullet>*%TIDY_NODETYPE_STARTEND%* - A tag that does not have an end (one-liner)</bullet> <bullet>%TIDY_NODETYPE_CDATA% - A CDATA block</bullet> <bullet>%TIDY_NODETYPE_SECTION% - A section block</bullet> <bullet>%TIDY_NODETYPE_ASP% - An ASP code block</bullet> <bullet>%TIDY_NODETYPE_JSTE% - A JSTE code block</bullet> <bullet>%TIDY_NODETYPE_PHP% - A PHP code block</bullet> <bullet>%TIDY_NODETYPE_XMLDECL% - A XML Declaration</bullet> </list> <blurb title="Node IDs"> For those types listed in bold above, a node ID is also associated which maps to a known HTML tag. These IDs are represented by constants of the form TIDY_TAG_%TAGNAME% WHERE %TAGNAME% is the HTML tag (such as 'A', 'BODY', etc.) </blurb> <list> <bullet>%TIDY_TAG_A% - A node for an %A% tag</bullet> <bullet>%TIDY_TAG_BODY% - A node for a %BODY% tag</bullet> </list> </slide> Index: presentations/slides/tidy_cug/parsing6.xml +++ presentations/slides/tidy_cug/parsing6.xml <slide title="Using the Tidy parser"> <blurb title="Bye bye, regular expressions!"> Thanks to the tidy parser, no longer do you have to rely on regular expressions to extract content from another HTML document. Rather, you can use a much more maintainable solution! </blurb> <blurb> In the following example (found in the ext/tidy/examples/ directory), I use the tidy parser to extract all of the links from an arbitary HTML document </blurb> <example fontsize="1.6em" filename="urlgrab5.php" title="Grabbing URLs from an HTML document"/> </slide> Index: presentations/slides/tidy_cug/parsing7.xml +++ presentations/slides/tidy_cug/parsing7.xml <slide title="Using the Tidy parser"> <blurb title="Dumping the document tree"> Here is another quick example I wrote. In this example, I use the tidy parser to navigate the entire document tree and display it. Taken from %ext/tidy/examples/dumpit5.php% </blurb> <example fontsize="1.6em" filename="dumpit5.php" title="Dumping the document tree"/> </slide> Index: presentations/slides/tidy_cug/parsing8.xml +++ presentations/slides/tidy_cug/parsing8.xml <slide title="Using the Tidy parser"> <blurb title="And here is the output..."/> <example fontsize="1.6em" title="ext/tidy/examples/dumpit5.php output"><![CDATA[ + [EMPTY] (Root Node) + HTML (Start Node) + HEAD (Start Node) + TITLE (Start Node) + [EMPTY] (Text Node) | +---- Value: 'Example basic HTML document' + BODY (Start Node) | +---- Attributes +-- bgcolor | +-- Value: #FFFFFF + B (Start Node) + [EMPTY] (Text Node) | +---- Value: 'Hello, World!' ]]></example> </slide> Index: presentations/slides/tidy_cug/parsing9.xml +++ presentations/slides/tidy_cug/parsing9.xml <slide title="Other useful parsing tidbits"> <blurb title="Pulling Tables out of documents"> When you display the value for a particular node, you recieve the entire contents of that node plus all of its children nodes. Thus, entire tables can be pulled out of HTML documents regardless of complexity just by saying: </blurb> <example><![CDATA[<?php if($node->id == TIDY_TAG_TABLE) { echo $node->value; } ?>]]></example> <blurb title="Nodes are overloaded, too!"> Just as was the case with tidy documents, the %tidy_node% class is overloaded, meaning you can treat an instance of the object just as if it were any other string: </blurb> <example><![CDATA[<?php if($node->id == TIDY_TAG_TABLE) { echo $node; } ?>]]></example> </slide> Index: presentations/slides/tidy_cug/php.html +++ presentations/slides/tidy_cug/php.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>PHP: Hypertext Preprocessor</title><link rel="stylesheet" href="PHP:%20Hypertext%20Preprocessor_files/style.css"> <link rel="stylesheet" href="PHP:%20Hypertext%20Preprocessor_files/phpnet.css"> <link rel="shortcut icon" href="http://static.php.net/www.php.net/favicon.ico"> <script language="Javascript" type="text/javascript" src="PHP:%20Hypertext%20Preprocessor_files/userprefs.js"></script> <!-- base href="http://www.php.net/index.php" --></head> <body bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff" vlink="#000099" onload="boldEvents(); searchHistory();"> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody><tr bgcolor="#9999cc"> <td align="center" rowspan="2" width="126"><a href="http://www.php.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/php.gif" alt="PHP" width="120" height="67" hspace="3"></a></td> <td> </td> </tr> <tr bgcolor="#9999cc"> <td align="right" valign="bottom"> <a href="http://www.php.net/downloads.php" class="small">downloads</a> | <a href="http://www.php.net/docs.php" class="small">documentation</a> | <a href="http://www.php.net/FAQ.php" class="small">faq</a> | <a href="http://www.php.net/support.php" class="small">getting help</a> | <a href="http://www.php.net/mailing-lists.php" class="small">mailing lists</a> | <a href="http://bugs.php.net/" class="small">reporting bugs</a> | <a href="http://www.php.net/sites.php" class="small">php.net sites</a> | <a href="http://www.php.net/links.php" class="small">links</a> | <a href="http://www.php.net/my.php" class="small">my php.net</a> </td> </tr> <tr bgcolor="#333366"><td colspan="2"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> <tr bgcolor="#666699"> <td align="right" valign="top" colspan="2" class="quicksearch"> <form method="post" action="/search.php" class="thin" name="topsearch"> <small><span title="Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)"><u>s</u>earch for</span></small> <input class="small" type="text" name="pattern" value="" size="30" accesskey="s"> <small>in the</small> <select name="show" class="small"><option value="quickref" selected="selected">function list</option><option value="wholesite">whole site</option><option value="manual">online documentation [en]</option><option value="bugdb">bug database</option><option value="maillist">general mailing list</option><option value="devlist">developer mailing list</option><option value="phpdoc">documentation mailing list </option></select> <input type="image" src="PHP:%20Hypertext%20Preprocessor_files/small_submit_white.gif" alt="search" align="baseline"> </form> </td> </tr> <tr bgcolor="#333366"><td colspan="3"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> </tbody></table> <!--/UdmComment--> <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr valign="top"> <td width="200" bgcolor="#f0f0f0"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tbody><tr valign="top"><td class="sidebar"> <h3>What is PHP?</h3> <p> <acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the <a href="http://www.php.net/tut.php">introductory tutorial</a>. After that, check out the online <a href="http://www.php.net/docs.php">manual</a>, and the example archive sites and some of the other resources available in the <a href="http://www.php.net/links.php">links section</a>. </p> <p> Ever wondered how popular PHP is? see the <a href="http://www.php.net/usage.php">Netcraft Survey</a>. </p> <p> PHP is a project of the <a href="http://www.apache.org/">Apache Software Foundation</a>. </p> <h3><a href="http://www.php.net/thanks.php">Thanks To</a></h3> <ul class="simple"> <li><a href="http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li> <li><a href="http://www.directi.com/">Directi</a></li> <li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li> <li><a href="http://www.ev1servers.net/">EV1Servers</a></li> <li><a href="http://www.servercentral.net/">Server Central</a></li> <li><a href="http://www.redundant.com/">Redundant Networks</a></li> <li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li> <li><a href="http://www.rackspace.com/?supbid=php.net">Rackspace</a></li> </ul> <h3>Related sites</h3> <ul class="simple"> <li><a href="http://www.apache.org/">Apache</a></li> <li><a href="http://www.mysql.com/">MySQL</a></li> <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> <li><a href="http://www.zend.com/">Zend Technologies</a></li> </ul> <h3>Community</h3> <ul class="simple"> <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> <li><a href="http://www.osdn.org/">OSDN</a></li> </ul> <h3>Syndication</h3> <p> You can grab our news as an RSS feed via a daily dump in a file named <a href="http://www.php.net/news.rss">news.rss</a>. </p> <h3>Contact</h3> <p> Please submit website bugs in the <a href="http://bugs.php.net/">bug system</a>. </p></td></tr> </tbody></table> </td> <td bgcolor="#cccccc" background="PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> <td> <table cellpadding="10" cellspacing="0" width="100%"> <tbody><tr><td valign="top"> <h1>PHP 4.3.4RC2 released</h1> <p> <span class="newsdate">[20-Oct-2003]</span> <a href="http://qa.php.net/">PHP 4.3.4RC2</a> has been released for testing. This release candidate is hopefully the final release candidate prior to the 4.3.4 release and should be very stable. Please test this release as much as possible, so that any remaining issues can be uncovered and resolved prior to the final release. </p> <p> List of changes can be found in the <a href="http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.412&r2=1.1247.2.442">NEWS</a> file. </p> <hr> <a href="http://www.directionphp.biz/"><img src="PHP:%20Hypertext%20Preprocessor_files/directionphp.png" alt="Direction|PHP" width="99" height="128" style="float: right;"></a> <h1>Monthly PHP Magazine in French launched!</h1> <p> <span class="newsdate">[15-Oct-2003]</span> <a href="http://www.nexen.net/">Nexen.net</a> has launched Direction|PHP, the first PHP and MySQL dedicated magazine in French. This monthly publication features indeep coverage of PHP industry, business and user cases and technical articles from PHP|Architect. </p> <p> For more information, read the <a href="http://www.directionphp.biz/index.php">Direction|PHP website</a> (in French). </p> <hr> <a href="http://www.apachecon.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/apachecon2003.jpg" alt="ApacheCon" width="135" height="45" style="float: right;"></a> <h1>ApacheCon 2003, the Global Hub for All Things Apache</h1> <p> <span class="newsdate">[11-Oct-2003]</span> The <a href="http://www.apachecon.com/">official conference of the Apache Software Foundation</a> will be held November 16-20, 2003 in Las Vegas. More than 60 sessions highlight core and next-generation Apache server tools, offering a wide range of beginner, intermediate and advanced sessions. Learn firsthand the latest developments in Apache, as well as key open source projects, including PHP, Perl, XML, Java, MySQL, and WebDAV. </p> <hr> <a href="http://www.phpcruise.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/phpcruise.png" alt="php|cruise" width="162" height="29" style="float: right;"></a> <h1>php|cruise: The World's First Ever PHP-only Cruise</h1> <p> <span class="newsdate">[20-Sep-2003]</span> The publishers of php|architect have announced <a href="http://www.phparch.com/cruise/">php|cruise</a>, a five-day cruise to the Bahamas Islands featuring a lot of fun and over thirty different sessions dedicated to PHP from well known experts like Wez Furlong, Alan Knowles and John Coggeshall. </p> <p> The cruise will take place March 1st to 5th, 2004. The organizers have <a href="http://www.phparch.com/cruise/contest/">announced a contest</a> to give away one free place on the cruise. </p> <hr> <a href="http://www.zend.com/zend/php_survey_results.php"><img src="PHP:%20Hypertext%20Preprocessor_files/zendtech_logo.gif" alt="Zend Technologies" width="150" height="77" style="float: right;"></a> <h1>PHP Usage Survey Results</h1> <p> <span class="newsdate">[18-Sep-2003]</span> <a href="http://www.zend.com/zend/php_survey_results.php">Check out</a> the results of the PHP Usage Survey conducted by Zend Technologies, including feedback from thousands of PHP users around the world. Thanks for all who contributed! </p> <hr> <a href="http://weblabor.hu/php-doc-chm"><img src="PHP:%20Hypertext%20Preprocessor_files/chmhelp.gif" alt="CHM" width="48" height="48" style="float: right;"></a> <h1>PHP Manual CHM Edition - 12th build</h1> <p> <span class="newsdate">[06-Sep-2003]</span> The 12th build of the extended CHM edition is out now, and <a href="http://www.php.net/get/php_manual_chm_12.zip/from/a/mirror">available for download</a>. This build contains updated content and user notes, as well as fixes the bugs found in the previous build. A new optional "phpZ" skin is also introduced in this release, courtesy of Gonzalo De la Pena Andreu. For more information, visit <a href="http://weblabor.hu/php-doc-chm/">the homepage of this edition.</a> </p> <hr> <a href="http://www.phpconference.de/2003/index_en.php"><img src="PHP:%20Hypertext%20Preprocessor_files/international_conference_2003.gif" alt="International PHP Conference 2003" width="120" height="77" style="float: right;"></a> <h1>International PHP Conference 2003 program online</h1> <p> <span class="newsdate">[05-Sep-2003]</span> The organisers of the <a href="http://www.phpconference.de/2003/index_en.php">International PHP Conference</a> which will take place for the third time in Frankfurt, Germany from Nov. 2 to 5, 2003 have announced the conference program. The conference board which consists of Bjoern Schotte, Zak Greant, Zeev Suraski, Thies Arntzen and Jan Lehnardt has chosen more than 40 sessions for the main program on Nov. 4 and 5 and 7 in-depth Power Workshops for the pre conference program on Nov. 2 and 3. Among the prominent speaking crowd is Zeev Suraski, Ken Coar and many others. See <a href="http://www.phpconference.de/2003/index_en.php">the conference website</a> for more information. </p> <hr> <a href="http://servercentral.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/server_central.gif" alt="Server Central" width="120" height="120" style="float: right;"></a> <h1>Server Central Donates Server</h1> <p> <span class="newsdate">[28-Aug-2003]</span> Chicago-based company <a href="http://servercentral.net/">Server Central</a> has donated PHP.net a brand new server with a gigabit connection. The box is a quad 2.4GHz machine with 2GB ram, so we're going to be using it to power our more resource-intensive tasks, including building the manual. Thanks, Server Central! </p> <hr> <h1>European Open Source Development Threatened!</h1> <p> <span class="newsdate">[27-Aug-2003]</span> Today sees an international day of protest against the move by the EU to make obtaining a patent easier within Europe. Such patents may cause Open Source software such as PHP to infringe on existing licenses and new ones, meaning we would no longer be safe to distribute PHP within Europe. Contact your EU Representative to get this cruicial vote blocked. Find out more at the <a href="http://swpat.ffii.org/">campaign website</a> </p> <hr> <a href="http://www.php-con.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/phpcon_2003.gif" alt="php{con west 2003" width="120" height="60" style="float: right;"></a> <h1>php{con west is announced</h1> <p> <span class="newsdate">[26-Aug-2003]</span> php{con returns to the San Francisco Bay Area with new sessions, PHP gurus and a whole new day of PHP-intensive learning. Their program features a full day of tutorials, three technical session tracks over two days, an all day coding marathon, Code Sprint, social events, works in progress, and presentations from PHP luminaries. Early Bird discounts end on September 26th. See the full program and register online at <a href="http://www.php-con.com/">their website</a> </p> <hr> <h1>PHP 4.3.3 released!</h1> <p> <span class="newsdate">[25-Aug-2003]</span> The PHP developers are proud to announce the immediate availability of <a href="http://www.php.net/release_4_3_3.php">PHP 4.3.3</a>. This release contains a large number of bug fixes and we <strong>strongly</strong> recommend that all users of PHP upgrade to this version. Full list of fixes can be found in the <a href="http://www.php.net/ChangeLog-4.php#4.3.3">NEWS</a> file. </p> <hr> <a href="http://www.activestate.com/Corporate/ActiveAwards/"><img src="PHP:%20Hypertext%20Preprocessor_files/activestate_logo.gif" alt="ActiveState" width="115" height="50" style="float: right;"></a> <h1>Active Awards 2003 Winners</h1> <p> <span class="newsdate">[15-Aug-2003]</span> The <a href="http://www.activestate.com/Corporate/ActiveAwards/">Active Awards</a> are held annually to honor members of the open source community who actively contribute to open source languages and display excellence in their programming efforts. Programmers' Choice Award winners were nominated and chosen by the open source community. Activators' Choice Award winners were chosen by ActiveState's development team. </p> <p> This year's nominees were: Monte Ohrt, Paul S. Owen, Stanislav Malyshev, Stig Bakken and Wez Furlong. The Programmers' Choice winner is <strong>Stig Bakken</strong>, the father of PEAR. The Activators' Choice winner is <strong>Ilia Alshanetsky</strong>, member of the PHP Quality Assurance team, developer of the fudforum package, and a major contributor to PHP development. </p> <hr> <h1>PHP.net news history</h1> <p> <span class="newsdate">[15-Aug-2003]</span> Ever wonder what was the original PHP 3.0 release announcement, what where the choices when the PHP: Hypertext Preprocessor name was choosen, or since when you can use URL shortcuts to access pieces of our site? We have digged up some of the most interesting news items published on PHP.net since January 1998, when the site started to serve its visitors. You can find these <a href="http://www.php.net/news-2003.php">in the news archives</a>. There is also some historical information in <a href="http://www.php.net/history">the manual's history appendix</a>. </p> <hr> <h1>Select mirror for redirection</h1> <p> <span class="newsdate">[13-Aug-2003]</span> The www.php.net site tries to do the best to choose close mirrors based on all available data when redirecting users to mirror sites. Sometimes close mirror sites are unfortunately not the fastest. This is why we have added the mirror site selection possibility to <a href="http://www.php.net/my.php">our My PHP.net service</a>, which enables users to select a specific mirror site for redirections. </p> <hr> <a href="http://www.php-mag.net/"><img src="PHP:%20Hypertext%20Preprocessor_files/php-mag.gif" alt="PHP Magazine" width="130" height="38" style="float: right;"></a> <h1>PHP Magazine web site now with daily news</h1> <p> <span class="newsdate">[12-Aug-2003]</span> <a href="http://www.php-mag.net/">The International PHP Magazine web site</a> now offers daily news for PHP professionals and beginners from all over the world, helping them to stay up-to-date with the latest news on PHP and related technologies. </p> <hr> <h1>URL Shortcuts and Site Search</h1> <p> <span class="newsdate">[29-Jul-2003]</span> After many of our users requested a change in how <a href="http://www.php.net/urlhowto.php">our URL shortcuts</a> behave when someone mistypes a shortcut, the default behaviour now is to look for a function name instead of performing a documentation search on Google. Those, who were satisfied with the Google search, can <a href="http://www.php.net/my.php">set their preference at the My PHP.net page</a>. We are working on a better onsite search solution, Google is used temporarily to search our site. </p> <hr> <p class="center"><a href="http://www.php.net/news-2003.php">News Archive</a></p> </td></tr></tbody></table></td><td bgcolor="#cccccc" background="PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="185" bgcolor="#f0f0f0"> <table width="100%" cellpadding="4" cellspacing="0"> <tbody><tr valign="top"><td class="sidebar"><div align="center"><h3>This mirror sponsored by:</h3> <a href="http://www.webhostingtalk.com/"><img src="PHP:%20Hypertext%20Preprocessor_files/mirror.gif" alt="Web Hosting Talk" height="125" width="125"></a></div><br><hr> <h3>Upcoming Events <a href="http://www.php.net/submit-event.php">[add]</a></h3> <h4 class="eventmonth">October</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">29. <a href="http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">30. <a href="http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <h4>Conferences</h4> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1095">php-con West 2003</a></span><br> <span class="event_ITA">24. <a href="http://www.php.net/cal.php?id=1110">First italian PHP day</a></span><br> <h4>Training</h4> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1050">PHP/MySQL Bootcamp</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1087">PHP/MySQL Bootcamp 5 Days (MD)</a></span><br> <span class="event_CAN">24. <a href="http://www.php.net/cal.php?id=1105">PHP/MySQL Open Systems Web Dev</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_USA" style="font-weight: bold;">26. <a href="http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1132">Online MySQL course</a></span><br> <span class="event_NLD">27. <a href="http://www.php.net/cal.php?id=1035">PHP Programming en PHP Advanced</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1079">LogiCreate PHP Training</a></span><br> <span class="event_DEU">27. <a href="http://www.php.net/cal.php?id=1083">Apache/PHP/MySQL-Workshop</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href="http://www.php.net/cal.php?id=1101">AMP Technology Training</a></span><br> <span class="event_GBR">28. <a href="http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href="http://www.php.net/cal.php?id=1116">PHP Training in San Francisco</a></span><br> <h4 class="eventmonth">November</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">1. <a href="http://www.php.net/cal.php?id=96">Chicago</a></span><br> <span class="event_USA" style="font-weight: bold;">5. <a href="http://www.php.net/cal.php?id=661">PHP/LAMP Denver</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=76">SEMPUG</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=109">SDPHP (San Diego, CA)</a></span><br> <span class="event_DEU">6. <a href="http://www.php.net/cal.php?id=272">Hannover</a></span><br> <span class="event_CAN">6. <a href="http://www.php.net/cal.php?id=1133">PHPQuebec - Montreal</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=561">Meetup Day</a></span><br> <span class="event_AUS">6. <a href="http://www.php.net/cal.php?id=1127">Sydney PHP Group meeting</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href="http://www.php.net/cal.php?id=1005">Omaha PHP Users Group Meetup</a></span><br> <span class="event_DEU">7. <a href="http://www.php.net/cal.php?id=95">Frankfurt</a></span><br> <span class="event_DEU">7. <a href="http://www.php.net/cal.php?id=153">Köln/Bonn</a></span><br> <span class="event_ESP">7. <a href="http://www.php.net/cal.php?id=240">Reunión mensual</a></span><br> <span class="event_CAN">11. <a href="http://www.php.net/cal.php?id=1134">PHPQuebec - Quebec</a></span><br> <span class="event_USA" style="font-weight: bold;">12. <a href="http://www.php.net/cal.php?id=104">Twin Cities</a></span><br> <span class="event_CAN">13. <a href="http://www.php.net/cal.php?id=960">Vancouver</a></span><br> <span class="event_DEU">15. <a href="http://www.php.net/cal.php?id=79">Stuttgart</a></span><br> <span class="event_USA" style="font-weight: bold;">15. <a href="http://www.php.net/cal.php?id=1131">Kansas City</a></span><br> <span class="event_USA" style="font-weight: bold;">19. <a href="http://www.php.net/cal.php?id=474">Seattle</a></span><br> <span class="event_CAN">19. <a href="http://www.php.net/cal.php?id=651">Calgary</a></span><br> <span class="event_NZL">19. <a href="http://www.php.net/cal.php?id=837">Wellington NZ</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href="http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">26. <a href="http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">27. <a href="http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <span class="event_ITA">29. <a href="http://www.php.net/cal.php?id=1136">Changes in PHP 5/Zend Engine 2.0</a></span><br> <h4>Conferences</h4> <span class="event_DEU">2. <a href="http://www.php.net/cal.php?id=1014">International PHP Conference</a></span><br> <span class="event_USA" style="font-weight: bold;">16. <a href="http://www.php.net/cal.php?id=1125">ApacheCon 2003</a></span><br> <h4>Training</h4> <span class="event_PHL">1. <a href="http://www.php.net/cal.php?id=1097">Extreme PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">1. <a href="http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=338">MySQL Spain</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=445">PHP-Madrid</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=456">Curso PHP Madrid</a></span><br> <span class="event_DEU">3. <a href="http://www.php.net/cal.php?id=641">PHP E-Learning/Germany</a></span><br> <span class="event_ESP">3. <a href="http://www.php.net/cal.php?id=998">Curso on-line ActionScript / PHP</a></span><br> <span class="event_YUG">3. <a href="http://www.php.net/cal.php?id=1124">AlefBrain PHP Training</a></span><br> <span class="event_ESP">4. <a href="http://www.php.net/cal.php?id=841">Curso on-line de PHP-MySQL</a></span><br> <span class="event_USA" style="font-weight: bold;">8. <a href="http://www.php.net/cal.php?id=1051">Intro to PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">10. <a href="http://www.php.net/cal.php?id=1128">RAMP Training & Certification</a></span><br> <span class="event_NLD">10. <a href="http://www.php.net/cal.php?id=1025">PHP Advanced Programming</a></span><br> <span class="event_NLD">19. <a href="http://www.php.net/cal.php?id=1023">CIW Dynamic Server Pages (DSP)</a></span><br> <span class="event_NLD">24. <a href="http://www.php.net/cal.php?id=1036">PHP Programming en PHP Advanced</a></span><br> <span class="event_NLD">24. <a href="http://www.php.net/cal.php?id=1028">PHP Programming</a></span><br> <span class="event_GBR">24. <a href="http://www.php.net/cal.php?id=1129">"Technology for PHP", UK</a></span><br> <span class="event_GBR">25. <a href="http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href="http://www.php.net/cal.php?id=1117">PHP Training in San Francisco</a></span><br> <span class="event_GBR">25. <a href="http://www.php.net/cal.php?id=1130">"PHP Programming", UK</a></span><br> <span class="event_BRA">27. <a href="http://www.php.net/cal.php?id=1137">PHP Brasil - Training</a></span><br> <span class="event_USA" style="font-weight: bold;">30. <a href="http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br></td></tr> </tbody></table> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="175" height="1" border="0" alt=""></td> </tr></tbody></table> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody><tr bgcolor="#333366"><td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> <tr bgcolor="#9999cc"> <td align="right" valign="bottom"> <a href="http://www.php.net/source.php?url=/index.php" class="small">show source</a> | <a href="http://www.php.net/credits.php" class="small">credits</a> | <a href="http://www.php.net/sitemap.php" class="small">sitemap</a> | <a href="http://www.php.net/mirrors.php" class="small">mirror sites</a> </td> </tr> <tr bgcolor="#333366"><td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td></tr> </tbody></table> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody><tr valign="top" bgcolor="#cccccc"> <td><small><a href="http://www.php.net/copyright.php">Copyright © 2001-2003 The PHP Group</a><br>All rights reserved.</small></td> <td align="right"><small> <a href="http://www.php.net/mirror.php">This mirror</a> generously provided by: <a href="http://www.webhostingtalk.com/">Web Hosting Talk</a><br> Last updated: Sat Oct 25 11:11:43 2003 EDT </small> </td> </tr> </tbody></table> <!--/UdmComment--> </body></html> Index: presentations/slides/tidy_cug/repair.xml +++ presentations/slides/tidy_cug/repair.xml <slide title="Tidy simplified"> <blurb> Common tidy operations can be simplified into a single PHP function call which allows you to tidy a string or input file using a specified configuration... </blurb> <blurb> %tidy_repair_string($tidy, $data [, $config_file]);% </blurb> <blurb> %tidy_repair_file($tidy, $data, [, $config_file [, $use_include_path]]);% </blurb> <example fontsize="1.6em" title="Repairing http://www.coggeshall.org/"><![CDATA[<?php echo tidy_repair_file("http://www.coggeshall.org/", "basic.tcfg"); ?>]]> </example> <example fontsize="1.6em" title="Repairing user POST data"><![CDATA[<?php if(!empty($_POST['data'])) { $data = tidy_repair_string($_POST['data']); } ?>]]> </example> </slide> Index: presentations/slides/tidy_cug/smarty.xml +++ presentations/slides/tidy_cug/smarty.xml <slide title="Smarty output filter"> <blurb title="Smarty output filter plugin"> Here is a quick output filter plugin I wrote for use on one of my sites that uses tidy and Smarty (http://smarty.php.net/). </blurb> <example type="php" title="A Smarty Output filter"><![CDATA[<?php function smarty_outputfilter_tidyrepairhtml($source, &$smarty) { if(extension_loaded('tidy')) { return tidy_repair_string($source); } } ?>]]> </example> </slide> Index: presentations/slides/tidy_cug/thankyou.xml +++ presentations/slides/tidy_cug/thankyou.xml <slide title="Questions, Comments?"> <blurb align="center" title="Shameless book plug! -- *The PHP Developer's Handbook*"> If you found this useful, you'll find my upcoming book on PHP 5 even better! ISBN: 0-672-32511-X </blurb> <image filename="bookcoversmall.jpg" align="center"/> <blurb title="Find more information online..."/> <blurb><![CDATA[<BR>]]></blurb> <link align="center" leader="libTidy Homepage: ">http://tidy.sourceforge.net/</link> <link align="center" leader="PHP Tidy Homepage: ">http://www.coggeshall.org/tidy.php</link> </slide> Index: presentations/slides/tidy_cug/tidyopts.xml +++ presentations/slides/tidy_cug/tidyopts.xml <slide title="Configuration Options"> <blurb title="Tidy configuration options"> The following is a list of all of the configuration options supported by tidy <![CDATA[ <HR/> <CENTER> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Tidy Configuration Directive</th><th>Value</th></tr> <tr><td class="e">indent-spaces </td><td class="v">0 </td></tr> <tr><td class="e">wrap </td><td class="v">68 </td></tr> <tr><td class="e">tab-size </td><td class="v">8 </td></tr> <tr><td class="e">char-encoding </td><td class="v">1 </td></tr> <tr><td class="e">input-encoding </td><td class="v">3 </td></tr> <tr><td class="e">output-encoding </td><td class="v">1 </td></tr> <tr><td class="e">newline </td><td class="v">0 </td></tr> <tr><td class="e">doctype-mode </td><td class="v">1 </td></tr> <tr><td class="e">doctype </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">repeated-attributes </td><td class="v">1 </td></tr> <tr><td class="e">alt-text </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">slide-style </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">error-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">output-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">write-back </td><td class="v">FALSE </td></tr> <tr><td class="e">markup </td><td class="v">TRUE </td></tr> <tr><td class="e">show-warnings </td><td class="v">TRUE </td></tr> <tr><td class="e">quiet </td><td class="v">FALSE </td></tr> <tr><td class="e">indent </td><td class="v">0 </td></tr> <tr><td class="e">hide-endtags </td><td class="v">FALSE </td></tr> <tr><td class="e">input-xml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-xml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-xhtml </td><td class="v">FALSE </td></tr> <tr><td class="e">output-html </td><td class="v">FALSE </td></tr> <tr><td class="e">add-xml-decl </td><td class="v">FALSE </td></tr> <tr><td class="e">uppercase-tags </td><td class="v">FALSE </td></tr> <tr><td class="e">uppercase-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">bare </td><td class="v">FALSE </td></tr> <tr><td class="e">clean </td><td class="v">FALSE </td></tr> <tr><td class="e">logical-emphasis </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-proprietary-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-font-tags </td><td class="v">FALSE </td></tr> <tr><td class="e">drop-empty-paras </td><td class="v">TRUE </td></tr> <tr><td class="e">fix-bad-comments </td><td class="v">TRUE </td></tr> <tr><td class="e">break-before-br </td><td class="v">FALSE </td></tr> <tr><td class="e">split </td><td class="v">FALSE </td></tr> <tr><td class="e">numeric-entities </td><td class="v">FALSE </td></tr> <tr><td class="e">quote-marks </td><td class="v">FALSE </td></tr> <tr><td class="e">quote-nbsp </td><td class="v">TRUE </td></tr> <tr><td class="e">quote-ampersand </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">wrap-script-literals </td><td class="v">FALSE </td></tr> <tr><td class="e">wrap-sections </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-asp </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-jste </td><td class="v">TRUE </td></tr> <tr><td class="e">wrap-php </td><td class="v">TRUE </td></tr> <tr><td class="e">fix-backslash </td><td class="v">TRUE </td></tr> <tr><td class="e">indent-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">assume-xml-procins </td><td class="v">FALSE </td></tr> <tr><td class="e">add-xml-space </td><td class="v">FALSE </td></tr> <tr><td class="e">enclose-text </td><td class="v">FALSE </td></tr> <tr><td class="e">enclose-block-text </td><td class="v">FALSE </td></tr> <tr><td class="e">keep-time </td><td class="v">FALSE </td></tr> <tr><td class="e">word-2000 </td><td class="v">FALSE </td></tr> <tr><td class="e">tidy-mark </td><td class="v">FALSE </td></tr> <tr><td class="e">gnu-emacs </td><td class="v">FALSE </td></tr> <tr><td class="e">gnu-emacs-file </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">literal-attributes </td><td class="v">FALSE </td></tr> <tr><td class="e">show-body-only </td><td class="v">FALSE </td></tr> <tr><td class="e">fix-uri </td><td class="v">TRUE </td></tr> <tr><td class="e">lower-literals </td><td class="v">TRUE </td></tr> <tr><td class="e">hide-comments </td><td class="v">FALSE </td></tr> <tr><td class="e">indent-cdata </td><td class="v">FALSE </td></tr> <tr><td class="e">force-output </td><td class="v">TRUE </td></tr> <tr><td class="e">show-errors </td><td class="v">6 </td></tr> <tr><td class="e">ascii-chars </td><td class="v">TRUE </td></tr> <tr><td class="e">join-classes </td><td class="v">FALSE </td></tr> <tr><td class="e">join-styles </td><td class="v">TRUE </td></tr> <tr><td class="e">escape-cdata </td><td class="v">FALSE </td></tr> <tr><td class="e">language </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">ncr </td><td class="v">TRUE </td></tr> <tr><td class="e">output-bom </td><td class="v">2 </td></tr> <tr><td class="e">replace-color </td><td class="v">FALSE </td></tr> <tr><td class="e">css-prefix </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-inline-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-blocklevel-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-empty-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">new-pre-tags </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">accessibility-check </td><td class="v">0 </td></tr> <tr><td class="e">vertical-space </td><td class="v">FALSE </td></tr> <tr><td class="e">punctuation-wrap </td><td class="v">FALSE </td></tr> </table></center>]]> </blurb> </slide> Index: presentations/slides/tidy_cug/titlepage.xml +++ presentations/slides/tidy_cug/titlepage.xml <slide template="titlepage" fontsize="6em"> <title>Welcome!</title> </slide> Index: presentations/slides/tidy_cug/urlgrab5.php +++ presentations/slides/tidy_cug/urlgrab5.php <?php function dump_nodes(tidy_node $node, &$urls = NULL) { $urls = (is_array($urls)) ? $urls : array(); if(isset($node->id)) { if($node->id == TIDY_TAG_A) { $urls[] = $node->attribute['href']; } } if($node->has_children()) { foreach($node->child as $c) { dump_nodes($c, $urls); } } return $urls; } $a = tidy_parse_file($_SERVER['argv'][1]); $a->clean_repair(); print_r(dump_nodes($a->html())); ?> Index: presentations/slides/tidy_cug/xhtml.xml +++ presentations/slides/tidy_cug/xhtml.xml <slide title="Converting To XHTML"> <blurb title="Automatically coverting HTML to XHTML"> Tidy can also quickly convert HTML to XHTML documents. For instance, the php.net homepage: </blurb> <example filename="xhtml_ex1.php" title="Converting to XHTML"/> </slide> Index: presentations/slides/tidy_cug/xhtml_ex1.html +++ presentations/slides/tidy_cug/xhtml_ex1.html <HTML><HEAD><TITLE><TITLE></HEAD> <BODY> <FONT COLOR="red">Hello, World!</FONT><BR/> <B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B> </BODY> </HTML> Index: presentations/slides/tidy_cug/xhtml_ex1.php +++ presentations/slides/tidy_cug/xhtml_ex1.php <?php $tidy = tidy_parse_file("http://www.php.net/"); $tidy->setopt("output-xhtml", true); $tidy->clean_repair(); echo $tidy; ?> Index: presentations/slides/tidy_cug/xhtml_ex1_res.html +++ presentations/slides/tidy_cug/xhtml_ex1_res.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PHP: Hypertext Preprocessor</title> <link rel="stylesheet" href= "PHP:%20Hypertext%20Preprocessor_files/style.css" type="text/css"> <link rel="stylesheet" href= "PHP:%20Hypertext%20Preprocessor_files/phpnet.css" type="text/css"> <link rel="shortcut icon" href= "http://static.php.net/www.php.net/favicon.ico"> <script language="Javascript" type="text/javascript" src= "PHP:%20Hypertext%20Preprocessor_files/userprefs.js"> </script><!-- base href="http://www.php.net/index.php" --> </head> <body bgcolor="#FFFFFF" text="#000000" link="#000099" alink= "#0000FF" vlink="#000099" onload="boldEvents(); searchHistory();"> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr bgcolor="#9999CC"> <td align="center" rowspan="2" width="126"><a href= "http://www.php.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/php.gif" alt="PHP" width= "120" height="67" hspace="3"></a></td> <td> </td> </tr> <tr bgcolor="#9999CC"> <td align="right" valign="bottom"><a href= "http://www.php.net/downloads.php" class="small">downloads</a> | <a href="http://www.php.net/docs.php" class= "small">documentation</a> | <a href="http://www.php.net/FAQ.php" class="small">faq</a> | <a href="http://www.php.net/support.php" class="small">getting help</a> | <a href= "http://www.php.net/mailing-lists.php" class="small">mailing lists</a> | <a href="http://bugs.php.net/" class="small">reporting bugs</a> | <a href="http://www.php.net/sites.php" class= "small">php.net sites</a> | <a href="http://www.php.net/links.php" class="small">links</a> | <a href="http://www.php.net/my.php" class="small">my php.net</a> </td> </tr> <tr bgcolor="#333366"> <td colspan="2"><img src= "PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr bgcolor="#666699"> <td align="right" valign="top" colspan="2" class="quicksearch"> <form method="post" action="/search.php" class="thin" name= "topsearch"><small><span title= "Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)"><u>s</u>earch for</span></small> <input class="small" type="text" name="pattern" value="" size="30" accesskey="s"> <small>in the</small> <select name="show" class="small"> <option value="quickref" selected="selected">function list</option> <option value="wholesite">whole site</option> <option value="manual">online documentation [en]</option> <option value="bugdb">bug database</option> <option value="maillist">general mailing list</option> <option value="devlist">developer mailing list</option> <option value="phpdoc">documentation mailing list</option> </select> <input type="image" src= "PHP:%20Hypertext%20Preprocessor_files/small_submit_white.gif" alt= "search" align="baseline"> </form> </td> </tr> <tr bgcolor="#333366"> <td colspan="3"><img src= "PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> </tbody> </table> <!--/UdmComment--> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr valign="top"> <td width="200" bgcolor="#F0F0F0"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tbody> <tr valign="top"> <td class="sidebar"> <h3>What is PHP?</h3> <p><acronym title= "recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the <a href="http://www.php.net/tut.php">introductory tutorial</a>. After that, check out the online <a href= "http://www.php.net/docs.php">manual</a>, and the example archive sites and some of the other resources available in the <a href= "http://www.php.net/links.php">links section</a>.</p> <p>Ever wondered how popular PHP is? see the <a href= "http://www.php.net/usage.php">Netcraft Survey</a>.</p> <p>PHP is a project of the <a href="http://www.apache.org/">Apache Software Foundation</a>.</p> <h3><a href="http://www.php.net/thanks.php">Thanks To</a></h3> <ul class="simple"> <li><a href= "http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li> <li><a href="http://www.directi.com/">Directi</a></li> <li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li> <li><a href="http://www.ev1servers.net/">EV1Servers</a></li> <li><a href="http://www.servercentral.net/">Server Central</a></li> <li><a href="http://www.redundant.com/">Redundant Networks</a></li> <li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li> <li><a href= "http://www.rackspace.com/?supbid=php.net">Rackspace</a></li> </ul> <h3>Related sites</h3> <ul class="simple"> <li><a href="http://www.apache.org/">Apache</a></li> <li><a href="http://www.mysql.com/">MySQL</a></li> <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> <li><a href="http://www.zend.com/">Zend Technologies</a></li> </ul> <h3>Community</h3> <ul class="simple"> <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> <li><a href="http://www.osdn.org/">OSDN</a></li> </ul> <h3>Syndication</h3> <p>You can grab our news as an RSS feed via a daily dump in a file named <a href="http://www.php.net/news.rss">news.rss</a>.</p> <h3>Contact</h3> <p>Please submit website bugs in the <a href= "http://bugs.php.net/">bug system</a>.</p> </td> </tr> </tbody> </table> </td> <td bgcolor="#CCCCCC" background= "PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "1" height="1" border="0" alt=""></td> <td> <table cellpadding="10" cellspacing="0" width="100%"> <tbody> <tr> <td valign="top"> <h1>PHP 4.3.4RC2 released</h1> <p><span class="newsdate">[20-Oct-2003]</span> <a href= "http://qa.php.net/">PHP 4.3.4RC2</a> has been released for testing. This release candidate is hopefully the final release candidate prior to the 4.3.4 release and should be very stable. Please test this release as much as possible, so that any remaining issues can be uncovered and resolved prior to the final release.</p> <p>List of changes can be found in the <a href= "http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.412&r2=1.1247.2.442"> NEWS</a> file.</p> <hr> <a href="http://www.directionphp.biz/"><img src= "PHP:%20Hypertext%20Preprocessor_files/directionphp.png" alt= "Direction|PHP" width="99" height="128" style="float: right;"></a> <h1>Monthly PHP Magazine in French launched!</h1> <p><span class="newsdate">[15-Oct-2003]</span> <a href= "http://www.nexen.net/">Nexen.net</a> has launched Direction|PHP, the first PHP and MySQL dedicated magazine in French. This monthly publication features indeep coverage of PHP industry, business and user cases and technical articles from PHP|Architect.</p> <p>For more information, read the <a href= "http://www.directionphp.biz/index.php">Direction|PHP website</a> (in French).</p> <hr> <a href="http://www.apachecon.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/apachecon2003.jpg" alt= "ApacheCon" width="135" height="45" style="float: right;"></a> <h1>ApacheCon 2003, the Global Hub for All Things Apache</h1> <p><span class="newsdate">[11-Oct-2003]</span> The <a href= "http://www.apachecon.com/">official conference of the Apache Software Foundation</a> will be held November 16-20, 2003 in Las Vegas. More than 60 sessions highlight core and next-generation Apache server tools, offering a wide range of beginner, intermediate and advanced sessions. Learn firsthand the latest developments in Apache, as well as key open source projects, including PHP, Perl, XML, Java, MySQL, and WebDAV.</p> <hr> <a href="http://www.phpcruise.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/phpcruise.png" alt= "php|cruise" width="162" height="29" style="float: right;"></a> <h1>php|cruise: The World's First Ever PHP-only Cruise</h1> <p><span class="newsdate">[20-Sep-2003]</span> The publishers of php|architect have announced <a href= "http://www.phparch.com/cruise/">php|cruise</a>, a five-day cruise to the Bahamas Islands featuring a lot of fun and over thirty different sessions dedicated to PHP from well known experts like Wez Furlong, Alan Knowles and John Coggeshall.</p> <p>The cruise will take place March 1st to 5th, 2004. The organizers have <a href= "http://www.phparch.com/cruise/contest/">announced a contest</a> to give away one free place on the cruise.</p> <hr> <a href="http://www.zend.com/zend/php_survey_results.php"><img src= "PHP:%20Hypertext%20Preprocessor_files/zendtech_logo.gif" alt= "Zend Technologies" width="150" height="77" style= "float: right;"></a> <h1>PHP Usage Survey Results</h1> <p><span class="newsdate">[18-Sep-2003]</span> <a href= "http://www.zend.com/zend/php_survey_results.php">Check out</a> the results of the PHP Usage Survey conducted by Zend Technologies, including feedback from thousands of PHP users around the world. Thanks for all who contributed!</p> <hr> <a href="http://weblabor.hu/php-doc-chm"><img src= "PHP:%20Hypertext%20Preprocessor_files/chmhelp.gif" alt="CHM" width="48" height="48" style="float: right;"></a> <h1>PHP Manual CHM Edition - 12th build</h1> <p><span class="newsdate">[06-Sep-2003]</span> The 12th build of the extended CHM edition is out now, and <a href= "http://www.php.net/get/php_manual_chm_12.zip/from/a/mirror">available for download</a>. This build contains updated content and user notes, as well as fixes the bugs found in the previous build. A new optional "phpZ" skin is also introduced in this release, courtesy of Gonzalo De la Pena Andreu. For more information, visit <a href= "http://weblabor.hu/php-doc-chm/">the homepage of this edition.</a></p> <hr> <a href="http://www.phpconference.de/2003/index_en.php"><img src= "PHP:%20Hypertext%20Preprocessor_files/international_conference_2003.gif" alt="International PHP Conference 2003" width="120" height= "77" style="float: right;"></a> <h1>International PHP Conference 2003 program online</h1> <p><span class="newsdate">[05-Sep-2003]</span> The organisers of the <a href= "http://www.phpconference.de/2003/index_en.php">International PHP Conference</a> which will take place for the third time in Frankfurt, Germany from Nov. 2 to 5, 2003 have announced the conference program. The conference board which consists of Bjoern Schotte, Zak Greant, Zeev Suraski, Thies Arntzen and Jan Lehnardt has chosen more than 40 sessions for the main program on Nov. 4 and 5 and 7 in-depth Power Workshops for the pre conference program on Nov. 2 and 3. Among the prominent speaking crowd is Zeev Suraski, Ken Coar and many others. See <a href= "http://www.phpconference.de/2003/index_en.php">the conference website</a> for more information.</p> <hr> <a href="http://servercentral.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/server_central.gif" alt= "Server Central" width="120" height="120" style= "float: right;"></a> <h1>Server Central Donates Server</h1> <p><span class="newsdate">[28-Aug-2003]</span> Chicago-based company <a href="http://servercentral.net/">Server Central</a> has donated PHP.net a brand new server with a gigabit connection. The box is a quad 2.4GHz machine with 2GB ram, so we're going to be using it to power our more resource-intensive tasks, including building the manual. Thanks, Server Central!</p> <hr> <h1>European Open Source Development Threatened!</h1> <p><span class="newsdate">[27-Aug-2003]</span> Today sees an international day of protest against the move by the EU to make obtaining a patent easier within Europe. Such patents may cause Open Source software such as PHP to infringe on existing licenses and new ones, meaning we would no longer be safe to distribute PHP within Europe. Contact your EU Representative to get this cruicial vote blocked. Find out more at the <a href= "http://swpat.ffii.org/">campaign website</a></p> <hr> <a href="http://www.php-con.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/phpcon_2003.gif" alt= "php{con west 2003" width="120" height="60" style= "float: right;"></a> <h1>php{con west is announced</h1> <p><span class="newsdate">[26-Aug-2003]</span> php{con returns to the San Francisco Bay Area with new sessions, PHP gurus and a whole new day of PHP-intensive learning. Their program features a full day of tutorials, three technical session tracks over two days, an all day coding marathon, Code Sprint, social events, works in progress, and presentations from PHP luminaries. Early Bird discounts end on September 26th. See the full program and register online at <a href="http://www.php-con.com/">their website</a></p> <hr> <h1>PHP 4.3.3 released!</h1> <p><span class="newsdate">[25-Aug-2003]</span> The PHP developers are proud to announce the immediate availability of <a href= "http://www.php.net/release_4_3_3.php">PHP 4.3.3</a>. This release contains a large number of bug fixes and we <strong>strongly</strong> recommend that all users of PHP upgrade to this version. Full list of fixes can be found in the <a href= "http://www.php.net/ChangeLog-4.php#4.3.3">NEWS</a> file.</p> <hr> <a href= "http://www.activestate.com/Corporate/ActiveAwards/"><img src= "PHP:%20Hypertext%20Preprocessor_files/activestate_logo.gif" alt= "ActiveState" width="115" height="50" style="float: right;"></a> <h1>Active Awards 2003 Winners</h1> <p><span class="newsdate">[15-Aug-2003]</span> The <a href= "http://www.activestate.com/Corporate/ActiveAwards/">Active Awards</a> are held annually to honor members of the open source community who actively contribute to open source languages and display excellence in their programming efforts. Programmers' Choice Award winners were nominated and chosen by the open source community. Activators' Choice Award winners were chosen by ActiveState's development team.</p> <p>This year's nominees were: Monte Ohrt, Paul S. Owen, Stanislav Malyshev, Stig Bakken and Wez Furlong. The Programmers' Choice winner is <strong>Stig Bakken</strong>, the father of PEAR. The Activators' Choice winner is <strong>Ilia Alshanetsky</strong>, member of the PHP Quality Assurance team, developer of the fudforum package, and a major contributor to PHP development.</p> <hr> <h1>PHP.net news history</h1> <p><span class="newsdate">[15-Aug-2003]</span> Ever wonder what was the original PHP 3.0 release announcement, what where the choices when the PHP: Hypertext Preprocessor name was choosen, or since when you can use URL shortcuts to access pieces of our site? We have digged up some of the most interesting news items published on PHP.net since January 1998, when the site started to serve its visitors. You can find these <a href= "http://www.php.net/news-2003.php">in the news archives</a>. There is also some historical information in <a href= "http://www.php.net/history">the manual's history appendix</a>.</p> <hr> <h1>Select mirror for redirection</h1> <p><span class="newsdate">[13-Aug-2003]</span> The www.php.net site tries to do the best to choose close mirrors based on all available data when redirecting users to mirror sites. Sometimes close mirror sites are unfortunately not the fastest. This is why we have added the mirror site selection possibility to <a href= "http://www.php.net/my.php">our My PHP.net service</a>, which enables users to select a specific mirror site for redirections.</p> <hr> <a href="http://www.php-mag.net/"><img src= "PHP:%20Hypertext%20Preprocessor_files/php-mag.gif" alt= "PHP Magazine" width="130" height="38" style="float: right;"></a> <h1>PHP Magazine web site now with daily news</h1> <p><span class="newsdate">[12-Aug-2003]</span> <a href= "http://www.php-mag.net/">The International PHP Magazine web site</a> now offers daily news for PHP professionals and beginners from all over the world, helping them to stay up-to-date with the latest news on PHP and related technologies.</p> <hr> <h1>URL Shortcuts and Site Search</h1> <p><span class="newsdate">[29-Jul-2003]</span> After many of our users requested a change in how <a href= "http://www.php.net/urlhowto.php">our URL shortcuts</a> behave when someone mistypes a shortcut, the default behaviour now is to look for a function name instead of performing a documentation search on Google. Those, who were satisfied with the Google search, can <a href="http://www.php.net/my.php">set their preference at the My PHP.net page</a>. We are working on a better onsite search solution, Google is used temporarily to search our site.</p> <hr> <p class="center"><a href="http://www.php.net/news-2003.php">News Archive</a></p> </td> </tr> </tbody> </table> </td> <td bgcolor="#CCCCCC" background= "PHP:%20Hypertext%20Preprocessor_files/checkerboard.gif" width="1"> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "1" height="1" border="0" alt=""></td> <td width="185" bgcolor="#F0F0F0"> <table width="100%" cellpadding="4" cellspacing="0"> <tbody> <tr valign="top"> <td class="sidebar"> <div align="center"> <h3>This mirror sponsored by:</h3> <a href="http://www.webhostingtalk.com/"><img src= "PHP:%20Hypertext%20Preprocessor_files/mirror.gif" alt= "Web Hosting Talk" height="125" width="125"></a></div> <br> <hr> <h3>Upcoming Events <a href= "http://www.php.net/submit-event.php">[add]</a></h3> <h4 class="eventmonth">October</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">29. <a href= "http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">30. <a href= "http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <h4>Conferences</h4> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1095">php-con West 2003</a></span><br> <span class="event_ITA">24. <a href= "http://www.php.net/cal.php?id=1110">First italian PHP day</a></span><br> <h4>Training</h4> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1050">PHP/MySQL Bootcamp</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1087">PHP/MySQL Bootcamp 5 Days (MD)</a></span><br> <span class="event_CAN">24. <a href= "http://www.php.net/cal.php?id=1105">PHP/MySQL Open Systems Web Dev</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_USA" style="font-weight: bold;">26. <a href= "http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1132">Online MySQL course</a></span><br> <span class="event_NLD">27. <a href= "http://www.php.net/cal.php?id=1035">PHP Programming en PHP Advanced</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1079">LogiCreate PHP Training</a></span><br> <span class="event_DEU">27. <a href= "http://www.php.net/cal.php?id=1083">Apache/PHP/MySQL-Workshop</a></span><br> <span class="event_USA" style="font-weight: bold;">27. <a href= "http://www.php.net/cal.php?id=1101">AMP Technology Training</a></span><br> <span class="event_GBR">28. <a href= "http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">28. <a href= "http://www.php.net/cal.php?id=1116">PHP Training in San Francisco</a></span><br> <h4 class="eventmonth">November</h4> <h4>User Group Events</h4> <span class="event_USA" style="font-weight: bold;">1. <a href= "http://www.php.net/cal.php?id=96">Chicago</a></span><br> <span class="event_USA" style="font-weight: bold;">5. <a href= "http://www.php.net/cal.php?id=661">PHP/LAMP Denver</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=76">SEMPUG</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=109">SDPHP (San Diego, CA)</a></span><br> <span class="event_DEU">6. <a href= "http://www.php.net/cal.php?id=272">Hannover</a></span><br> <span class="event_CAN">6. <a href= "http://www.php.net/cal.php?id=1133">PHPQuebec - Montreal</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=561">Meetup Day</a></span><br> <span class="event_AUS">6. <a href= "http://www.php.net/cal.php?id=1127">Sydney PHP Group meeting</a></span><br> <span class="event_USA" style="font-weight: bold;">6. <a href= "http://www.php.net/cal.php?id=1005">Omaha PHP Users Group Meetup</a></span><br> <span class="event_DEU">7. <a href= "http://www.php.net/cal.php?id=95">Frankfurt</a></span><br> <span class="event_DEU">7. <a href= "http://www.php.net/cal.php?id=153">Köln/Bonn</a></span><br> <span class="event_ESP">7. <a href= "http://www.php.net/cal.php?id=240">Reunión mensual</a></span><br> <span class="event_CAN">11. <a href= "http://www.php.net/cal.php?id=1134">PHPQuebec - Quebec</a></span><br> <span class="event_USA" style="font-weight: bold;">12. <a href= "http://www.php.net/cal.php?id=104">Twin Cities</a></span><br> <span class="event_CAN">13. <a href= "http://www.php.net/cal.php?id=960">Vancouver</a></span><br> <span class="event_DEU">15. <a href= "http://www.php.net/cal.php?id=79">Stuttgart</a></span><br> <span class="event_USA" style="font-weight: bold;">15. <a href= "http://www.php.net/cal.php?id=1131">Kansas City</a></span><br> <span class="event_USA" style="font-weight: bold;">19. <a href= "http://www.php.net/cal.php?id=474">Seattle</a></span><br> <span class="event_CAN">19. <a href= "http://www.php.net/cal.php?id=651">Calgary</a></span><br> <span class="event_NZL">19. <a href= "http://www.php.net/cal.php?id=837">Wellington NZ</a></span><br> <span class="event_USA" style="font-weight: bold;">24. <a href= "http://www.php.net/cal.php?id=1099">Long Island PHP Users Group</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=409">New York</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=384">AzPHP</a></span><br> <span class="event_DEU">26. <a href= "http://www.php.net/cal.php?id=713">Munich</a></span><br> <span class="event_DEU">27. <a href= "http://www.php.net/cal.php?id=484">Hamburg</a></span><br> <span class="event_ITA">29. <a href= "http://www.php.net/cal.php?id=1136">Changes in PHP 5/Zend Engine 2.0</a></span><br> <h4>Conferences</h4> <span class="event_DEU">2. <a href= "http://www.php.net/cal.php?id=1014">International PHP Conference</a></span><br> <span class="event_USA" style="font-weight: bold;">16. <a href= "http://www.php.net/cal.php?id=1125">ApacheCon 2003</a></span><br> <h4>Training</h4> <span class="event_PHL">1. <a href= "http://www.php.net/cal.php?id=1097">Extreme PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">1. <a href= "http://www.php.net/cal.php?id=1121">PHP Programming Online Marathon</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=338">MySQL Spain</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=445">PHP-Madrid</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=456">Curso PHP Madrid</a></span><br> <span class="event_DEU">3. <a href= "http://www.php.net/cal.php?id=641">PHP E-Learning/Germany</a></span><br> <span class="event_ESP">3. <a href= "http://www.php.net/cal.php?id=998">Curso on-line ActionScript / PHP</a></span><br> <span class="event_YUG">3. <a href= "http://www.php.net/cal.php?id=1124">AlefBrain PHP Training</a></span><br> <span class="event_ESP">4. <a href= "http://www.php.net/cal.php?id=841">Curso on-line de PHP-MySQL</a></span><br> <span class="event_USA" style="font-weight: bold;">8. <a href= "http://www.php.net/cal.php?id=1051">Intro to PHP</a></span><br> <span class="event_USA" style="font-weight: bold;">10. <a href= "http://www.php.net/cal.php?id=1128">RAMP Training & Certification</a></span><br> <span class="event_NLD">10. <a href= "http://www.php.net/cal.php?id=1025">PHP Advanced Programming</a></span><br> <span class="event_NLD">19. <a href= "http://www.php.net/cal.php?id=1023">CIW Dynamic Server Pages (DSP)</a></span><br> <span class="event_NLD">24. <a href= "http://www.php.net/cal.php?id=1036">PHP Programming en PHP Advanced</a></span><br> <span class="event_NLD">24. <a href= "http://www.php.net/cal.php?id=1028">PHP Programming</a></span><br> <span class="event_GBR">24. <a href= "http://www.php.net/cal.php?id=1129">"Technology for PHP", UK</a></span><br> <span class="event_GBR">25. <a href= "http://www.php.net/cal.php?id=231">UK PHP Training</a></span><br> <span class="event_USA" style="font-weight: bold;">25. <a href= "http://www.php.net/cal.php?id=1117">PHP Training in San Francisco</a></span><br> <span class="event_GBR">25. <a href= "http://www.php.net/cal.php?id=1130">"PHP Programming", UK</a></span><br> <span class="event_BRA">27. <a href= "http://www.php.net/cal.php?id=1137">PHP Brasil - Training</a></span><br> <span class="event_USA" style="font-weight: bold;">30. <a href= "http://www.php.net/cal.php?id=780">OSSuite Training</a></span><br></td> </tr> </tbody> </table> <img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width= "175" height="1" border="0" alt=""></td> </tr> </tbody> </table> <!--UdmComment--> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr bgcolor="#333366"> <td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr bgcolor="#9999CC"> <td align="right" valign="bottom"><a href= "http://www.php.net/source.php?url=/index.php" class="small">show source</a> | <a href="http://www.php.net/credits.php" class= "small">credits</a> | <a href="http://www.php.net/sitemap.php" class="small">sitemap</a> | <a href= "http://www.php.net/mirrors.php" class="small">mirror sites</a> </td> </tr> <tr bgcolor="#333366"> <td><img src="PHP:%20Hypertext%20Preprocessor_files/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody> <tr valign="top" bgcolor="#CCCCCC"> <td><small><a href="http://www.php.net/copyright.php">Copyright © 2001-2003 The PHP Group</a><br> All rights reserved.</small></td> <td align="right"><small><a href= "http://www.php.net/mirror.php">This mirror</a> generously provided by: <a href="http://www.webhostingtalk.com/">Web Hosting Talk</a><br> Last updated: Sat Oct 25 11:11:43 2003 EDT</small></td> </tr> </tbody> </table> <!--/UdmComment--> </body> </html>