from php.ini:
allow_url = on
safe_mode_exe_dir =
but this still doesn't work when run through a browser. I'm completely stumped.. I've tried:
making the shell script echo output that php catches through exec.
making the shell script write to a file, then read the file through php.
using fopen on a URL i.e. fopen("http://some.url.com",'r');
Basically, If run through a browser and the shell script runs lynx, it doesn't work, if the shell script doesn't run lynx, but rather, runs "ls" or something of the sort, it does work. If I run the php from the command line rather than a browser, it works fine. There doesn't seem to be permissions problems and this
was working before I restarted apache. Note: when I say "it doesn't work", I mean all the output that should come from lynx is missing, but if I add formatting output like "text should go here: ", that will print, but the text that comes from lynx doesn't.
update: if I check out the error log on the machine running appache, I get a "/root/: No such directory"
my script isn't accessing anything in /root and apache is run under the user "apache" - could this be a path issue?... hmm... if I echo out the path variable from the php through the brwoser, /root is not involved.