Re: Making sure an include file works
| From: | tedd | Date: | Tue, 04 Mar 2008 15:52:08 +0000 |
| Subject: | Re: Making sure an include file works | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270914@lists.php.net to get a copy of this message | ||
At 6:58 PM -0800 2/28/08, 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.I'm not sure if this is what you are asking for, but occasionally I have an include file that just brings functions and sometimes I want to know if that file has any errors in it. As such, I simply add echo('a'); at the beginning of the file. If I run the script that includes that include and see an 'a' printed at the top of the page, then I know that the include has no syntax errors. Then it's simple to comment out that line. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com