Hi
question from a beginner in PHP: I am calling a bash script from my php web page by using shell_exec, the script runs well providing a data file as an output. Then I want to treat this file by using a linux application that I have installed in my server (it is a package with many programs that work as command lines). It seems that PHP is not able to call the binaries of this application. I tried to call the binaries by using shell_exec(‘binary’), exec(‘binary’) and also system(‘binary’), none of them worked. I also tried by indicating the whole path where the binary is located and it didn’t work. In contrast, when I go to the data file created by the bash script from the console the binary works perfectly well. Any idea on what is the problem to execute these binaries from PHP?
Well, this is not advised because it is not very secured this way, but, here is a link which will explain how to do it… Good luck…