Quantcast
Channel: PHP exec() vs system() vs passthru() - Stack Overflow
Viewing all articles
Browse latest Browse all 6

PHP exec() vs system() vs passthru()

$
0
0

What are the differences?

Is there a specific situation or reason for each function? If yes, can you give some examples of those situations?

PHP.net says that they are used to execute external programs. see reference From the examples I see, I don't see any obvious difference.

If I were to simply run a script (bash or python), which function do you recommend me to use?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images