Execute a Application On The Server Using PHP(With safe_mode enabled)
        Posted  
        
            by Nathan Campos
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nathan Campos
        
        
        
        Published on 2010-05-03T21:42:28Z
        Indexed on 
            2010/05/03
            22:48 UTC
        
        
        Read the original article
        Hit count: 277
        
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 echothe output of the program?
© Stack Overflow or respective owner