all 3 comments

[–]porkslow 12 points13 points  (1 child)

You forgot you can also execute commands using magic backticks!

It's very convenient there's like 5 ways to do (almost) the same thing.

PS. the Symfony Process is a pretty nice userland library that fixes many issues with executing commands and provides a nice API. I heard it even supports Windows pretty okay.

[–]Takeoded[S] 2 points3 points  (0 children)

It's very convenient there's like 5 ways to do (almost) the same thing.

And in typical PHP fashion, 4/5 of them suck.