how do I fix this error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

how do I fix this error?

Post by psychotomus »

Warning: rmdir(): SAFE MODE Restriction in effect. The script whose uid/gid is 9436/9436 is not allowed to access / owned by uid/gid 0/0 in /mounted-storage/home16a/sub002/sc18478-RGIJ/www.po2upload.com/my_files_delete.php on line 61

Code: Select all

rmdir("/uploads/" . $file);
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You're trying to remove a directory in the server root. Is that where the directory resides? Are you sure it's not in your document root?
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

not sure what your asking but heres a screen shot of the directory structure


http://www.po2upload.com/uploads/untitled.JPG
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

actually the correct error is this. i was trying to delete a file with rmdir

Warning: unlink(): SAFE MODE Restriction in effect. The script whose uid/gid is 9436/9436 is not allowed to access / owned by uid/gid 0/0 in /mounted-storage/home16a/sub002/sc18478-RGIJ/www.po2upload.com/my_files_delete.php on line 61

Code: Select all

unlink("/uploads/" . $file);
Post Reply