Warning: file_exists() [function.file-exists]: open_basedir restriction in effec

#1

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/uploader/uploaded_files/1367098953-back arrow.png) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a7973951/public_html/uploader/upload.processor.php on line 36

No idea what this means! PLEASE HELP ME!!! Thanks :slight_smile:

this is my line 36 and a bit more…let me know if you need anything else!
[php]$now = time();
while(file_exists($uploadFilename = $uploadsDirectory.$now.’-’.$_FILES[$fieldname][‘name’]))
{
$now++;
}[/php]

Thanks again!

#2

Disable safe_mode or add /usr/local/apache/htdocs to your safe paths (in your php.ini, open_basedir none or open_basedir /usr/local/apache:/home:/usr/lib/php:/tmp). Or just upgrade to PHP 5.4 to get rid of the aberrations that all the safe_mode family of functions represent.