cvs: phpdoc /en/features commandline.xml

From: Date: Tue, 14 May 2002 09:06:28 +0000
Subject: cvs: phpdoc /en/features commandline.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345565@lists.php.net to get a copy of this message
mfischer Tue May 14 05:06:28 2002 EDT Modified files: /phpdoc/en/features commandline.xml Log: - Minor improvements. Index: phpdoc/en/features/commandline.xml diff -u phpdoc/en/features/commandline.xml:1.3 phpdoc/en/features/commandline.xml:1.4 --- phpdoc/en/features/commandline.xml:1.3 Fri May 10 18:08:56 2002 +++ phpdoc/en/features/commandline.xml Tue May 14 05:06:23 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <chapter id="features.commandline"> <title>Using PHP from the command line</title> <!-- NEW DOCUMENTATION STARTS --> @@ -68,7 +68,9 @@ <entry> It is desired that any output coming from <function>print</function>, <function>echo</function> and friends is - immidiately written to the output and not cached in any buffer. + immidiately written to the output and not cached in any buffer. You + still can use <link linkend="ref.outcontrol">output buffering</link> + if you want to defer or manipulate standard output. </entry> </row> <row> @@ -131,6 +133,7 @@ <![CDATA[ $ pwd /tmp + $ php-cgi -f another_directory/test.php /tmp/another_directory ]]> @@ -144,6 +147,7 @@ <![CDATA[ $ pwd /tmp + $ php -f another_directory/test.php /tmp ]]> @@ -273,11 +277,11 @@ As long as the arguments you want to pass to your script do not start with the <literal>-</literal> character, there's nothing special to watch out for. Passing an argument to your script which starts with a - <literal>-</literal> will cause trouble because <literal>PHP</literal> - thinks it has to handle it. To prevent this use the argument list separator - <literal>--</literal>. After the argument has been parsed by - <literal>PHP</literal>, every argument following it is passed - untoched/unparsed to your script. + <literal>-</literal> will cause trouble because <literal>PHP</literal> + itself thinks it has to handle it. To prevent this use the argument list + separator <literal>--</literal>. After the argument has been parsed by + <literal>PHP</literal>, every argument following it is passed + untoched/unparsed to your script. </para> <screen> <![CDATA[ @@ -395,9 +399,9 @@ <para> Writes the PHP, PHP SAPI, and Zend version to standard output, e.g. <screen> -<![CDATA[ +<![CDATA[ $ php -v -PHP 4.3.0-dev (cli) +PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies ]]> </screen> @@ -412,7 +416,7 @@ &php.ini; or you can specify a custom <literal>INI</literal> file directly (which does not need to be named &php.ini;), e.g.: <screen> -<![CDATA[ +<![CDATA[ $ php -c /custom/directory/ my_script.php $ php -c /custom/directory/custom-file.ini my_script.php

« previous php.doc (#969345565) next »