The only thing that holds the code together is the routine <body> and
</body>, nothing else.

Secondly, can you give me url that contains various mailing list for
specific php needs?

Sorry to be a bother.


Thanks,

Scott

-----Original Message-----
From: Frank Bax [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INSTALL] Error trying to list images in a directory


At 08:11 AM 10/20/04, Scott Hamm wrote:

>While trying to learn Php/MySQL from "Php 5/MySQL Programming for the
>absolute beginner" book, I copied the exact code and yet ran into error
>saying:
>
>"Parse error: syntax error, unexpected $end in C:\Program Files\Apache
>Group\Apache2\htdocs\Calendar\Two\test.php on line 41"
>
>Line 41 is a line AFTER </html>
>
>I might be missing something?


Yes, a couple of things:

1)  This list is for php install problems, not php coding problems.
2)  You didn't include the source code for your test.  We know this for two 
reasons.
2A) your error message indicates error on line 41 and the source code only 
has 25 lines.
2B) You mention line 41 contains </html>, but sample code does not contain 
this line.

That said, a php parse error commonly reports a line number to be one 
higher than last line of php code when it cannot determine more accurately 
where the error is.

Frank 

Reply via email to