How many terminal instances are called for each exec () function call in PHP?

Posted on

Coding Problem :

If I call a file, which contains the exec() function, on two different terminals, will the second start executing only when the first one ends, or do they work independently?
    

asked by anonymous 05.07.2016 / 21:03

Answer :


Answer 1 :

For each call to “exec” PHP you create a new shell instance in a Linux environment, with its own environment variables.

In Windows I think the behavior is similar.

    


Answer 2 :


Answer 3 :


Answer 4 :


Answer 5 :


Answer 6 :


Answer 7 :


Answer 8 :


Answer 9 :

Leave a Reply

Your email address will not be published.