Web Hosting Talk







View Full Version : PHP File Upload Function Problem


hostchamp
11-18-2002, 05:23 AM
Hello,

I am running PHP4.0.6 on Red Hat 7.1 .

Following is what my php.ini looks like;

open_basedir = /home/web
safe_mode = Off
user_dir = no value
upload_tmp_dir = no value

With the above customers are unable to use the php upload function, script says;

Warning: open_basedir restriction in effect

When i set open_basedir = no value the script runs.

My question is how can one use file upload function with open_basedir in effect?

Also is the above php configuration secured?

What can i do to make it secure without limiting php fuctions.

Viv

bitserve
11-19-2002, 12:25 PM
Try changing the value of upload_tmp_dir to a directory beneath the open_basedir value, and then create the directory.