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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Campbell Sent: Friday, November 30, 2007 1:52 AM To: NYPHP Talk Subject: Re: [nyphp-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 _______________________________________________ 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
