I am using require_once in my php scripts, and I would like to know the correct way of writing the code so it handles errors if this fails.
At the moment, I just use require_once('included_file.php'); I'm thinking use this:
if (!@require_once('included_file.php')){
//log error, print nice error message, and exit;
}
Is this "good practice", or is there a different/better way to do it. I have read through this page ( http://us3.php.net/manual/en/language.operators.errorcontrol.php ) and see the use of OR DIE, but I am just not sure the best way to go.
Thanks!