exec not working
Posted: Sun Apr 03, 2011 5:19 pm
I know this is a common problem, yet I'm one more beginner experiencing it.
I tried to use open source software to convert Word and PDF uploads to HTML. When invoked from a shell, the program works fine. When I try to invoke it from Firefox, I get it waiting on the command forever. My PHP safe mode is off, and the full control is granted to the System user on the executable. I also set my firewall exception, to no result. My code is below; those three lines shouldn't be an issue.
Is it just another open source software reliability issue, or should I change something in the code?
Thanks.
I tried to use open source software to convert Word and PDF uploads to HTML. When invoked from a shell, the program works fine. When I try to invoke it from Firefox, I get it waiting on the command forever. My PHP safe mode is off, and the full control is granted to the System user on the executable. I also set my firewall exception, to no result. My code is below; those three lines shouldn't be an issue.
Code: Select all
<?php
$command='convertdoc /S resume_sd.doc /T resume_new.html /M2 /C2 /F9';
echo $command;
echo exec($command);
?>
Thanks.