PHP not passing CLI script arguments
| From: | Darren | Date: | Sun, 23 Nov 2008 22:39:38 +0000 |
| Subject: | PHP not passing CLI script arguments | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-29080@lists.php.net to get a copy of this message | ||
Hi,
I have a folder of PHP scripts, which I have added to my PATH var in XP so i can access them elsewhere in the command prompt. *.php files are also set to open with the PHP cli app.
But when doing this, my scripts no longer have any arguments passed into $argv. Only the script name in $argv[0].
Has anyone managed to do this before, or have I missed anything?
Darren