hey guys i get the following error message when i use an upload script that is lifted straight out of the manual.
Warning: move_uploaded_file(): open_basedir restriction in effect. File(/data/sites/blahdeblah.org/www/web/web/photos/carrot.jpg) is not within the allowed path(s): (/data/sites/4778132264/:/data/sites/blahdeblah.org//usr/local/lib/php) in /data/sites/4778132264/www/web/web/photos/upload3.php on line 21
i think that the there is something wrong with the path specified in the move_uploaded_file(), but, if the path is actually correct, can anyone explain what the "open_basedir restriction in effect" means and how i might go around fixing it?
also i seem to be getting an error [0], which according to the manual suggests that all went well and the file was uploaded correctly.
oh, if it helps this is the script:
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) {
print "File is valid, and was successfully uploaded. Here's some more debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
id love some help with this one.... cheers
stew