php fopen returns false but file is readable/writable

abe

New Member
have a file that is readable and writable but fopen is returning false...\[code\]if(is_readable($file)) echo 'readable ';if(is_writable($file)) echo 'writable ';$fp = fopen($file, 'a+');var_dump($fp);\[/code\]result is\[code\]readable writable bool(false)\[/code\]Any ideas?sure it must be a permission thing but tried 777 on the file with same results.
 
Back
Top