kdreg Posted June 21, 2007 Share Posted June 21, 2007 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. Link to comment https://forums.phpfreaks.com/topic/56628-file-upload-problem-open_basedir-restriction/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.