Jump to content

File Upload Problem... open_basedir restriction


kdreg

Recommended Posts

I tried t upload an image and got this error message:

 

Warning: copy() [function.copy]: open_basedir restriction in effect. File(/1.jpg) is not within the allowed path(s): (/home/foobar/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/foobar/public_html/upload.php on line 51

 

Here's line 51:

 

				// Store the orignal file
			copy($photos_uploaded['tmp_name'][$counter], $images_dir."/".$filename);

 

 

What can I do differently to get around this message, which from what I understand from searching is a security measure by my host?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.