Hello, all,
After looking everywhere in the forums, I still need to find my answer..
I (like many others) have trouble executing a program from PHP using system() or passthru().
In this case I want to use tidy to get the buffered output of the page in a nice form, but later I also want to get other programs to interact with PHP.
Of course I have been looking at permissions, I put tidy in a separate directory and gave permissions to the apache user and group (that's the user in Redhat). I give the full path to tidy and so on.
Nothing seems to work. But to my surprise, when I include a phpinfo() command in my script, the passthru() command is executed, and everything is formatted just fine, including the things that did not work before...
Does anybody have any idea what is happening here? Thanks in advance!
I'm using RH linux (9.0) and PHP 4.2.2; apache 2.0.40