mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Add notes about -f and script arguments
- Fix typo git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@246862 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
40bd0d7204
commit
fe5cb1bb22
1 changed files with 16 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.51 $ -->
|
||||
<!-- $Revision: 1.52 $ -->
|
||||
<chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Using PHP from the command line</title>
|
||||
<para>
|
||||
|
@ -426,6 +426,13 @@ php -f my_script.php
|
|||
<literal>.php</literal> extension but can have any name or extension
|
||||
you wish.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
If you need to pass arguments to your scripts you need to pass
|
||||
<literal>--</literal> as the first argument when using the
|
||||
<option>-f</option> switch.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
|
@ -693,10 +700,17 @@ string(15) "doesntmakesense"
|
|||
<entry>--file</entry>
|
||||
<entry>
|
||||
<para>
|
||||
Parses and executed the given filename to the <option>-f</option>
|
||||
Parses and executes the given filename to the <option>-f</option>
|
||||
option. This switch is optional and can be left out. Only providing
|
||||
the filename to execute is sufficient.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
To pass arguments to scripts the first argument needs to be
|
||||
<literal>--</literal>, otherwise PHP will interperate them as PHP
|
||||
options.
|
||||
</para>
|
||||
</note>
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
|
Loading…
Reference in a new issue