FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » manually create/manage new themes
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: some really important questions [message #17990 is a reply to message #17989] Wed, 28 April 2004 15:36 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
To bypass safe_mode you need to do a little trick Smile

You need to create a simple file upload form, and upload your PHP scripts via that form. That'll cause the ownership of the script to become the same as the webserver. Now this little script can read/write/create files that are owned by the webserver bypassing silly "Safe Mode". Alternatively you can use the copy() function to make a copy of the script, that'll be the same as uploading it.

The problem you've described is due to the fucked up nature of safe_mode. Your script mkdir.php is owned by you (you:you) when you create a directory it's ownership is httpd:httpd cause the script was ran via the webserver. When you try to create another directory inside the initial directory, "safe mode" is triggered because the owner of mkdir.php != owner of the directory inside which you are trying to create directory #2.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read new messages?
Next Topic: protect users against spam bots collecting emails
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:46:39 GMT 2024

Total time taken to generate the page: 0.04522 seconds