Re: shell_exec question
| From: | Chris Blake | Date: | Wed, 08 Oct 2003 12:43:43 +0000 |
| Subject: | Re: shell_exec question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165414@lists.php.net to get a copy of this message | ||
On Wed, 2003-10-08 at 13:56, David Otton wrote:
> However, is there any reason you're not using readdir()?
>
> http://uk.php.net/manual/en/function.readdir.php
I`ve got a whole bunch of other stuff happening using shell_exec, eg
file searches etc....
I changed php.ini entry for safemode=on , restarted Apache, but that
didn`t help.....opendir() returns the following :
=========
Warning: opendir() [function.opendir]: SAFE MODE Restriction in effect.
The script whose uid is 0 is not allowed to access /home owned by uid 0
in /var/www/html/backups.php on line 8
Warning: opendir(/home/chris/PBPCBackup/) [function.opendir]: failed to
open dir: No such file or directory in /var/www/html/backups.php on line
8
=========
I got this error as well prior to changing the safe mode parameter...
Still lost, but searching :(
--
Chris Blake
Support Consultant
Office : (011) 782-0840
Fax : (011) 782-0841
Mobile : 083 985 0379
Website: http://www.pbpc.co.za
Women want their men to be cops. They want you to punish them and tell
them what the limits are. The only thing that women hate worse from a
man
than being slapped is when you get on your knees and say you're sorry.
-- Mort Sahl
14:40:40 up 21 days, 6:10, 3 users, load average: 0.32, 0.14, 0.25