Revision: 7135
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 9, 2008 15:35 by jdstraughan
Initial Code
$output=shell_exec('command 2>&1');
Initial URL
http://www.z01d.com/2008/07/08/how-to-call-linux-shell-commands-from-php-script/
Initial Description
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.
Initial Title
Linux shell commands from php script
Initial Tags
php, linux
Initial Language
PHP