1

I am trying to execute a program using a system call inside a php file like so:

$newname = 'C:\Users\Farzad\Desktop\upload\test.ppt' ;
$program = '"C:\Program Files (x86)\Softinterface, Inc\Convert PowerPoint\ConvertPPT"';
$input = ' /S "'. $newname .'"' 
$destination = ' /T "C:\Users\Jack\Desktop\upload\\"';
$switch = ' /C 18';
$command = $program . $input . $destination . $switch;
system($command);

For some reason, the program enters an infinite loop (the browser never stops loading)

1 Answer 1

1

Since system is a blocking function, I'm guessing that it is simply waiting for the command you executed to finish running. It's not in an infinite loop.

Sign up to request clarification or add additional context in comments.

2 Comments

Easy way to test would be running it directly from the command line.
It doesn't take too long when running it directly from the command line prompt.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.