RE: [PHP] How New Is <<<HERE?
| From: | Grant Walters | Date: | Sat, 27 Dec 2003 11:22:34 +0000 |
| Subject: | RE: [PHP] How New Is <<<HERE? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173359@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: stiano@optonline.net [mailto:stiano@optonline.net]
> Sent: Saturday, 27 December 2003 20:56
> To: webmaster@handyman.co.nz
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] How New Is <<<HERE?
>
>
> By "comment[ing] out line 11", I take it you mean making a comment of line
> 11. I just did--as this problem woke me from a night's sleep at just past
> 2:30 AM--and the error message is now:
>
> Parse error: parse error, unexpected $ in [path to file] on line 19
>
> Where will this end?
>
> Steve
>
> Original Message:
> -----------------
> From: Olwen Williams webmaster@handyman.co.nz
> Date: Sat, 27 Dec 2003 18:25:00 +1300
> To: stiano@optonline.net
> Subject: Re: [PHP] How New Is <<<HERE?
>
>
> Comment out line 11 to checkj it's the cause of the proble. If the
> error goes away then retype the line. I just tested this code and got
> no errors. It could be a character that is not what it seems.
>
> stiano@optonline.net wrote:
>
> > Cesar,
> >
> > Sorry to have taken so long to answer. My day got complicated. Anyway,
> > here's the code all over again, with the last changes I was advised to
> > make. I took out the line spaces and added line numbers. But first, the
> > latest error message:
> >
> > Parse error: parse error, unexpected T_VARIABLE in [path to file] on
> > line 11
> >
> > The code:
> >
> > 1 <html>
> > 2 <head>
> > 3 <title>
> > 4 persistence demo
> > 5 </title>
> > 6 </head>
> > 7 <body>
> > 8 <h1>Persistence Demo</h1>
> > 9 <form>
> > 10 <?php
> > 11 $txtBoxCounter = $_POST['txtBoxCounter'];
>
> --
For what it is worth, I cut and pasted your full html into a file.
Under PHP version 4.3.1
It runs from the command line without fault.
Apache 1.3.22
It runs without fault (increments properly).
What text editor are you using? I saved the code as both Unix and DOS format and it works for both.
I've attached my file for you to try. Hope it helps as I can't fault the code.
Regards
Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175 OR 4762661, CellPhone 025488265, ICQ# 23511989
"Never argue with an idiot. They drag you down to their level, then beat you with
experience."