wait for result from exec

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
If I wish to run an external application with exec(), does the execution of
the PHP script halt until the external application has finished?

Re: wait for result from exec

Gunnar G wrote:

Quoted text here. Click to load it


Did you check the documentation?


Look at the notes:
Note: If you start a program using this function and want to leave it  
running in the background, you have to make sure that the output of that  
program is redirected to a file or some other output stream or else PHP  
will hang until the execution of the program ends.

Erwin Moller

Site Timeline