PHP Command line functionality...
Posted: Fri Dec 29, 2006 6:32 am
Hi
I am trying to execute a PHP script from the commandline but I am having a few issues passing values into the script?
Can anyone help?
know this is wrong but I am trying to push a value into the script, this is what I type from the command line on the server:
I am trying to catch the value and echo this out to the terminal...this is test.php:-
Any help would be greatly appreciated!
Thanks Ian
I am trying to execute a PHP script from the commandline but I am having a few issues passing values into the script?
Can anyone help?
know this is wrong but I am trying to push a value into the script, this is what I type from the command line on the server:
Code: Select all
C:\php\php.exe C:\test.php --"$test=value;"Code: Select all
echo $test;Thanks Ian