Re: Making sure an include file works

From: Date: Tue, 04 Mar 2008 17:05:51 +0000
Subject: Re: Making sure an include file works
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-270939@lists.php.net to get a copy of this message
On Tue, Mar 4, 2008 at 11:29 AM, Mike Potter <ssskibeh@gmail.com> wrote: > On Fri, Feb 29, 2008 at 2:25 PM, Daniel Brown wrote: > > On Thu, Feb 28, 2008 at 9:58 PM, Richard S. Crawford > > > 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. > > > > As far as I know, the only way to do that is via the CLI (or > > accessing the include file directly in the browser). > > I'm wondering why the include couldn't be given a dry run in a test > file, migrated to the live file if all goes well. Am I missing > something obvious? No, that would work fine in any case. In fact, code should always be thoroughly tested before going into production. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#270939) next »