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

6

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

1 answer

4

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.

    
05.07.2016 / 21:30