safe mode / directories

This is a discussion on safe mode / directories within the PHP Language forums, part of the PHP Programming Forums category; Hi, I created a directory with PHP mkdir (mode 0777). Then I try to move_ulpoaded_file() to move a file into ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-24-2004
Paul Schmidinger
 
Posts: n/a
Default safe mode / directories

Hi,

I created a directory with PHP mkdir (mode 0777). Then I try to
move_ulpoaded_file() to move a file into this directory. I get an error:

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script
whose uid is 1999 is not allowed to access
/home/www/ww4592/html/fs/PHP/Dateien/Bereich_1/NEUER_ORDNER owned by uid 33
in /home/www/ww4592/html/fs/PHP/File.php on line 57

The webspace is at a webhost-company, not on my own server. I think I
understand the restrictions of SAFE MODE, but I do not understand why a
script has another uid than a directory created by the very same script!

Is the error above the "normal" bevaviour if SAFE MODE is on?

If it is: That is a drastic limitation. If I say to a client "I need
webspace with PHP" and I get that SAFE MODE-stuff would it not be right to
say that that is no fully working PHP-Webspace? I mean a webspace that does
not allow a directory to be created and a file moved into it does not really
support PHP -- it's a joke! Any opinions?

Thanks and sorry for my maybe bad English,
Paul Schmidinger
-- www.eigelb.at


Reply With Quote
  #2 (permalink)  
Old 10-24-2004
lambroso@gmail.com
 
Posts: n/a
Default Re: safe mode / directories

that's a known php-bug. try to email hoster and ask him to disable
userid check in safe-mode...

Reply With Quote
  #3 (permalink)  
Old 10-24-2004
Pjotr Wedersteers
 
Posts: n/a
Default Re: safe mode / directories

Paul Schmidinger wrote:
> Hi,
>
> I created a directory with PHP mkdir (mode 0777). Then I try to
> move_ulpoaded_file() to move a file into this directory. I get an
> error:
> Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The
> script whose uid is 1999 is not allowed to access
> /home/www/ww4592/html/fs/PHP/Dateien/Bereich_1/NEUER_ORDNER owned by
> uid 33 in /home/www/ww4592/html/fs/PHP/File.php on line 57
>
> The webspace is at a webhost-company, not on my own server. I think I
> understand the restrictions of SAFE MODE, but I do not understand why
> a script has another uid than a directory created by the very same
> script!
> Is the error above the "normal" bevaviour if SAFE MODE is on?
>
> If it is: That is a drastic limitation. If I say to a client "I need
> webspace with PHP" and I get that SAFE MODE-stuff would it not be
> right to say that that is no fully working PHP-Webspace? I mean a
> webspace that does not allow a directory to be created and a file
> moved into it does not really support PHP -- it's a joke! Any
> opinions?
> Thanks and sorry for my maybe bad English,
> Paul Schmidinger
> -- www.eigelb.at


Ask host to set a more relaxed GID check


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0