PHP exec() on windows not working
Posted
by Rich Harrington
on Stack Overflow
See other posts from Stack Overflow
or by Rich Harrington
Published on 2010-03-15T19:22:27Z
Indexed on
2010/03/15
19:29 UTC
Read the original article
Hit count: 602
Hey, I'm trying to execute a program on windows through PHP, the command is posted below. This doesn't seem to be running through the script at all, even though it works when the command is manually entered into the command prompt.
exec('C:\\ffmpeg -i ' . $movedfile . ' -acodec aac -ab 128k -vcodec libx264 -fpre C:\\ffmpeg\\share\\ffmpeg\\libx264-hq.ffpreset -crf 22 -threads 0 -wpredp 0' . $convertedfile);
Any suggestions?
Thanks!
EDIT: There are two slashes for path seperators, stack overflow only displays one though
© Stack Overflow or respective owner