Parse error at the end of document

General discussions related to php

Moderators: macek, egami, gesf

oyinloa
New php-forum User
New php-forum User
Posts: 2
Joined: Sun Jul 13, 2003 3:28 am
Location: UK
Contact:

Parse error at the end of document

Postby oyinloa » Fri Jul 18, 2003 4:54 pm

I'm totally puzzled. Please help.

I'm getting a parse error in the last line of my document - Line 664



Code: Select all

<!--DWLayoutTable-->
        <tr>
          <td width="137" height="114">&</td>
        </tr>
      </table></td>
  </tr>
</table>
  </body>
Line 664   <!-- InstanceEnd --></html>


The page validation states ' no starting tag found for "html" or it was closed too many times.

Is this the problem? If it is what is a starting tag and how do I fix this.

If its not the problem what could it be?

Lola 8O

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Fri Jul 18, 2003 10:03 pm

This ought to be in the HTML forum, since it's not a PHP question. First off, what validator are you using, and what're you trying to validate it as? (Transitional? Strict?) What the error means is that you don't have a <html> tag at the top of your document, or you have more than one </html> tag in the document. But, since you've only given us the very bottom of your document, I can't tell if this is the case. It looks like you're using Dreamweaver to edit, though, which ought to keep your tags sorted out pretty well, but a word to the wise: If you build your pages in Dreamweaver, don't bet on them validating. At all. I believe that Dreamweaver MX is better at this, but I don't know how much better. The bottom line is that the HTML that Dreamweaver outputs is pretty ugly, and if you manage to get HTML that validates, you can consider yourself very, very lucky.

User avatar
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Postby pootergeist » Sat Jul 19, 2003 1:42 am

if the parse error is returned through the php interpreter, it means you have a missing } closing brace somewhere within the php code.

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Parse error at the end of document

Postby WiZARD » Sat Jul 19, 2003 2:22 am

Hi Lola!
as i understand, you work with DreamWeaver and PHP.....
can you give a link at code file (.ZIP)?


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest