Hello

I have just recently changed my ISP and in the process of uploading my websites to the new provider.

Previously one of my websites worked fine, but now I am having problems with creating files.
The problems is that my new ISP has the safe_mode option switched on, and i am now getting the following error

"Warning: touch(): SAFE MODE Restriction in effect. The script whose uid is 10535 is not allowed to access /home/httpd/vhosts/boughsplace.co.uk/httpdocs/Nightout/Dddddd owned by uid 48 in /home/httpd/vhosts/boughsplace.co.uk/httpdocs/Nightout/upload.php on line 159
"

In the code I have a 'mkdir' command, then after i use the 'touch' command to create a file within that directory

Is there anyway of switching th safe mode of in PHP?

thanks
ian

    Ask your ISP. No, you can't do it yourself because that would invalidate the point of having safe mode at all.

      Contact your provider. Sounds like some files in your directory are owned by users who they shouldn't be.

      Ask them to fix the permissions on these files.

      Safe mode is a very good idea for shared hosting - it may inconvenience your application, but it also stops other peoples' from attacking you. Enjoy it.

      Mark

        Write a Reply...