have a file that is readable and writable but fopen is returning false…
if(is_readable($file)) echo 'readable ';
if(is_writable($file)) echo 'writable ';
$fp = fopen($file, 'a+');
var_dump($fp);
result is
readable writable bool(false)
Any ideas?
sure it must be a permission thing but tried 777 on the file with same results.
Let’s try to get more information.
What does
print?
see also: http://docs.php.net/error_get_last