Re: Making sure an include file works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux