note 63844 added to features.commandline
| From: | zach at fsw dot cn | Date: | Sat, 01 Apr 2006 19:30:11 +0000 |
| Subject: | note 63844 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107135@lists.php.net to get a copy of this message | ||
Just a note on the note from 12 April 2005
You would not be running Apache anything, not in regards to executing the PHP - you would be
executing the PHP directly
Calling a file like this
c:\php\cli\php.exe d:\webserver\mysite\script.php?foo=bar
in any operating system that I know of is not going to work. Linux/Windows/whatever
as you discovered
c:\php\cli\php.exe d:\webserver\mysite\script.php bar
would work
or, to keep things almost as you tried to run it to start with
c:\php\cli\php.exe d:\webserver\mysite\script.php
foo=bar&foo2=bar2&foo3=bar3&so_on=and_so_on
then at the top of the script - or in a prepend script
parse_str($argv[1]);
end of problem
----
Server IP: 216.194.113.175
Probable Submitter: 24.234.102.128
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- http://master.php.net/note/edit/63844
Del: integrated -- http://master.php.net/note/delete/63844/integrated
Del: useless -- http://master.php.net/note/delete/63844/useless
Del: bad code -- http://master.php.net/note/delete/63844/bad+code
Del: spam -- http://master.php.net/note/delete/63844/spam
Del: non-english -- http://master.php.net/note/delete/63844/non-english
Del: in docs -- http://master.php.net/note/delete/63844/in+docs
Del: other reasons-- http://master.php.net/note/delete/63844
Reject -- http://master.php.net/note/reject/63844
Search -- http://master.php.net/manage/user-notes.php