Removed old documentation

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164471 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-07-27 16:42:32 +00:00
parent 61d5f16a07
commit 6cebe0a3c5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.33 $ -->
<!-- $Revision: 1.34 $ -->
<chapter id="features.commandline">
<title>Using PHP from the command line</title>
<!-- NEW DOCUMENTATION STARTS -->
@ -911,149 +911,6 @@ array(370) {
modules are in the binary package, the executable is
named <filename>php.exe</filename>.
</para>
<para>
This list of command line options is consistent with PHP 4.0.6.
You can get the actual list and some one line descriptions
with the <literal>-h</literal> option. The output of
<literal>php -h</literal> should be something like this:
<screen>
<![CDATA[
Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]}
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-f <file> Parse <file>. Implies `-q'
-v Version number
-C Do not chdir to the script's directory
-c <path> Look for php.ini file in this directory
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-z <file> Load Zend extension <file>.
-l Syntax check only (lint)
-m Show compiled in modules
-i PHP information
-h This help
]]>
</screen>
</para>
<para>
Here we list some of the most important command line options
with detailed explanations.
</para>
<para>
<table>
<title>Command line options</title>
<tgroup cols="2">
<thead>
<row>
<entry>Option</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>-q</entry>
<entry>
Suppress HTTP headers output. Normally PHP prints out
HTTP headers for the calling program (ie. webserver)
to hand on to the browser. When writing command line
applications these headers are useless.
</entry>
</row>
<row>
<entry>-s</entry>
<entry>
Display the color highlighted source of the file
given with its name. This is the same as if you were
printing out the source using the
<function>highlight_file</function> function in
a PHP script.
</entry>
</row>
<row>
<entry>-f</entry>
<entry>
Parse the file given, and search for syntactical and
fatal errors. This option implies -q. Use for
debugging purposes.
</entry>
</row>
<row>
<entry>-v</entry>
<entry>
By calling PHP with this option, you can ask
it to print out its version number, ie: 4.0.6.
</entry>
</row>
<row>
<entry>-C</entry>
<entry>
Normally PHP changes the working directory to the
running scripts directory. This makes it possible
for example, to open files in the same directory,
with only specifying the name of the file. If you
would like to disable this directory change, use
this option.
</entry>
</row>
<row>
<entry>-c</entry>
<entry>
Using this option, you can specify an alternative
&php.ini; path, so PHP will
search your configurations file in this path
instead of the default one.
</entry>
</row>
<row>
<entry>-d</entry>
<entry>
With this option, you can set individual
&php.ini; settings in the
time of running a script.
</entry>
</row>
<row>
<entry>-l</entry>
<entry>
Check the file given for syntax errors. This
option implies -q. Use for debugging purposes.
This option won't find fatal errors (like undefined
functions). Use -f if you would like to test
for fatal errors too.
</entry>
</row>
<row>
<entry>-m</entry>
<entry>
Using this option, PHP prints out the built in
(and loaded) PHP and Zend modules, the PHP
and Zend version numbers, and a short Zend
copyright notice.
</entry>
</row>
<row>
<entry>-i</entry>
<entry>
This command line option calls
<function>phpinfo</function>, and prints
out the results. If PHP is not working well,
it is advisable to make a <literal>php -i</literal>
and see if any error messages are printed out
before or in place of the information tables.
</entry>
</row>
<row>
<entry>-h</entry>
<entry>
With this option, you can get information about
the actual list of command line options and some
one line descriptions about what they do.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
-->
<para>
The PHP executable can be used to run PHP scripts absolutely independent