note 12030 added to function.include.php

From: Date: Mon, 19 Mar 2001 19:00:50 +0000
Subject: note 12030 added to function.include.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12549@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>"); } } http://www.php.net/manual/en/function.include.php

« previous php.notes (#12549) next »