note 12030 deleted from function.include by philip

From: Date: Fri, 02 Nov 2001 07:00:18 +0000
Subject: note 12030 deleted from function.include by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20275@lists.php.net to get a copy of this message
I now use the following include_strict()' instead of include(); because, as noted above, include () or die(); doesn't work as expected. Also, the suggestion above didn't work for me. function include_strict($filename) { $success = @include("$filename"); if (!$success) { die("<P>There's been a fatal error. Please email <A HREF=\"mailto:webmaster@austinchronicle.com\">webmaster@austinchronicle.com</A> with the following error message.<BR>We really appreciate your help! <BR><BR><SPAN CLASS=\"sanserror\">Could not include $filename</FONT>"); } }

« previous php.notes (#20275) next »