Detailed error on fopen

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-03-18T13:48:37Z Indexed on 2010/03/18 13:51 UTC
Read the original article Hit count: 359

Filed under:

I'm using fopen to read from a file

$fh = fopen($path, 'r') or die('Could not open file');

Now I contantly get error Could not open file. I checked the file path and even changed the permissions of the file to 777. Is there a way I can get a detailed error report as why the file can't be opened similar to mysql_error()?

© Stack Overflow or respective owner

Related posts about php