473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Jul 17 '05 #1
2 2347
that's a known php-bug. try to email hoster and ask him to disable
userid check in safe-mode...

Jul 17 '05 #2
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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Giobibo | last post by:
Hi. I want to send mail with the function mail(). I am on a shared server in SAFE MODE. When I send a mail I get the message: "SAFE MODE Restriction in effect. The fifth parameter is...
0
by: Yemi | last post by:
Hi There. I seem to be getting some inconsistent results when using passthru() in safe mode. They appear to be related to the fact that passthru should treat all command arguments as one single...
3
by: Jeremy Shovan | last post by:
What do I need to change to use the opendir() function when safe mode is in affect?? I have root access to the server and can make any changes neccessary except turn safe mode off Thanks in...
0
by: Pjotr Wedersteers | last post by:
(Suse 9.0, Apache 2.048, PHP 4.3.3 - all default install from SuSe ISO) I have in my wwwroot folder (/srv/www/htdocs) a folder called counters. I have embedded a page counter script into several...
4
by: pdav | last post by:
Hi! Is there any solution to create a directory with one script with mkdir(), and then write a file (or move an uploaded file) in this directory with another script? The problem is, that the...
2
by: Joseph S. | last post by:
Hi all, Consider this case: I have a free php hosting account (a LAMP host) with an account name (also the name of my directory) 'sample'. Under 'sample', I have php scripts which can create...
1
by: Sephi | last post by:
Hello, I'm trying to disable safe mode from my php installation. First because this functionality will be removed in PHP6, and because it's very restrictive and it's giving me headaches when...
5
by: rdlowrey | last post by:
Hi, I'm pulling my hair out trying to make this work and any help would be appreciated ... When I try to move the uploaded file: move_uploaded_file($_FILES,"/var/www/vhosts/...
7
by: bvdp | last post by:
I'm finding my quest for a safe eval() quite frustrating :) Any comments on this: Just forget about getting python to do this and, instead, grab my set of values (from a user supplied text file)...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.