wait for result from exec

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gunnar G

    wait for result from exec

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

    #2
    Re: wait for result from exec

    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?



    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


    Comment

    Working...