Re: Making sure an include file works
| From: | Al | Date: | Sat, 01 Mar 2008 20:18:04 +0000 |
| Subject: | Re: Making sure an include file works | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270808@lists.php.net to get a copy of this message | ||
Put this at the top of of your include files
// ******************* Debug Only ***************/
if(TRUE) // TRUE for debug only
{
ini_set("display_errors", "on"); //use off if users will see them
error_reporting(E_ALL);
echo '<span style="color:red">Error display and logging on</span> ';//This reminds you to turn it off when done } Richard S. Crawford wrote:
I'm trying to figure out a way to make sure an included PHP file has no syntax errors before actually including it as a part of project. Is this even possible? I'm running into brick walls.