By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,640 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,640 IT Pros & Developers. It's quick & easy.

wait for result from exec

P: n/a
If I wish to run an external application with exec(), does the execution of
the PHP script halt until the external application has finished?
Jan 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Gunnar G wrote:
If I wish to run an external application with exec(), does the execution
of the PHP script halt until the external application has finished?
Hi,

Did you check the documentation?

http://nl2.php.net/manual/en/function.exec.php

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.

Regards,
Erwin Moller
Jan 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.