mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS after markup changes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229065 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
263d831c26
commit
9d80ea4c83
1 changed files with 24 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.42 $ -->
|
||||
<!-- $Revision: 1.43 $ -->
|
||||
<chapter id="features.commandline">
|
||||
<title>Using PHP from the command line</title>
|
||||
<para>
|
||||
|
@ -295,8 +295,8 @@ php -r 'fwrite(STDERR, "stderr\n");'
|
|||
of the executed script!
|
||||
</para>
|
||||
<example>
|
||||
<para>
|
||||
Example showing the difference to the <literal>CGI SAPI</literal>:
|
||||
<para>
|
||||
Example showing the difference to the <literal>CGI SAPI</literal>:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -306,8 +306,8 @@ echo getcwd(), "\n";
|
|||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
When using the <literal>CGI</literal> version, the output is:
|
||||
<para>
|
||||
When using the <literal>CGI</literal> version, the output is:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -319,11 +319,11 @@ $ php -q another_directory/test.php
|
|||
]]>
|
||||
</screen>
|
||||
<para>
|
||||
This clearly shows that PHP changes its current
|
||||
directory to the one of the executed script.
|
||||
</para>
|
||||
<para>
|
||||
Using the <literal>CLI SAPI</literal> yields:
|
||||
This clearly shows that PHP changes its current
|
||||
directory to the one of the executed script.
|
||||
</para>
|
||||
<para>
|
||||
Using the <literal>CLI SAPI</literal> yields:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -336,7 +336,7 @@ $ php -f another_directory/test.php
|
|||
</screen>
|
||||
<para>
|
||||
This allows greater flexibility when writing shell tools in PHP.
|
||||
</para>
|
||||
</para>
|
||||
</example>
|
||||
<note>
|
||||
<para>
|
||||
|
@ -521,8 +521,8 @@ var_dump($argv);
|
|||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Assuming this file is named <filename>test</filename> in the current
|
||||
directory, we can now do the following:
|
||||
Assuming this file is named <filename>test</filename> in the current
|
||||
directory, we can now do the following:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -629,8 +629,8 @@ $ php -c /custom/directory/custom-file.ini my_script.php
|
|||
</screen>
|
||||
</para>
|
||||
<example>
|
||||
<para>
|
||||
Examples (lines are wrapped for layout reasons):
|
||||
<para>
|
||||
Examples (lines are wrapped for layout reasons):
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -729,9 +729,9 @@ string(15) "doesntmakesense"
|
|||
<entry>--modules</entry>
|
||||
<entry>
|
||||
<example>
|
||||
<para>
|
||||
Using this option, PHP prints out the built in (and loaded) PHP and
|
||||
Zend modules:
|
||||
<para>
|
||||
Using this option, PHP prints out the built in (and loaded) PHP and
|
||||
Zend modules:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -772,8 +772,8 @@ ctype
|
|||
shell.
|
||||
</para>
|
||||
<example>
|
||||
<para>
|
||||
Example showing a parser error
|
||||
<para>
|
||||
Example showing a parser error
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -886,8 +886,8 @@ array(370) {
|
|||
</para>
|
||||
<example>
|
||||
<title>Using the <option>-B</option>, <option>-R</option> and
|
||||
<option>-E</option> options to count the number of lines of a
|
||||
project.
|
||||
<option>-E</option> options to count the number of lines of a
|
||||
project.
|
||||
</title>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
@ -925,8 +925,8 @@ Total Lines: 37328
|
|||
<entry>--version</entry>
|
||||
<entry>
|
||||
<example>
|
||||
<para>
|
||||
Writes the PHP, PHP SAPI, and Zend version to standard output, e.g.
|
||||
<para>
|
||||
Writes the PHP, PHP SAPI, and Zend version to standard output, e.g.
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
Loading…
Reference in a new issue