By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

safe mode

P: n/a
md
hi!
I have a problem with my php script.
In this script I create a directory. When I then try to
enter this directory (for example read its contens)
I get an error like:
Warning: SAFE MODE Restriction in effect. The script whose uid is XXX is not allowed to access
/home/students/... owned by uid YYY in /home/students/...
(edited)

In manual for chdir its written:
"Note: When safe mode is enabled, PHP checks whether the directory in which you are about to operate
has the same UID (owner) as the script that is being executed."

So : my script has my UID and created dir has UID of httpd.
What to do in order to be able to read and write to this dir?

Safemode is enabled but I cannot change it.

TIA
md
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
md
> I have a problem with my php script.
In this script I create a directory. When I then try to
enter this directory (for example read its contens)
I get an error like:
Warning: SAFE MODE Restriction in effect. The script whose uid is XXX is
not allowed to access /home/students/... owned by uid YYY in
/home/students/...
(edited)

In manual for chdir its written:
"Note: When safe mode is enabled, PHP checks whether the directory in
which you are about to operate has the same UID (owner) as the script
that is being executed."

So : my script has my UID and created dir has UID of httpd.
What to do in order to be able to read and write to this dir?

Safemode is enabled but I cannot change it.

I already found the solution to my problem - but let me know if you know a better way for this:

http://ilia.ws/archives/18_PHPs_safe..._security.html

md
Jul 17 '05 #2

P: n/a
md <i.*********@interia.pl> wrote or quoted:
http://ilia.ws/archives/18_PHPs_safe..._security.html


What a winge! ;-)
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.