Is there a way to do something like this:
Code: Select all
@require("somefile.php") or die("File not found :(");Code: Select all
@include("somefile.php");
if (!defined(constant)) die("My favorite error message");Is there an even simpler way to react on a failed include or require, that does not depend on custom defines in the included file?