From fe5cb1bb22e66fd811f909744d0a0038f949d8f6 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 23 Nov 2007 19:47:44 +0000 Subject: [PATCH] - 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 --- features/commandline.xml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/features/commandline.xml b/features/commandline.xml index cc342ffd5a..0b83524fbd 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -1,5 +1,5 @@ - + Using PHP from the command line @@ -426,6 +426,13 @@ php -f my_script.php .php extension but can have any name or extension you wish. + + + If you need to pass arguments to your scripts you need to pass + -- as the first argument when using the + switch. + + @@ -693,10 +700,17 @@ string(15) "doesntmakesense" --file - Parses and executed the given filename to the + Parses and executes the given filename to the option. This switch is optional and can be left out. Only providing the filename to execute is sufficient. + + + To pass arguments to scripts the first argument needs to be + --, otherwise PHP will interperate them as PHP + options. + +