Re: Parse errors
| From: | tamouse mailing lists | Date: | Mon, 19 Mar 2012 08:42:42 +0000 |
| Subject: | Re: Parse errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317125@lists.php.net to get a copy of this message | ||
On Sun, Mar 18, 2012 at 2:18 PM, Tim Streater <tim@clothears.org.uk> wrote:
> On 18 Mar 2012 at 17:46, Simon J Welsh <simon@welsh.co.nz> wrote:
>
>> This is expected. The error doesn't occur to the second file is included, so
>> everything in the first included file is parsed and run before execution is
>> halted.
>
> Simon,
>
> Thanks for that. Looks like I should be able to catch most places where an error might occur.
I tend to do a syntax check with php -l on the command line after
editing to see whatever errors might occur before I run the code on
the web site.