/ Published in: PHP

The “2>&1″ bit tells to pipe the standard error to the standard output. Otherwise the standard error may not be outputted by the system and you won’t have a way to troubleshoot your script.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
URL: http://www.z01d.com/2008/07/08/how-to-call-linux-shell-commands-from-php-script/
Comments
