executing php at shell level...
| From: | Kelly Meeks | Date: | Wed, 21 Aug 2002 20:42:23 +0000 |
| Subject: | executing php at shell level... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113529@lists.php.net to get a copy of this message | ||
Hi folks,
Having a strange problem...
I've got a php script named 'phptest' with the following code:
#!/usr/bin/php -q
<?
var_dump($argv);
?>
I've set the permission on the file to 755, and am executing the file by typing:
./phptest var1 var2 var3
The only output I get is NULL. No matter what I do, I can't seem to pass any variables to the
script. Not just this script, either, I can't pass vars to any php script executing at the
shell level.
I'm running 4.03 (please, no digs about the security hole(s), long, long story...) is there
anything in the php.ini file I need to change?
TIA,
Kelly