I wish to execute external program, by passing arguments to it, and recive the errorlevel back to the PHP program. I have found that exec() equal to system(), but without echo, but didn't yet found how to get the errorlevel. Can anyone show me how? Thanks in advance.