NYCPHP Meetup

NYPHP.org

[nycphp-talk] Error from PHP system function

John Campbell jcampbell1 at gmail.com
Fri Nov 30 01:51:43 EST 2007


> I am using a system function to execute a command via php.  We have recently
> changed servers and after the change, the system function started to fail
> with an error return value of 126.
>
> I can execute the command that I'm passing to the function at the server
> command line and everything runs successfully.
>
> Does anyone know what the return number 126 means?

I think it means command not found.  I suspect the problem is because
the php environment is different than the command line environment.
Check the PATH.

Regards,
John Campbell



More information about the talk mailing list
Automatic Email Organization without missing anything!