Return to Snippet

Revision: 2836
at April 25, 2007 14:47 by 1man

Initial Code
	$file = 'includes/';
	if(file_exists($file) && is_readable($file)) {

Initial URL

Initial Description
Simple way to check see if a file exists and is readable before you include it. Stops nasty error messages onscreen.

Initial Title
Check for Include Files in PHP

Initial Tags
php, error

Initial Language