Re: safe mode help



rdlowrey wrote:
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["file"]["tmp_name"],"/var/www/vhosts/
mydomain.com/intranet/httpdocs/lib/slips/in/$filename.pdf");

I get the following error:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The
script whose uid is 10001 is not allowed to access /var/www/vhosts/
mydomain.com owned by uid 0

However, my phpinfo() tells me that the master value for safe mode is
Off. Why do I keep getting SAFE MODE errors iwhen php tells me that
safe mode is turned off?

Pleeeease help. Thanks.


What's the local value for safe_mode in phpinfo()? Are you loading the phpinfo() page from the same directory as you're calling move_uploaded_file() (i.e. safe_mode could be set on a per-directory instance)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages