php3-list | 199807

Re: [PHP3] Parse Error line 63 in a 62-line script? From: Cary Collett (caryc <email protected>)
Date: 07/31/98

This almost always means there is an unmatched curly brace or parenthesis.

Cary

Bob Bowker (bowker <email protected>) said:

> Hi --
>
> I have a 62-line script "main.php3" which is a traffic cop: it parses
> inputs and misc information, stores data, and at the end "includes" the
> appropriate .php3 script according to what was requested.
>
> /* example (line #s added) */
>
> 01 <?php
> 02
> 03 /* store inputs in MySQL */
> --
> 59 if ($one) {include "this.php3";}
> 60 elseif ($two) {include "that.php3";}
> 61
> 62 ?>
>
> The "include" files contain standard HTML stuff with a php3 function in the
> <HEAD> and a few <? .. ?> php3 code sections in the <BODY>.
>
> The appropriate included file is found, and starts - about half the page is
> displayed, no errors are displayed, then it stops. A "VIEW CODE" reveals
> "Parse error in main.php3 line 63" at the end of the code.
>
> I'm not even sure where to start looking for this one ... in main.php3? In
> the included script? Have I left something off the end of "main.php3" or
> the included scripts (like the "1;" at the end to keep PERL happy)?
>
> TIA -
>
> Bob Bowker
> bowker <email protected>
>
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
>
>

-- 
Cary Collett                                           cary <email protected>

To me, boxing is like ballet, except there's no dancing, no choreography and the dancers hit eachother.

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3