shell_exec problem
Posted: Sun Aug 12, 2007 12:02 pm
Hi all,
not sure if this is the correct place to post this question but here goes.
I am trying (and failing) to execute a command line program with the php function shell_exec.
Some commands work, dir for example is fine and shows me all the files in that directory.
I have image magic installed on the server which, when run from a command prompt via remote desktop connection, works fine.
But when I run the same command using the shell_exec function it doesn't work. I don't get an error or anything, the output file just isn't created.
I really want to get ffmpeg running, but when i try to use this progam via shell_exec I get a "502 - Bad Gateway" error.
Again, the same command using remote desktop connection it works fine.
The server is running Windows 2003 server, and I dont know if its a PHP problem (maybe a config problem) or a server problem (permissions perhaps?).
If anyone has any ideas I'd appreciate a reply.
Thanks
Zico
not sure if this is the correct place to post this question but here goes.
I am trying (and failing) to execute a command line program with the php function shell_exec.
Some commands work, dir for example is fine and shows me all the files in that directory.
I have image magic installed on the server which, when run from a command prompt via remote desktop connection, works fine.
But when I run the same command using the shell_exec function it doesn't work. I don't get an error or anything, the output file just isn't created.
I really want to get ffmpeg running, but when i try to use this progam via shell_exec I get a "502 - Bad Gateway" error.
Again, the same command using remote desktop connection it works fine.
The server is running Windows 2003 server, and I dont know if its a PHP problem (maybe a config problem) or a server problem (permissions perhaps?).
If anyone has any ideas I'd appreciate a reply.
Thanks
Zico