jammer1221
Programmer
Hi All,
I'm running IIS 5.1 on Win XP Pro, PHP 5.1.4, and I have some questions about exec/system. I have given the proper permissions to cmd.exe so PHP can talk to it, but, I am having trouble with PHP actually talking to it.
I want to run a small batch file which launches a different application.
Here's my current code:
I've also tried variants of this:
Any help is greatly appreciated!
Thanks,
Matt Powell
I'm running IIS 5.1 on Win XP Pro, PHP 5.1.4, and I have some questions about exec/system. I have given the proper permissions to cmd.exe so PHP can talk to it, but, I am having trouble with PHP actually talking to it.
I want to run a small batch file which launches a different application.
Here's my current code:
Code:
$convert=exec("cmd C:\\start.bat");
if ($convert) echo "File was successfully converted";
else echo "File failed to convert";
I've also tried variants of this:
Code:
exec("start 'mpeg' 'C:\\ffmpeg\\ffmpeg.exe -i C:\\Inetpub\\[URL unfurl="true"]wwwroot\\ffmpeg\\video.mpeg[/URL] C:\\testofsonversion.swf'");
Any help is greatly appreciated!
Thanks,
Matt Powell