I have been trying to let know know if the exec() command in php executes successfully or not so i can echo certain messages accordingly. I tried the following
exec()
According to PHP's exec quickref, you can pass pointers in to get the output and status of the command.
If you want to enumerate the possible errors, you can find the codes over at hiteksoftware