Re: Passing Parameters to PHP Script
| From: | Curt Zirzow | Date: | Tue, 20 Apr 2004 20:36:47 +0000 |
| Subject: | Re: Passing Parameters to PHP Script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184049@lists.php.net to get a copy of this message | ||
* Thus wrote Ben Ramsey (lists@benramsey.com):
> I'm executing a PHP script from the Windows command prompt:
>
> c:/path/to/php.exe c:/path/to/script.php
>
> I want to pass some parameters to script.php, but I can't use a query
> string because then I get a file not found type of error. So, how
> should I pass parameters to the script?
c:/path/to/php.exe c:/path/to/script.php param1 parm2
echo $argc, "\n";
print_r($argv);
Curt
--
"I used to think I was indecisive, but now I'm not so sure."