ferror ??
From: Mark (mw_at_ANGRYLanfear.com)
Date: 01/31/05
- Next message: Jerry Gitomer: "Re: How to maintain a remote database?"
- Previous message: Janwillem Borleffs: "Re: MySQL help"
- Next in thread: DH: "Re: ferror ??"
- Reply: DH: "Re: ferror ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Jan 2005 15:58:03 -0800
hello!
in the interests of performing robust error checking, i'm trying to write
file code along the following lines:
$file = @fopen( ... );
if ($file === NULL)
{
// show error mesage here.
}
Unfortunatley, PHP does not seem to have something like the ferror()
function to find out exactly why the file open failed.
any other alternatives? I don't want to print the ugly warnings on the
screen, as the end user doesn't really care why
/home/httpd/webapps/webapp1/logs/blahblah.log couldn't be accessed.
any suggestions? i suppose i could have PHP write errors to log files and
go snooping through those, but that's a bit unattractive.
domo.
mark.
-- I am not an ANGRY man. Remove the rage from my email to reply.
- Next message: Jerry Gitomer: "Re: How to maintain a remote database?"
- Previous message: Janwillem Borleffs: "Re: MySQL help"
- Next in thread: DH: "Re: ferror ??"
- Reply: DH: "Re: ferror ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]