Re: Making sure an include file works

From: Date: Fri, 29 Feb 2008 03:11:10 +0000
Subject: Re: Making sure an include file works
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270684@lists.php.net to get a copy of this message
On Thu, Feb 28, 2008 at 9:58 PM, Richard S. Crawford < rscrawford@mossroot.com> 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. > > The include itself or the contents in the include file? If you use require() instead of include(), your script will error out if there are any issues with the inclusion of the file. -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

« previous php.general (#270684) next »