For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2004 > Re: [PHP-INSTALL] Error trying to list images in a directory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Error trying to list images in a directory
Frank Bax

2004-10-20, 4:01 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com