Hi!

I have a problem with running an .exe file using exec() or system()
I have downloaded a file called ffmpeg.exe for converting movie clips. I can use the program thourg the command line in windows (cmd), but I'm not able to have PHP run the file.

First PHP gave be an "unable to fork" error. But then I gave users access to the cmd.exe file and solved that problem. So now is no problem running for example exec("dir");

But when I try to run exec("ffmpeg.exe") it gives me nothing!
No errors or anything. In the command line it returns a lot of data - but not in PHP.

Does anyone have any idea?

    Do any other exes work? Try another video converter. Try writing a conversion script in Perl. Sorry that;s all I can think of.

      Write a Reply...