Safe Mode? UID ..???

From: Date: Thu, 11 Oct 2001 04:23:41 +0000
Subject: Safe Mode? UID ..???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70756@lists.php.net to get a copy of this message
I am with some problems, my ISP enabled SAFE MODE and all my scripts are with problems... i made an example for testing ... if u can help me make the example work, i can make the site work again :) index.php ---- BEGIN --- <PRE> <? $dir = 'a'; echo 'umask: '.umask(0000)."\n"; echo 'umask: '.umask(0000)."\n\n"; echo "make dir '".$dir."'...\n"; echo mkdir($dir,0777)."\n\n"; echo "copy 'index.php' to '".$dir."'...\n"; echo copy('index.php',$dir.'/index.php')."\n\n"; echo "del '".$dir."/index.php'...\n"; echo unlink($dir.'/index.php')."\n\n"; echo "remove '".$dir."'...\n"; echo rmdir($dir)."\n\n"; ?> --- END --- Running (answer) ---BEGIN --- umask: 18 umask: 0 make dir 'a'... 1 copy 'index.php' to 'a'... 1 del 'a/index.php'... Warning: SAFE MODE Restriction in effect. The script whose uid is 3032 is not allowed to access a/index.php owned by uid 65534 in /www/belo18/public_html/teste/index.php on line 15 remove 'a'... Warning: RmDir failed (Directory not empty) in /www/belo18/public_html/teste/index.php on line 18 --- END --- </PRE> Daniel Roperto (48) 9992-4092

« previous php.general (#70756) next »