Hi. I've written a site that works with files a lot. I want to provide
some sort of error catching so I'm thinking of putting each fopen and
file in an if statement like this:

if (fopen("file","r")) {
        // do code with file
}

Should I do this for *all* calls to fopen and file? Or just some, like
ones that write or append. What's the best programming practice.

-- 
Paul Smith
[EMAIL PROTECTED]
http://www.dostuff.net

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to