Barrucadu Established Member โ 20 โ Impact 64 100% 9 Feedback Apr 22, 2007 2K views #1 I've been wondering how to do this for quite a while, and when I figured it out, it seemed so obvious! I'll post is here in case it helps anyone: PHP: <?php $file = 'page.php'; if(!@include($file)){ die('<strong>Error</strong><br/>Required file "'.$file.'" could not be included.'); } ?>
I've been wondering how to do this for quite a while, and when I figured it out, it seemed so obvious! I'll post is here in case it helps anyone: PHP: <?php $file = 'page.php'; if(!@include($file)){ die('<strong>Error</strong><br/>Required file "'.$file.'" could not be included.'); } ?>