If you do execute shell commands - have a look at the escapeshellcmd() and escapeshellargs() for security reasons.
You can also use the backtick operator which you might be familiar with (as a Linux person).
PHP has quite a lot of shell like commands that can be safely triggered from within the PHP application. I only use shell commands if there is absolutely no alternative - and then with great care about a) security what is passed in and b) failure control if the shell command fails.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.