You are here: Re: [PHP] exec command fails in php, works in the command line « PHP « IT news, forums, messages
Re: [PHP] exec command fails in php, works in the command line

Posted by John Nichel on 09/21/05 19:00

ernst@newdisorder.com wrote:
> If the web server didn't have permission to execute the app, it would
> NEVER execute the app, not execute it some of the time. In fact, it
> ALWAYS executes the app, it just doesn't always allow it to finish.
> I log all attempts to run these apps in order to debug, so I know that
> the command as passed from php will work in the command line. I copy
> and paste the command from the log and it runs, even though it didn't
> complete execution when called from php.

What do the logs say??

> I have increased several parameters in php.ini, including memory limit
> and allowed execution time. Nothing has helped. The only thing that
> helps is if I wrap the app I want to run in a perl script and call the
> perl script from php. That works more of the time, though it still
> often breaks.

Maybe the problem's not php but Apache (or whatever webserver you're
using), as it has limits in place for these items too.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация