Reply to Re: exec returns -1

Your name:

Reply:


Posted by Gordon Burditt on 04/17/06 00:10

>I've narrowed the code to a problem with php/iplanet on linux. When I
>run the following code from the command line "$status" comes back as
>"0" as it should. However when I hit it with a browser, status is "-1".
>Im guessing it has something to do with the way iplanet is invoking
>php, or how php was compiled. Oddly enough I have the same setup
>running on windows with php 4&5 and it always returns "0". Lucky for me
>I suppose... Anyone know how to fix this? Is it as simple as
>recompiling with additional options?

Where is the executable for the "echo" command? (answer for both
setups). Is the directory the executable for the "echo" command
is in listed in $PATH (answer for both setups)? Is safe mode on,
and if so, is the executable for "echo" present in a directory
listed in safe_mode_exec_dir (answer for both setups)?

Note that I don't see anything in the description of exec() that
says you can use shell builtin commands (just as you can't on the
C exec() function).

Gordon L. Burditt

[Back to original 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

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