Re: Exec don't work
| From: | Greg Donald | Date: | Tue, 10 May 2005 20:42:39 +0000 |
| Subject: | Re: Exec don't work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214874@lists.php.net to get a copy of this message | ||
On 5/10/05, Juan Pablo Herrera <jpherrera@gmail.com> wrote:
> Hi!
> I using php version 4.3.10. I have a script that used the exec
> function. Well it script only work from shell, but not work form web
> browser.
> My php.ini:
> safe_mode Off Off
> safe_mode_exec_dir no value no value
> Have somebody experience in this problem?
Is it possible your mod_php is using a different php.ini than your cli php?
I use system() instead of exec(), I find it's rare than I don't want
to capture the resulting output of my commands.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/