Re: Parse Error Suggestions?
| From: | Jason Wong | Date: | Mon, 18 Mar 2002 18:27:29 +0000 |
| Subject: | Re: Parse Error Suggestions? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88980@lists.php.net to get a copy of this message | ||
On Tuesday 19 March 2002 02:01, Mike At Spy wrote:
> > On Mon, 18 Mar 2002, Mike At Spy wrote:
> > > Anyone have any suggestions for getting better reporting on a generic
> > > Parse Error? Code is falling to the end of the script, and I can't
> > > find a problem anywhere.
> >
> > I'd guess you left a curly brace open. Try opening the file in an editor
> > that lets you balance your braces.
>
> I thought the same thing exactly - but I have gone over them a dozen times
> and I am getting nothing!
>
> In fact, shouldn't any script run before the error? i.e. - shouldn't a
> print or echo before any script runs produce something? Mine isn't!
The *whole* file gets parsed *before* any code is executed.
Check that you don't have any missing semi-colons (;) <-- no, that's not a
smiley.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Style may not be the answer, but at least it's a workable alternative.
*/