PHP exec Return Error Messages
Contents
exec
exec
This function is for executing OS command in PHP.
exec Error
| |
Imporant
Above the command
IMPORTANT!!
Maybe you think you can get error messages from the
BUT IT’S NOT!!
none-exist-command occurs an error because it’s not exist command.IMPORTANT!!
Maybe you think you can get error messages from the
$output.BUT IT’S NOT!!
Return Error Messages
| |
2>&1
If you want to get error messages, you have to append
2>@1 option the command.
CozyFex