passing an argument to php3 when using binary via shell.
| From: | Neil M | Date: | Sun, 30 Jul 2000 15:38:11 +0000 |
| Subject: | passing an argument to php3 when using binary via shell. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9056@lists.php.net to get a copy of this message | ||
Hello
I am using php3 as a binary under linux , executing it from the command line like so :
/usr/local/bin/php /home/mydocs/mycode.php3
which does things just great , however i now want to pass :
/usr/local/bin/php /home/mydocs/mycode.php3?value=1
using arguments seems to upset the binary , heres what it mumbled :
[root@ns web]# /usr/local/bin/php
/home/sites/site2/web/build_config/auto_hostmaster/insert_multiref.php3?value=test
Content-type: text/html
<br>
<b>Fatal error</b>: Unable to open
/home/sites/site2/web/build_config/auto_hostmaster/insert_multiref.php3?value=test in <b>-
</b> on line <b>0</b><br>
[root@ns web]
if i execute with out the ? argument it seems fine ( i have been using it like this for setting up
php3 cron jobs ) take a look :
[root@ns web]# /usr/local/bin/php
/home/sites/site2/web/build_config/auto_hostmaster/insert_multiref.php3
Content-type: text/html
So if any has succesfully passed values to php3 in this manner basically , i would like to hear from
you :)
Thank you all in advance for reading this desperate attempt for help
Neil