didou Mon Dec 15 11:48:52 2003 EDT
Modified files: /phpdoc/en/reference/datetime/functions date.xml gmdate.xml gmstrftime.xml microtime.xml mktime.xml strftime.xml strtotime.xml /phpdoc/en/reference/dba reference.xml /phpdoc/en/reference/dbase/functions dbase-create.xml dbase-numfields.xml /phpdoc/en/reference/dbm reference.xml /phpdoc/en/reference/dbm/functions dbmnextkey.xml /phpdoc/en/reference/dbx/functions dbx-close.xml dbx-compare.xml dbx-connect.xml dbx-error.xml dbx-escape-string.xml dbx-fetch-row.xml dbx-query.xml dbx-sort.xml /phpdoc/en/reference/dio/functions dio-tcsetattr.xml /phpdoc/en/reference/dir/functions class.dir.xml opendir.xml scandir.xml /phpdoc/en/reference/domxml/functions DomDocument-document-element.xml DomDocumentType-public-id.xml DomDocumentType-system-id.xml DomElement-get-elements-by-tagname.xml DomNode-append-child.xml DomNode-get-content.xml DomNode-insert-before.xml DomNode-next-sibling.xml DomNode-remove-child.xml DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-open-file.xml domxml-open-mem.xml Log: Merry XHTML and CS compliant christmas all \!
Index: phpdoc/en/reference/datetime/functions/date.xml diff -u phpdoc/en/reference/datetime/functions/date.xml:1.10 phpdoc/en/reference/datetime/functions/date.xml:1.11 --- phpdoc/en/reference/datetime/functions/date.xml:1.10 Wed Dec 10 19:29:33 2003 +++ phpdoc/en/reference/datetime/functions/date.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.date"> <refnamediv> @@ -233,7 +233,7 @@ echo date ("l dS of F Y h:i:s A"); // Prints: July 1, 2000 is on a Saturday -echo "July 1, 2000 is on a " . date ("l", mktime(0,0,0,7,1,2000)); +echo "July 1, 2000 is on a " . date ("l", mktime(0, 0, 0, 7, 1, 2000)); ?> ]]> </programlisting> @@ -268,9 +268,9 @@ <programlisting role="php"> <![CDATA[ <?php -$tomorrow = mktime (0,0,0,date("m") ,date("d")+1,date("Y")); -$lastmonth = mktime (0,0,0,date("m")-1,date("d"), date("Y")); -$nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1); +$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); +$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y")); +$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1); ?> ]]> </programlisting> Index: phpdoc/en/reference/datetime/functions/gmdate.xml diff -u phpdoc/en/reference/datetime/functions/gmdate.xml:1.7 phpdoc/en/reference/datetime/functions/gmdate.xml:1.8 --- phpdoc/en/reference/datetime/functions/gmdate.xml:1.7 Fri May 9 17:55:15 2003 +++ phpdoc/en/reference/datetime/functions/gmdate.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.gmdate"> <refnamediv> @@ -23,8 +23,8 @@ <programlisting role="php"> <![CDATA[ <?php -echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998)); -echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998)); +echo date("M d Y H:i:s", mktime(0, 0, 0, 1, 1, 1998)); +echo gmdate("M d Y H:i:s", mktime(0, 0, 0, 1, 1, 1998)); ?> ]]> </programlisting> Index: phpdoc/en/reference/datetime/functions/gmstrftime.xml diff -u phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.5 phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.6 --- phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.5 Fri Mar 21 10:46:14 2003 +++ phpdoc/en/reference/datetime/functions/gmstrftime.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.gmstrftime"> <refnamediv> @@ -26,9 +26,9 @@ <programlisting role="php"> <![CDATA[ <?php -setlocale (LC_TIME, 'en_US'); -echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; -echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; +setlocale(LC_TIME, 'en_US'); +echo strftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98))."\n"; +echo gmstrftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98))."\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/datetime/functions/microtime.xml diff -u phpdoc/en/reference/datetime/functions/microtime.xml:1.3 phpdoc/en/reference/datetime/functions/microtime.xml:1.4 --- phpdoc/en/reference/datetime/functions/microtime.xml:1.3 Fri Mar 21 10:46:14 2003 +++ phpdoc/en/reference/datetime/functions/microtime.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.microtime"> <refnamediv> @@ -30,13 +30,13 @@ function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); - } +} $time_start = getmicrotime(); for ($i=0; $i < 1000; $i++){ //do nothing, 1000 times - } +} $time_end = getmicrotime(); $time = $time_end - $time_start; Index: phpdoc/en/reference/datetime/functions/mktime.xml diff -u phpdoc/en/reference/datetime/functions/mktime.xml:1.5 phpdoc/en/reference/datetime/functions/mktime.xml:1.6 --- phpdoc/en/reference/datetime/functions/mktime.xml:1.5 Tue Apr 8 16:12:41 2003 +++ phpdoc/en/reference/datetime/functions/mktime.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.mktime"> <refnamediv> @@ -58,10 +58,10 @@ <programlisting role="php"> <![CDATA[ <?php -echo date ("M-d-Y", mktime (0,0,0,12,32,1997)); -echo date ("M-d-Y", mktime (0,0,0,13,1,1997)); -echo date ("M-d-Y", mktime (0,0,0,1,1,1998)); -echo date ("M-d-Y", mktime (0,0,0,1,1,98)); +echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997)); +echo date("M-d-Y", mktime(0, 0, 0, 13, 1, 1997)); +echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 1998)); +echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 98)); ?> ]]> </programlisting> Index: phpdoc/en/reference/datetime/functions/strftime.xml diff -u phpdoc/en/reference/datetime/functions/strftime.xml:1.10 phpdoc/en/reference/datetime/functions/strftime.xml:1.11 --- phpdoc/en/reference/datetime/functions/strftime.xml:1.10 Mon Dec 8 08:52:43 2003 +++ phpdoc/en/reference/datetime/functions/strftime.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.strftime"> <refnamediv> @@ -288,10 +288,10 @@ 3 13 14 15 16 17 18 19 */ // Outputs: 12/28/2002 - %V,%G,%Y = 52,2002,2002 -echo "12/28/2002 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/28/2002")) . "\n"; +echo "12/28/2002 - %V,%G,%Y = " . strftime("%V,%G,%Y", strtotime("12/28/2002")) . "\n"; // Outputs: 12/30/2002 - %V,%G,%Y = 1,2003,2002 -echo "12/30/2002 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/30/2002")) . "\n"; +echo "12/30/2002 - %V,%G,%Y = " . strftime("%V,%G,%Y", strtotime("12/30/2002")) . "\n"; // Outputs: 1/3/2003 - %V,%G,%Y = 1,2003,2003 echo "1/3/2003 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/3/2003")) . "\n"; Index: phpdoc/en/reference/datetime/functions/strtotime.xml diff -u phpdoc/en/reference/datetime/functions/strtotime.xml:1.4 phpdoc/en/reference/datetime/functions/strtotime.xml:1.5 --- phpdoc/en/reference/datetime/functions/strtotime.xml:1.4 Wed Nov 19 08:00:31 2003 +++ phpdoc/en/reference/datetime/functions/strtotime.xml Mon Dec 15 11:48:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.8 --> <refentry id="function.strtotime"> <refnamediv> @@ -35,13 +35,13 @@ <programlisting role="php"> <![CDATA[ <?php -echo strtotime ("now"), "\n"; -echo strtotime ("10 September 2000"), "\n"; -echo strtotime ("+1 day"), "\n"; -echo strtotime ("+1 week"), "\n"; -echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n"; -echo strtotime ("next Thursday"), "\n"; -echo strtotime ("last Monday"), "\n"; +echo strtotime("now"), "\n"; +echo strtotime("10 September 2000"), "\n"; +echo strtotime("+1 day"), "\n"; +echo strtotime("+1 week"), "\n"; +echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n"; +echo strtotime("next Thursday"), "\n"; +echo strtotime("last Monday"), "\n"; ?> ]]> </programlisting> @@ -57,7 +57,7 @@ if (($timestamp = strtotime($str)) === -1) { echo "The string ($str) is bogus"; } else { - echo "$str == ". date('l dS of F Y h:i:s A',$timestamp); + echo "$str == ". date('l dS of F Y h:i:s A', $timestamp); } ?> ]]> Index: phpdoc/en/reference/dba/reference.xml diff -u phpdoc/en/reference/dba/reference.xml:1.14 phpdoc/en/reference/dba/reference.xml:1.15 --- phpdoc/en/reference/dba/reference.xml:1.14 Thu Dec 11 10:42:06 2003 +++ phpdoc/en/reference/dba/reference.xml Mon Dec 15 11:48:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <reference id="ref.dba"> <title>Database (dbm-style) abstraction layer functions</title> <titleabbrev>dba</titleabbrev> @@ -179,21 +179,21 @@ <![CDATA[ <?php -$id = dba_open ("/tmp/test.db", "n", "db2"); +$id = dba_open("/tmp/test.db", "n", "db2"); if (!$id) { echo "dba_open failed\n"; exit; } -dba_replace ("key", "This is an example!", $id); +dba_replace("key", "This is an example!", $id); -if (dba_exists ("key", $id)) { - echo dba_fetch ("key", $id); - dba_delete ("key", $id); +if (dba_exists("key", $id)) { + echo dba_fetch("key", $id); + dba_delete("key", $id); } -dba_close ($id); +dba_close($id); ?> ]]> </programlisting> @@ -224,17 +224,17 @@ // ...open database... -$key = dba_firstkey ($id); +$key = dba_firstkey($id); while ($key != false) { if (true) { // remember the key to perform some action later $handle_later[] = $key; } - $key = dba_nextkey ($id); + $key = dba_nextkey($id); } for ($i = 0; $i < count($handle_later); $i++) - dba_delete ($handle_later[$i], $id); + dba_delete($handle_later[$i], $id); ?> ]]> Index: phpdoc/en/reference/dbase/functions/dbase-create.xml diff -u phpdoc/en/reference/dbase/functions/dbase-create.xml:1.4 phpdoc/en/reference/dbase/functions/dbase-create.xml:1.5 --- phpdoc/en/reference/dbase/functions/dbase-create.xml:1.4 Wed Jul 16 13:09:05 2003 +++ phpdoc/en/reference/dbase/functions/dbase-create.xml Mon Dec 15 11:48:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/dbase.xml, last change in rev 1.2 --> <refentry id="function.dbase-create"> <refnamediv> @@ -96,7 +96,7 @@ // creation if (!dbase_create($dbname, $def)) - print "<strong>Error!</strong>"; + echo "<strong>Error!</strong>"; ?> ]]> Index: phpdoc/en/reference/dbase/functions/dbase-numfields.xml diff -u phpdoc/en/reference/dbase/functions/dbase-numfields.xml:1.3 phpdoc/en/reference/dbase/functions/dbase-numfields.xml:1.4 --- phpdoc/en/reference/dbase/functions/dbase-numfields.xml:1.3 Wed Jul 16 13:09:05 2003 +++ phpdoc/en/reference/dbase/functions/dbase-numfields.xml Mon Dec 15 11:48:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/dbase.xml, last change in rev 1.2 --> <refentry id="function.dbase-numfields"> <refnamediv> @@ -27,7 +27,7 @@ $rec = dbase_get_record($db, $recno); $nf = dbase_numfields($db); for ($i=0; $i < $nf; $i++) { - print $rec[$i]."<br>\n"; + echo $rec[$i]."<br />\n"; } ?> Index: phpdoc/en/reference/dbm/reference.xml diff -u phpdoc/en/reference/dbm/reference.xml:1.6 phpdoc/en/reference/dbm/reference.xml:1.7 --- phpdoc/en/reference/dbm/reference.xml:1.6 Wed Jul 16 13:09:31 2003 +++ phpdoc/en/reference/dbm/reference.xml Mon Dec 15 11:48:48 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <reference id="ref.dbm"> <title>DBM Functions [deprecated]</title> <titleabbrev>DBM</titleabbrev> @@ -62,15 +62,15 @@ <![CDATA[ <?php -$dbm = dbmopen ("lastseen", "w"); -if (dbmexists ($dbm, $userid)) { - $last_seen = dbmfetch ($dbm, $userid); +$dbm = dbmopen("lastseen", "w"); +if (dbmexists($dbm, $userid)) { + $last_seen = dbmfetch($dbm, $userid); } else { - dbminsert ($dbm, $userid, time()); + dbminsert($dbm, $userid, time()); } do_stuff(); -dbmreplace ($dbm, $userid, time()); -dbmclose ($dbm); +dbmreplace($dbm, $userid, time()); +dbmclose($dbm); ?> ]]> Index: phpdoc/en/reference/dbm/functions/dbmnextkey.xml diff -u phpdoc/en/reference/dbm/functions/dbmnextkey.xml:1.4 phpdoc/en/reference/dbm/functions/dbmnextkey.xml:1.5 --- phpdoc/en/reference/dbm/functions/dbmnextkey.xml:1.4 Wed Jul 16 13:09:31 2003 +++ phpdoc/en/reference/dbm/functions/dbmnextkey.xml Mon Dec 15 11:48:48 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/dbm.xml, last change in rev 1.2 --> <refentry id="function.dbmnextkey"> <refnamediv> @@ -25,10 +25,10 @@ <![CDATA[ <?php -$key = dbmfirstkey ($dbm_id); +$key = dbmfirstkey($dbm_id); while ($key) { - echo "$key = " . dbmfetch ($dbm_id, $key) . "\n"; - $key = dbmnextkey ($dbm_id, $key); + echo "$key = " . dbmfetch($dbm_id, $key) . "\n"; + $key = dbmnextkey($dbm_id, $key); } ?> Index: phpdoc/en/reference/dbx/functions/dbx-close.xml diff -u phpdoc/en/reference/dbx/functions/dbx-close.xml:1.5 phpdoc/en/reference/dbx/functions/dbx-close.xml:1.6 --- phpdoc/en/reference/dbx/functions/dbx-close.xml:1.5 Mon Dec 8 08:52:44 2003 +++ phpdoc/en/reference/dbx/functions/dbx-close.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-close"> <refnamediv> @@ -21,7 +21,7 @@ <![CDATA[ <?php $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") - or die ("Could not connect"); + or die("Could not connect"); echo "Connected successfully"; dbx_close($link); Index: phpdoc/en/reference/dbx/functions/dbx-compare.xml diff -u phpdoc/en/reference/dbx/functions/dbx-compare.xml:1.2 phpdoc/en/reference/dbx/functions/dbx-compare.xml:1.3 --- phpdoc/en/reference/dbx/functions/dbx-compare.xml:1.2 Wed Apr 17 02:37:31 2002 +++ phpdoc/en/reference/dbx/functions/dbx-compare.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-compare"> <refnamediv> @@ -69,24 +69,24 @@ <programlisting role="php"> <![CDATA[ <?php -function user_re_order ($a, $b) { - $rv = dbx_compare ($a, $b, "parentid", DBX_CMP_DESC); - if ( !$rv ) { - $rv = dbx_compare ($a, $b, "id", DBX_CMP_NUMBER); +function user_re_order($a, $b) { + $rv = dbx_compare($a, $b, "parentid", DBX_CMP_DESC); + if (!$rv) { + $rv = dbx_compare($a, $b, "id", DBX_CMP_NUMBER); } return $rv; } -$link = dbx_connect (DBX_ODBC, "", "db", "username", "password") - or die ("Could not connect"); +$link = dbx_connect(DBX_ODBC, "", "db", "username", "password") + or die("Could not connect"); -$result = dbx_query ($link, "SELECT id, parentid, description FROM table ORDER BY id"); +$result = dbx_query($link, "SELECT id, parentid, description FROM table ORDER BY id"); // data in $result is now ordered by id -dbx_sort ($result, "user_re_order"); +dbx_sort($result, "user_re_order"); // date in $result is now ordered by parentid (descending), then by id -dbx_close ($link); +dbx_close($link); ?> ]]> </programlisting> Index: phpdoc/en/reference/dbx/functions/dbx-connect.xml diff -u phpdoc/en/reference/dbx/functions/dbx-connect.xml:1.8 phpdoc/en/reference/dbx/functions/dbx-connect.xml:1.9 --- phpdoc/en/reference/dbx/functions/dbx-connect.xml:1.8 Wed Jul 16 13:09:51 2003 +++ phpdoc/en/reference/dbx/functions/dbx-connect.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-connect"> <refnamediv> @@ -107,8 +107,8 @@ <programlisting role="php"> <![CDATA[ <?php -$link = dbx_connect (DBX_MYSQL, "localhost", "db", "username", "password"); -mysql_close ($link->handle); // dbx_close($link) would be better here +$link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password"); +mysql_close($link->handle); // dbx_close($link) would be better here ?> ]]> </programlisting> @@ -135,11 +135,11 @@ <programlisting role="php"> <![CDATA[ <?php -$link = dbx_connect (DBX_ODBC, "", "db", "username", "password", DBX_PERSISTENT) - or die ("Could not connect"); +$link = dbx_connect(DBX_ODBC, "", "db", "username", "password", DBX_PERSISTENT) + or die("Could not connect"); -print ("Connected successfully"); -dbx_close ($link); +echo "Connected successfully"; +dbx_close($link); ?> ]]> </programlisting> Index: phpdoc/en/reference/dbx/functions/dbx-error.xml diff -u phpdoc/en/reference/dbx/functions/dbx-error.xml:1.3 phpdoc/en/reference/dbx/functions/dbx-error.xml:1.4 --- phpdoc/en/reference/dbx/functions/dbx-error.xml:1.3 Thu Oct 24 11:06:41 2002 +++ phpdoc/en/reference/dbx/functions/dbx-error.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-error"> <refnamediv> @@ -29,13 +29,13 @@ <![CDATA[ <?php $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") - or die ("Could not connect"); + or die("Could not connect"); $result = dbx_query($link, "select id from non_existing_table"); -if ( $result == 0 ) { - echo dbx_error ($link); +if ($result == 0) { + echo dbx_error($link); } -dbx_close ($link); +dbx_close($link); ?> ]]> </programlisting> Index: phpdoc/en/reference/dbx/functions/dbx-escape-string.xml diff -u phpdoc/en/reference/dbx/functions/dbx-escape-string.xml:1.4 phpdoc/en/reference/dbx/functions/dbx-escape-string.xml:1.5 --- phpdoc/en/reference/dbx/functions/dbx-escape-string.xml:1.4 Tue Feb 11 18:13:12 2003 +++ phpdoc/en/reference/dbx/functions/dbx-escape-string.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.dbx-escape-string"> <refnamediv> <refname>dbx_escape_string</refname> @@ -25,14 +25,14 @@ <![CDATA[ <?php $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") - or die ("Could not connect"); + or die("Could not connect"); $text = dbx_escape_string($link, "It\'s quoted and backslashed (\\)."); -$result = dbx_query($link, "insert into tbl (txt) values ('".$text."')"); -if ( $result == 0 ) { - echo dbx_error ($link); +$result = dbx_query($link, "insert into tbl (txt) values ('" . $text . "')"); +if ($result == 0) { + echo dbx_error($link); } -dbx_close ($link); +dbx_close($link); ?> ]]> </programlisting> Index: phpdoc/en/reference/dbx/functions/dbx-fetch-row.xml diff -u phpdoc/en/reference/dbx/functions/dbx-fetch-row.xml:1.3 phpdoc/en/reference/dbx/functions/dbx-fetch-row.xml:1.4 --- phpdoc/en/reference/dbx/functions/dbx-fetch-row.xml:1.3 Sat Nov 1 06:50:43 2003 +++ phpdoc/en/reference/dbx/functions/dbx-fetch-row.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.dbx-fetch-row"> <refnamediv> <refname>dbx_fetch_row</refname> @@ -29,12 +29,12 @@ <programlisting role="php"> <![CDATA[ <?php -$result = dbx_query ($link, 'SELECT id, parentid, description FROM table', DBX_RESULT_UNBUFFERED); +$result = dbx_query($link, 'SELECT id, parentid, description FROM table', DBX_RESULT_UNBUFFERED); echo "<table>\n"; -while ( $row = dbx_fetch_row($result) ) { +while ($row = dbx_fetch_row($result)) { echo "<tr>\n"; - foreach ( $row as $field ) { + foreach ($row as $field) { echo "<td>$field</td>"; } echo "</tr>\n"; Index: phpdoc/en/reference/dbx/functions/dbx-query.xml diff -u phpdoc/en/reference/dbx/functions/dbx-query.xml:1.14 phpdoc/en/reference/dbx/functions/dbx-query.xml:1.15 --- phpdoc/en/reference/dbx/functions/dbx-query.xml:1.14 Sat Nov 1 06:42:21 2003 +++ phpdoc/en/reference/dbx/functions/dbx-query.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-query"> <refnamediv> @@ -31,12 +31,11 @@ $result = dbx_query($link, 'SELECT id, parentid, description FROM table'); -if ( is_object($result) ) { +if (is_object($result) ) { // ... do some stuff here, see detailed examples below ... // first, print out field names and types // then, draw a table filled with the returned field values -} -else { +} else { exit("Query failed"); } @@ -191,8 +190,8 @@ <programlisting role="php"> <![CDATA[ <?php -$result = dbx_query ($link, "SELECT id FROM table"); -mysql_field_len ($result->handle, 0); +$result = dbx_query($link, "SELECT id FROM table"); +mysql_field_len($result->handle, 0); ?> ]]> </programlisting> @@ -212,7 +211,7 @@ <programlisting role="php"> <![CDATA[ <?php -$result = dbx_query ($link, 'SELECT id FROM table'); +$result = dbx_query($link, 'SELECT id FROM table'); echo $result->rows; // number of records echo $result->cols; // number of fields ?> @@ -239,7 +238,7 @@ <programlisting role="php"> <![CDATA[ <?php -$result = dbx_query ($link, 'SELECT id FROM table', +$result = dbx_query($link, 'SELECT id FROM table', DBX_RESULT_INDEX | DBX_RESULT_INFO); for ($i = 0; $i < $result->cols; $i++ ) { @@ -268,12 +267,12 @@ <programlisting role="php"> <![CDATA[ <?php -$result = dbx_query ($link, 'SELECT id, parentid, description FROM table'); +$result = dbx_query($link, 'SELECT id, parentid, description FROM table'); echo "<table>\n"; -foreach ( $result->data as $row ) { +foreach ($result->data as $row) { echo "<tr>\n"; - foreach ( $row as $field ) { + foreach ($row as $field) { echo "<td>$field</td>"; } echo "</tr>\n"; @@ -290,9 +289,9 @@ $result = dbx_query ($link, 'SELECT id, parentid, description FROM table', DBX_RESULT_UNBUFFERED); echo "<table>\n"; -while ( $row = dbx_fetch_row($result) ) { +while ($row = dbx_fetch_row($result)) { echo "<tr>\n"; - foreach ( $row as $field ) { + foreach ($row as $field) { echo "<td>$field</td>"; } echo "</tr>\n"; Index: phpdoc/en/reference/dbx/functions/dbx-sort.xml diff -u phpdoc/en/reference/dbx/functions/dbx-sort.xml:1.3 phpdoc/en/reference/dbx/functions/dbx-sort.xml:1.4 --- phpdoc/en/reference/dbx/functions/dbx-sort.xml:1.3 Fri Apr 26 06:47:30 2002 +++ phpdoc/en/reference/dbx/functions/dbx-sort.xml Mon Dec 15 11:48:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-sort"> <refnamediv> @@ -30,24 +30,24 @@ <programlisting role="php"> <![CDATA[ <?php -function user_re_order ($a, $b) { - $rv = dbx_compare ($a, $b, "parentid", DBX_CMP_DESC); - if ( !$rv ) { - $rv = dbx_compare ($a, $b, "id", DBX_CMP_NUMBER); +function user_re_order($a, $b) { + $rv = dbx_compare($a, $b, "parentid", DBX_CMP_DESC); + if (!$rv) { + $rv = dbx_compare($a, $b, "id", DBX_CMP_NUMBER); } return $rv; } -$link = dbx_connect (DBX_ODBC, "", "db", "username", "password") - or die ("Could not connect"); +$link = dbx_connect(DBX_ODBC, "", "db", "username", "password") + or die("Could not connect"); -$result = dbx_query ($link, "SELECT id, parentid, description FROM tbl ORDER BY id"); +$result = dbx_query($link, "SELECT id, parentid, description FROM tbl ORDER BY id"); // data in $result is now ordered by id -dbx_sort ($result, "user_re_order"); +dbx_sort($result, "user_re_order"); // data in $result is now ordered by parentid (descending), then by id -dbx_close ($link); +dbx_close($link); ?> ]]> </programlisting> Index: phpdoc/en/reference/dio/functions/dio-tcsetattr.xml diff -u phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.4 phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.5 --- phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.4 Sun Jun 29 12:55:11 2003 +++ phpdoc/en/reference/dio/functions/dio-tcsetattr.xml Mon Dec 15 11:48:50 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/dio.xml, last change in rev 1.1 --> <refentry id="function.dio-tcsetattr"> <refnamediv> @@ -52,7 +52,7 @@ $fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK); -dio_fcntl($fd,F_SETFL, O_SYNC ); +dio_fcntl($fd, F_SETFL, O_SYNC ); dio_tcsetattr($fd, array( 'baud' => 9600, Index: phpdoc/en/reference/dir/functions/class.dir.xml diff -u phpdoc/en/reference/dir/functions/class.dir.xml:1.4 phpdoc/en/reference/dir/functions/class.dir.xml:1.5 --- phpdoc/en/reference/dir/functions/class.dir.xml:1.4 Wed Jun 18 17:13:25 2003 +++ phpdoc/en/reference/dir/functions/class.dir.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 --> <refentry id="class.dir"> <refnamediv> @@ -48,10 +48,10 @@ <![CDATA[ <?php $d = dir("/etc"); -echo "Handle: ".$d->handle."<br>\n"; -echo "Path: ".$d->path."<br>\n"; +echo "Handle: " . $d->handle . "<br />\n"; +echo "Path: " . $d->path . "<br />\n"; while (false !== ($entry = $d->read())) { - echo $entry."<br>\n"; + echo $entry."<br />\n"; } $d->close(); ?> Index: phpdoc/en/reference/dir/functions/opendir.xml diff -u phpdoc/en/reference/dir/functions/opendir.xml:1.6 phpdoc/en/reference/dir/functions/opendir.xml:1.7 --- phpdoc/en/reference/dir/functions/opendir.xml:1.6 Mon Jun 30 11:02:18 2003 +++ phpdoc/en/reference/dir/functions/opendir.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 --> <refentry id="function.opendir"> <refnamediv> @@ -39,7 +39,7 @@ if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { - print "filename: $file : filetype: " . filetype($dir . $file) . "\n"; + echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } Index: phpdoc/en/reference/dir/functions/scandir.xml diff -u phpdoc/en/reference/dir/functions/scandir.xml:1.1 phpdoc/en/reference/dir/functions/scandir.xml:1.2 --- phpdoc/en/reference/dir/functions/scandir.xml:1.1 Wed May 28 14:28:14 2003 +++ phpdoc/en/reference/dir/functions/scandir.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.scandir"> <refnamediv> <refname>scandir</refname> @@ -37,8 +37,14 @@ print_r($files1); print_r($files2); - -/* Outputs something like: +?> +]]> + </programlisting> + <para> + Outputs something like: + </para> + <screen> +<![CDATA[ Array ( [0] => . @@ -55,10 +61,8 @@ [3] => .. [4] => . ) -*/ -?> ]]> - </programlisting> + </screen> </example> </para> <para> @@ -81,7 +85,14 @@ print_r($files); -/* Outputs something like: +?> +]]> + </programlisting> + <para> + Outputs something like: + </para> + <screen> +<![CDATA[ Array ( [0] => . @@ -98,10 +109,8 @@ [3] => .. [4] => . ) -*/ -?> ]]> - </programlisting> + </screen> </example> </para> <para> Index: phpdoc/en/reference/domxml/functions/DomDocument-document-element.xml diff -u phpdoc/en/reference/domxml/functions/DomDocument-document-element.xml:1.2 phpdoc/en/reference/domxml/functions/DomDocument-document-element.xml:1.3 --- phpdoc/en/reference/domxml/functions/DomDocument-document-element.xml:1.2 Wed Apr 17 02:37:37 2002 +++ phpdoc/en/reference/domxml/functions/DomDocument-document-element.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.DomDocument-document-element"> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/DomDocumentType-public-id.xml diff -u phpdoc/en/reference/domxml/functions/DomDocumentType-public-id.xml:1.2 phpdoc/en/reference/domxml/functions/DomDocumentType-public-id.xml:1.3 --- phpdoc/en/reference/domxml/functions/DomDocumentType-public-id.xml:1.2 Wed Apr 17 02:37:38 2002 +++ phpdoc/en/reference/domxml/functions/DomDocumentType-public-id.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomDocumentType-public-id'> <refnamediv> @@ -26,7 +26,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/DomDocumentType-system-id.xml diff -u phpdoc/en/reference/domxml/functions/DomDocumentType-system-id.xml:1.2 phpdoc/en/reference/domxml/functions/DomDocumentType-system-id.xml:1.3 --- phpdoc/en/reference/domxml/functions/DomDocumentType-system-id.xml:1.2 Wed Apr 17 02:37:38 2002 +++ phpdoc/en/reference/domxml/functions/DomDocumentType-system-id.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomDocumentType-system-id'> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/DomElement-get-elements-by-tagname.xml diff -u phpdoc/en/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.4 phpdoc/en/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.5 --- phpdoc/en/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.4 Thu May 29 11:25:41 2003 +++ phpdoc/en/reference/domxml/functions/DomElement-get-elements-by-tagname.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomElement-get-elements-by-tagname'> <refnamediv> @@ -24,7 +24,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -33,10 +33,9 @@ $node_array = $root->get_elements_by_tagname("element"); -for ($i = 0; $i<count($node_array); $i++) -{ +for ($i = 0; $i<count($node_array); $i++) { $node = $node_array[$i]; - print ("The element[$i] is: ".$node->get_content()); + echo "The element[$i] is: " . $node->get_content(); } ?> Index: phpdoc/en/reference/domxml/functions/DomNode-append-child.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-append-child.xml:1.5 phpdoc/en/reference/domxml/functions/DomNode-append-child.xml:1.6 --- phpdoc/en/reference/domxml/functions/DomNode-append-child.xml:1.5 Tue Mar 4 06:53:00 2003 +++ phpdoc/en/reference/domxml/functions/DomNode-append-child.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.40 --> <refentry id='function.DomNode-append-child'> <refnamediv> @@ -83,7 +83,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -97,10 +97,10 @@ $children = $newnode->children(); $attr = $children[1]->set_attribute("align", "left"); -echo "<PRE>"; +echo "<pre>"; $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); -echo "</PRE>"; +echo "</pre>"; ?> ]]> </programlisting> Index: phpdoc/en/reference/domxml/functions/DomNode-get-content.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-get-content.xml:1.3 phpdoc/en/reference/domxml/functions/DomNode-get-content.xml:1.4 --- phpdoc/en/reference/domxml/functions/DomNode-get-content.xml:1.3 Thu May 29 11:29:11 2003 +++ phpdoc/en/reference/domxml/functions/DomNode-get-content.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 --> <refentry id='function.DomNode-get-content'> <refnamediv> @@ -23,7 +23,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -32,10 +32,9 @@ $node_array = $root->get_elements_by_tagname("element"); -for ($i = 0; $i<count($node_array); $i++) -{ - $node = $node_array[$i]; - print ("The element[$i] is: ".$node->get_content()); +for ($i = 0; $i<count($node_array); $i++) { + $node = $node_array[$i]; + echo "The element[$i] is: " . $node->get_content(); } ?> Index: phpdoc/en/reference/domxml/functions/DomNode-insert-before.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-insert-before.xml:1.5 phpdoc/en/reference/domxml/functions/DomNode-insert-before.xml:1.6 --- phpdoc/en/reference/domxml/functions/DomNode-insert-before.xml:1.5 Wed Jul 16 13:11:39 2003 +++ phpdoc/en/reference/domxml/functions/DomNode-insert-before.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-insert-before'> <refnamediv> @@ -41,7 +41,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/DomNode-next-sibling.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-next-sibling.xml:1.5 phpdoc/en/reference/domxml/functions/DomNode-next-sibling.xml:1.6 --- phpdoc/en/reference/domxml/functions/DomNode-next-sibling.xml:1.5 Sat Jan 18 18:03:18 2003 +++ phpdoc/en/reference/domxml/functions/DomNode-next-sibling.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-next-sibling'> <refnamediv> @@ -28,7 +28,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -37,7 +37,7 @@ $element = $elements[0]; $child = $element->first_child(); -while($child) { +while ($child) { print_r($child); $child = $child->next_sibling(); } Index: phpdoc/en/reference/domxml/functions/DomNode-remove-child.xml diff -u phpdoc/en/reference/domxml/functions/DomNode-remove-child.xml:1.3 phpdoc/en/reference/domxml/functions/DomNode-remove-child.xml:1.4 --- phpdoc/en/reference/domxml/functions/DomNode-remove-child.xml:1.3 Sat Jan 18 18:03:19 2003 +++ phpdoc/en/reference/domxml/functions/DomNode-remove-child.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-remove-child'> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml diff -u phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.1 phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.2 --- phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.1 Wed Dec 11 09:20:34 2002 +++ phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.DomXsltStylesheet-result-dump-file"> <refnamediv> <refname>DomXsltStylesheet->result_dump_file</refname> @@ -37,7 +37,7 @@ $xmldoc = domxml_open_file("data.xml"); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc->process($xmldoc); -print $xsldoc->result_dump_file($result,"filename"); +echo $xsldoc->result_dump_file($result, "filename"); ?> ]]> </programlisting> Index: phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml diff -u phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.3 phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.4 --- phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.3 Wed Dec 11 09:21:14 2002 +++ phpdoc/en/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.DomXsltStylesheet-result-dump-mem"> <refnamediv> <refname>DomXsltStylesheet->result_dump_mem</refname> @@ -36,7 +36,7 @@ $xmldoc = domxml_open_file("data.xml"); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc->process($xmldoc); -print $xsldoc->result_dump_mem($result); +echo $xsldoc->result_dump_mem($result); ?> ]]> </programlisting> Index: phpdoc/en/reference/domxml/functions/domxml-open-file.xml diff -u phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.2 phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.3 --- phpdoc/en/reference/domxml/functions/domxml-open-file.xml:1.2 Wed Apr 17 02:37:41 2002 +++ phpdoc/en/reference/domxml/functions/domxml-open-file.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.1 --> <refentry id="function.domxml-open-file"> <refnamediv> @@ -25,7 +25,7 @@ <![CDATA[ <?php -if(!$dom = domxml_open_file("example.xml")) { +if (!$dom = domxml_open_file("example.xml")) { echo "Error while parsing the document\n"; exit; } Index: phpdoc/en/reference/domxml/functions/domxml-open-mem.xml diff -u phpdoc/en/reference/domxml/functions/domxml-open-mem.xml:1.2 phpdoc/en/reference/domxml/functions/domxml-open-mem.xml:1.3 --- phpdoc/en/reference/domxml/functions/domxml-open-mem.xml:1.2 Wed Apr 17 02:37:41 2002 +++ phpdoc/en/reference/domxml/functions/domxml-open-mem.xml Mon Dec 15 11:48:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.1 --> <refentry id="function.domxml-open-mem"> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; }