NYCPHP Meetup

NYPHP.org

[nycphp-talk] Error from PHP system function

Nelly Yusupova nelly at cgim.com
Fri Nov 30 16:04:04 EST 2007


I am using the full path to the function so I don't think a PATH is
relevant.  Am I wrong??

Nelly. 

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of John Campbell
Sent: Friday, November 30, 2007 1:52 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Error from PHP system function

> 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
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php





More information about the talk mailing list