[PHP] Re: safe mode

2003-02-18 Thread Nenad Djordjevic
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




[PHP] Re: Safe mode and safe_mode_exec_dir

2002-12-05 Thread James Hatridge

Hi Rodrigo et al...
On Thursday 05 December 2002 16:09, Rodrigo Borges Pereira wrote:
 Hello all,

 directly in /etc/php.ini doesn't work either. I noticed PHP was compiled
 with --with-exec-dir=/usr/bin, but i suppose that what we define in
 php.ini (at least) overrides that.

I had hell with safe_mode too. What I found out is that anything that is 
hardwired in by being compiled can NOT be overrode by php.ini. I would 
suggest for you to recompile PHP with everything turned off then use php.ini 
to set what you want. 

I did it this and now I'm able to run exec without problems. 

Hope this helps,

JIM 

-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] Re: Safe mode

2002-04-26 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Ashley M. Kirchner) wrote:

 IfModule mod_php4.c
   php_value include_path .:/usr/local/lib/php
   php_flag safe_mode On
   php_flag magic_quotes_gpc Off
   php_flag track_vars On
   php_flag track_errors On
 /IfModule
 
 And the safe_mode entry doesn't seem to have any effect what so ever.

Safe mode used the admin flag:

php_admin_flag safe_mode on

-- 
CC

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