Warning: unlink() [function.unlink]: open_basedir restriction in effect. File() is not within the allowed path(s):
is what i'm getting for the code
if (file_exists($thumb)) {
echo "<b>$thumb</b>";
$fh = fopen($thumb, 'w') or die("can't open file");
fclose($fh);
unlink($myFile);
}
I can confirm that the path of $thumb is correct.
Any fixes?
Thanks in advance.
$myFile
? Can you confirm that it is correct?realpath($thumb)
. If it's not within the allowedopen_basedir
then reconfigure your php.ini.