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. Quote Link to comment https://forums.phpfreaks.com/topic/56628-file-upload-problem-open_basedir-restriction/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.