Hello Wilbert,

I had same problem and I do not have good news for you.

Problem is caused by different owner of script file and file (or
folder) which need to be manipulated by this script file. To change
owner from script (chown) you must have `root` privilege.

I download files which have different owner (usually those files are
generated by some script). Then I upload those files again and owner
is same like other uploaded files.

________________________

Best regards,
 Nenad Djordjevic                           mailto:[EMAIL PROTECTED]
   
   Diyomi Soft
   http://www.diyomisoft.com/


Monday, February 17, 2003, 12:50:40 PM, you wrote:

WE> Hi all


WE> I'm having troubles with the safe mode. My ISP has safe mode ON.

WE> Now i'm busy accessing files, deleting uploaded files, moving them and so
WE> on. Different actions are performed by different scripts.
WE> I want to make use of functions like stat() and so on, but each time I get
WE> the warning:

WE> Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in
WE> effect. The script whose uid is 884 is not allowed to access
WE> /opt/guide/www.company.com.nl/HTML/myDir owned by uid 99

WE> Since safe mode is ON and I can't change it in php.ini of my ISP I am
WE> wondering what to do now?
WE> There is this whole lot of file functions which I wanna use, but each time
WE> I'm getting the warning or warnings that look like the one above.

WE> I already tried ini_set("safe_mode",0) but since the script is already
WE> accessed this action comes too late and even more important, according to
WE> the manual this entry can be set only in php.ini or httpd.conf
WE> (PHP_INI_SYSTEM) .

WE> Does anybody know a safe workaround for this phenomenon? Any tips are most
WE> welcome!

WE> Regards Wilbert Enserink




WE> ------------------------- 
WE> Pas de Deux 
WE> Van Mierisstraat 25 
WE> 2526 NM Den Haag 
WE> tel 070 4450855 
WE> fax 070 4450852 
WE> http://www.pdd.nl 
WE> [EMAIL PROTECTED] 
WE> -------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to