Execute a Application On The Server Using PHP(With safe_mode enabled)
- by Nathan Campos
I have an application on my server that is called leaf.exe, that haves two arguments needed to run, they are: inputfile and outputfile, that will be like this example:
pnote.exe input.pnt output.txt
The executable is at exec/, inputfile is at upload/ and outputfile is on compiled/. But I need that a PHP could run the application like that, then I want to know:
How could I do this on a server that have exec() disabled and I can't turn it on, because I don't have privileges to do it?
How could I echo the output of the program?