vrana Mon Dec 8 08:52:47 2003 EDT
Modified files: /phpdoc/en/reference/array/functions list.xml /phpdoc/en/reference/bzip2/functions bzcompress.xml bzdecompress.xml bzopen.xml bzread.xml /phpdoc/en/reference/datetime/functions strftime.xml /phpdoc/en/reference/dbx/functions dbx-close.xml /phpdoc/en/reference/fbsql/functions fbsql-create-db.xml /phpdoc/en/reference/imap/functions imap-createmailbox.xml imap-status.xml /phpdoc/en/reference/pgsql/functions pg-close.xml pg-get-notify.xml /phpdoc/en/reference/xslt/functions xslt-error.xml xslt-set-log.xml Log: Changed print to echo as recommended in RFC/coding_standards
Index: phpdoc/en/reference/array/functions/list.xml diff -u phpdoc/en/reference/array/functions/list.xml:1.9 phpdoc/en/reference/array/functions/list.xml:1.10 --- phpdoc/en/reference/array/functions/list.xml:1.9 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/list.xml Mon Dec 8 08:52:40 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.list"> <refnamediv> @@ -66,10 +66,10 @@ $result = mysql_query("SELECT id, name, salary FROM employees",$conn); while (list($id, $name, $salary) = mysql_fetch_row($result)) { - print(" <tr>\n" . + echo " <tr>\n" . " <td><a href=\"info.php?id=$id\">$name</a></td>\n" . " <td>$salary</td>\n" . - " </tr>\n"); + " </tr>\n"; } ?> Index: phpdoc/en/reference/bzip2/functions/bzcompress.xml diff -u phpdoc/en/reference/bzip2/functions/bzcompress.xml:1.2 phpdoc/en/reference/bzip2/functions/bzcompress.xml:1.3 --- phpdoc/en/reference/bzip2/functions/bzcompress.xml:1.2 Wed Apr 17 02:36:35 2002 +++ phpdoc/en/reference/bzip2/functions/bzcompress.xml Mon Dec 8 08:52:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzcompress"> <refnamediv> @@ -42,7 +42,7 @@ <?php $str = "sample data"; $bzstr = bzcompress($str, 9); -print( $bzstr ); +echo $bzstr; ?> ]]> </programlisting> Index: phpdoc/en/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.2 phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.3 --- phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.2 Wed Apr 17 02:36:35 2002 +++ phpdoc/en/reference/bzip2/functions/bzdecompress.xml Mon Dec 8 08:52:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzdecompress"> <refnamediv> @@ -32,14 +32,14 @@ $start_str = "This is not an honest face?"; $bzstr = bzcompress($start_str); -print( "Compressed String: " ); -print( $bzstr ); -print( "\n<br>\n" ); +echo "Compressed String: "; +echo $bzstr; +echo "\n<br>\n"; $str = bzdecompress($bzstr); -print( "Decompressed String: " ); -print( $str ); -print( "\n<br>\n" ); +echo "Decompressed String: "; +echo $str; +echo "\n<br>\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/bzip2/functions/bzopen.xml diff -u phpdoc/en/reference/bzip2/functions/bzopen.xml:1.3 phpdoc/en/reference/bzip2/functions/bzopen.xml:1.4 --- phpdoc/en/reference/bzip2/functions/bzopen.xml:1.3 Sat Aug 16 12:05:54 2003 +++ phpdoc/en/reference/bzip2/functions/bzopen.xml Mon Dec 8 08:52:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzopen"> <refnamediv> @@ -37,9 +37,9 @@ } bzclose($bz); -print( "The contents of /tmp/foo.bz2 are: " ); -print( "\n<br>\n" ); -print( $decompressed_file ); +echo "The contents of /tmp/foo.bz2 are: "; +echo "\n<br>\n"; +echo $decompressed_file; ?> ]]> </programlisting> Index: phpdoc/en/reference/bzip2/functions/bzread.xml diff -u phpdoc/en/reference/bzip2/functions/bzread.xml:1.2 phpdoc/en/reference/bzip2/functions/bzread.xml:1.3 --- phpdoc/en/reference/bzip2/functions/bzread.xml:1.2 Wed Apr 17 02:36:36 2002 +++ phpdoc/en/reference/bzip2/functions/bzread.xml Mon Dec 8 08:52:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzread"> <refnamediv> @@ -31,7 +31,7 @@ <?php $bz = bzopen("/tmp/foo.bz2", "r"); $str = bzread($bz, 2048); -print( $str ); +echo $str; ?> ]]> </programlisting> Index: phpdoc/en/reference/datetime/functions/strftime.xml diff -u phpdoc/en/reference/datetime/functions/strftime.xml:1.9 phpdoc/en/reference/datetime/functions/strftime.xml:1.10 --- phpdoc/en/reference/datetime/functions/strftime.xml:1.9 Mon Jul 14 05:10:16 2003 +++ phpdoc/en/reference/datetime/functions/strftime.xml Mon Dec 8 08:52:43 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.strftime"> <refnamediv> @@ -252,14 +252,14 @@ <programlisting role="php"> <![CDATA[ <?php -setlocale (LC_TIME, "C"); -print (strftime ("%A in Finnish is ")); -setlocale (LC_TIME, "fi_FI"); -print (strftime ("%A, in French ")); -setlocale (LC_TIME, "fr_FR"); -print (strftime ("%A and in German ")); -setlocale (LC_TIME, "de_DE"); -print (strftime ("%A.\n")); +setlocale(LC_TIME, "C"); +echo strftime("%A"); +setlocale(LC_TIME, "fi_FI"); +echo strftime(" in Finnish is %A,"); +setlocale(LC_TIME, "fr_FR"); +echo strftime(" in French %A and"); +setlocale(LC_TIME, "de_DE"); +echo strftime(" in German %A.\n"); ?> ]]> </programlisting> @@ -288,16 +288,16 @@ 3 13 14 15 16 17 18 19 */ // Outputs: 12/28/2002 - %V,%G,%Y = 52,2002,2002 -print "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 -print "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 -print "1/3/2003 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/3/2003")) . "\n"; +echo "1/3/2003 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/3/2003")) . "\n"; // Outputs: 1/10/2003 - %V,%G,%Y = 2,2003,2003 -print "1/10/2003 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/10/2003")) . "\n"; +echo "1/10/2003 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/10/2003")) . "\n"; @@ -311,16 +311,16 @@ 2 10 11 12 13 14 15 16 */ // Outputs: 12/23/2004 - %V,%G,%Y = 52,2004,2004 -print "12/23/2004 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/23/2004")) . "\n"; +echo "12/23/2004 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/23/2004")) . "\n"; // Outputs: 12/31/2004 - %V,%G,%Y = 53,2004,2004 -print "12/31/2004 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/31/2004")) . "\n"; +echo "12/31/2004 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("12/31/2004")) . "\n"; // Outputs: 1/2/2005 - %V,%G,%Y = 53,2004,2005 -print "1/2/2005 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/2/2005")) . "\n"; +echo "1/2/2005 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/2/2005")) . "\n"; // Outputs: 1/3/2005 - %V,%G,%Y = 1,2005,2005 -print "1/3/2005 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/3/2005")) . "\n"; +echo "1/3/2005 - %V,%G,%Y = " . strftime("%V,%G,%Y",strtotime("1/3/2005")) . "\n"; ?> ]]> Index: phpdoc/en/reference/dbx/functions/dbx-close.xml diff -u phpdoc/en/reference/dbx/functions/dbx-close.xml:1.4 phpdoc/en/reference/dbx/functions/dbx-close.xml:1.5 --- phpdoc/en/reference/dbx/functions/dbx-close.xml:1.4 Tue Feb 11 18:13:12 2003 +++ phpdoc/en/reference/dbx/functions/dbx-close.xml Mon Dec 8 08:52:44 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 --> <refentry id="function.dbx-close"> <refnamediv> @@ -23,7 +23,7 @@ $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") or die ("Could not connect"); -print("Connected successfully"); +echo "Connected successfully"; dbx_close($link); ?> ]]> Index: phpdoc/en/reference/fbsql/functions/fbsql-create-db.xml diff -u phpdoc/en/reference/fbsql/functions/fbsql-create-db.xml:1.4 phpdoc/en/reference/fbsql/functions/fbsql-create-db.xml:1.5 --- phpdoc/en/reference/fbsql/functions/fbsql-create-db.xml:1.4 Sat May 17 09:58:08 2003 +++ phpdoc/en/reference/fbsql/functions/fbsql-create-db.xml Mon Dec 8 08:52:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.26 --> <refentry id="function.fbsql-create-db"> <refnamediv> @@ -29,7 +29,7 @@ $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); if (fbsql_create_db ("my_db")) { - print("Database created successfully\n"); + echo "Database created successfully\n"; } else { printf("Error creating database: %s\n", fbsql_error ()); } Index: phpdoc/en/reference/imap/functions/imap-createmailbox.xml diff -u phpdoc/en/reference/imap/functions/imap-createmailbox.xml:1.5 phpdoc/en/reference/imap/functions/imap-createmailbox.xml:1.6 --- phpdoc/en/reference/imap/functions/imap-createmailbox.xml:1.5 Sat Aug 16 15:04:49 2003 +++ phpdoc/en/reference/imap/functions/imap-createmailbox.xml Mon Dec 8 08:52:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 --> <refentry id="function.imap-createmailbox"> <refnamediv> @@ -49,12 +49,12 @@ if(@imap_createmailbox($mbox,imap_utf7_encode("{your.imap.host}INBOX.$newname"))) { $status = @imap_status($mbox,"{your.imap.host}INBOX.$newname",SA_ALL); if($status) { - print("your new mailbox '$name1' has the following status:<br>\n"); - print("Messages: ". $status->messages )."<br>\n"; - print("Recent: ". $status->recent )."<br>\n"; - print("Unseen: ". $status->unseen )."<br>\n"; - print("UIDnext: ". $status->uidnext )."<br>\n"; - print("UIDvalidity:". $status->uidvalidity)."<br>\n"; + echo "your new mailbox '$name1' has the following status:<br>\n"; + echo "Messages: ". $status->messages ."<br>\n"; + echo "Recent: ". $status->recent ."<br>\n"; + echo "Unseen: ". $status->unseen ."<br>\n"; + echo "UIDnext: ". $status->uidnext ."<br>\n"; + echo "UIDvalidity:". $status->uidvalidity ."<br>\n"; if(imap_renamemailbox($mbox,"{your.imap.host}INBOX.$newname","{your.imap.host}INBOX.$name2")) { echo "renamed new mailbox from '$name1' to '$name2'<br>\n"; Index: phpdoc/en/reference/imap/functions/imap-status.xml diff -u phpdoc/en/reference/imap/functions/imap-status.xml:1.4 phpdoc/en/reference/imap/functions/imap-status.xml:1.5 --- phpdoc/en/reference/imap/functions/imap-status.xml:1.4 Wed Jul 16 13:14:40 2003 +++ phpdoc/en/reference/imap/functions/imap-status.xml Mon Dec 8 08:52:45 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 --> <refentry id="function.imap-status"> <refnamediv> @@ -73,13 +73,13 @@ $status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL); if($status) { - print("Messages: ". $status->messages )."<br>\n"; - print("Recent: ". $status->recent )."<br>\n"; - print("Unseen: ". $status->unseen )."<br>\n"; - print("UIDnext: ". $status->uidnext )."<br>\n"; - print("UIDvalidity:". $status->uidvalidity)."<br>\n"; + echo "Messages: ". $status->messages ."<br>\n"; + echo "Recent: ". $status->recent ."<br>\n"; + echo "Unseen: ". $status->unseen ."<br>\n"; + echo "UIDnext: ". $status->uidnext ."<br>\n"; + echo "UIDvalidity:". $status->uidvalidity ."<br>\n"; } else - print "imap_status failed: ".imap_last_error()."\n"; + echo "imap_status failed: ".imap_last_error()."\n"; imap_close($mbox); ?> Index: phpdoc/en/reference/pgsql/functions/pg-close.xml diff -u phpdoc/en/reference/pgsql/functions/pg-close.xml:1.5 phpdoc/en/reference/pgsql/functions/pg-close.xml:1.6 --- phpdoc/en/reference/pgsql/functions/pg-close.xml:1.5 Wed Jul 16 11:05:34 2003 +++ phpdoc/en/reference/pgsql/functions/pg-close.xml Mon Dec 8 08:52:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-close"> <refnamediv> @@ -32,7 +32,7 @@ <?php $dbconn = pg_connect("host=localhost port=5432 dbname=mary") or die("Could not connect"); - print("Connected successfully"); + echo "Connected successfully"; pg_close($dbconn); ?> ]]> Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.5 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.6 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.5 Fri Oct 31 07:02:57 2003 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Mon Dec 8 08:52:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.pg-get-notify"> <refnamediv> <refname>pg_get_notify</refname> @@ -39,7 +39,7 @@ pg_query($conn, 'LISTEN author_updated;'); $notify = pg_get_notify($conn); if (!$notify) - print("No messages\n"); + echo "No messages\n"; else print_r($notify); ?> Index: phpdoc/en/reference/xslt/functions/xslt-error.xml diff -u phpdoc/en/reference/xslt/functions/xslt-error.xml:1.3 phpdoc/en/reference/xslt/functions/xslt-error.xml:1.4 --- phpdoc/en/reference/xslt/functions/xslt-error.xml:1.3 Sun May 25 00:04:08 2003 +++ phpdoc/en/reference/xslt/functions/xslt-error.xml Mon Dec 8 08:52:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/xslt.xml, last change in rev 1.3 --> <refentry id="function.xslt-error"> <refnamediv> @@ -33,7 +33,7 @@ xslt_errno($xh), xslt_error($xh))); } -print($result); +echo $result; xslt_free($xh); ?> Index: phpdoc/en/reference/xslt/functions/xslt-set-log.xml diff -u phpdoc/en/reference/xslt/functions/xslt-set-log.xml:1.3 phpdoc/en/reference/xslt/functions/xslt-set-log.xml:1.4 --- phpdoc/en/reference/xslt/functions/xslt-set-log.xml:1.3 Tue Nov 26 16:16:53 2002 +++ phpdoc/en/reference/xslt/functions/xslt-set-log.xml Mon Dec 8 08:52:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/xslt.xml, last change in rev 1.3 --> <refentry id="function.xslt-set-log"> <refnamediv> @@ -57,7 +57,7 @@ xslt_set_log($xh, getcwd() . 'myfile.log'); $result = xslt_process($xh, 'dog.xml', 'pets.xsl'); -print($result); +echo $result; xslt_free($xh); ?> @@ -65,10 +65,10 @@ </programlisting> </example> </para> - <note> - <simpara> - Please note that <emphasis>file://</emphasis> is needed in front of path if you use Windows. - </simpara> + <note> + <simpara> + Please note that <emphasis>file://</emphasis> is needed in front of path if you use Windows. + </simpara> </note> </refsect1> </refentry>