Executing UNIX command from PHP script
How can I execute a UNIX command from a PHP script?
Is there someway of doing the following: PHP Code:
|
Nevermind, I figured it out.
|
Well, whatdja do?
|
This is what I am using.
http://us3.php.net/manual/en/function.system.php But I do have another question, how can I set the PATH for commands? For example, If I run "php -f test.php" PHP Code:
the result is: sh: /usr/local/php/bin/ls: No such file or directory |
All times are GMT -5. The time now is 09:15 PM. |