Re: shell_exec with pipes
| From: | Jason Wong | Date: | Thu, 13 Nov 2003 07:11:48 +0000 |
| Subject: | Re: shell_exec with pipes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169443@lists.php.net to get a copy of this message | ||
On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote:
> ok, i am running the script like this now:
[snip]
This seems to suggest that shell_exec() does not like your command and is not
executing it, so:
Try tackling it logically, step-by-step:
> > Have you:
> >
> > 1) Turned on full error reporting?
>
> How do i turn that on?
In php.ini, once you've enabled it, restart webserver and see what errors, if
any, you get.
> > 2) Checked that (i) you're not running in safe_mode, or (ii) if you are,
> > that
> > you are allowed to access those executables?
>
> i am running in safe mode.
What is the answer to (ii)?
Are you able to execute any shell programs/commands at all? Hint try something
simple like shell_exec('touch /tmp/testfile') and see whether /tmp/testfile
is being created.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I can't stand squealers; hit that guy.
-- Albert Anastasia
*/