PHP Path for System() Command running in Apache
Posted on 2003-02-28
I am trying to run a system() command but it is failing because it doesn't know where to find the command. If I run system("echo $PATH") it responds back "/usr/sbin:/usr/bin". When I run phpinfo() every PATH that seems pertinent responds back "/usr/sbin:/usr/bin". I am running the script and PHP through Apache_1.3.27, how do I change the default PATH?
Answers that change the PATH for a single script will not help, I have multiple scripts pulled down from various locations on the web and would prefer not to have to visit each file for each application to make the change take affect.