/ Published in: PHP

Simple way to check see if a file exists and is readable before you include it. Stops nasty error messages onscreen.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $file = 'includes/filename.inc.php'; include($file); } ?>
Comments
