Parse error on plain HTML page  | |
June 8th, 2004, 08:47 AM
|
#1 (permalink)
| | Member
Join Date: Jun 2003 Location: Stafford, UK
Posts: 229
| Parse error on plain HTML page
Hello
I have made a website and then uploaded it to my webspace. I tried to load the page and it comes up with the following error message... Parse error: parse error, unexpected T_STRING in /home/firtytoo/public_html/portfolio.htm on line 1
The page is plain HTML so I looked at line one on that page (in bold) and this is what I found... <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
I removed the line in bold and uploaded the page again and then it worked with no problems at all.
Is that first line causing problems with the web server? I tried in both IE and opera and did the same thing...
the web server is Apache 1.3.31 on some type of Linux.
Thanks,
Peter
__________________
Peter
peter@firtytoo.com
|
| |
June 8th, 2004, 09:03 AM
|
#2 (permalink)
| | Retired mostly.
Join Date: Oct 2001 Location: Finland
Posts: 5,144
| |
| |
June 8th, 2004, 09:44 AM
|
#3 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,386
|
remove the ?'s it should work then as well
Its not a critical tag, so removing it really wont' change anything.
I think its more for standards than anything.
What generated the code? This isn't hand written code.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
June 8th, 2004, 10:05 AM
|
#4 (permalink)
| | Member
Join Date: Jun 2003 Location: Stafford, UK
Posts: 229
|
Okay, I will try removing the question marks.
The code is done by dreamweaver, I cant be botherd to hand code these pages as it's too slow. Maybe is should make it database driven some time. |
| |
June 9th, 2004, 08:05 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
| Quote: |
Originally Posted by peterwilkes Okay, I will try removing the question marks.
The code is done by dreamweaver, I cant be botherd to hand code these pages as it's too slow. Maybe is should make it database driven some time. |
Well, it's not SLOW once you know what your doing Hand coding teaches you things you won't learn otherwise. So, I never considered it a "bother"  |
| |
June 10th, 2004, 04:46 AM
|
#6 (permalink)
| | Member
Join Date: Jun 2003 Location: Stafford, UK
Posts: 229
|
All sorted by the way, no more problems
I normally try to hand code web pages but sometimes I need a page done quickly and will use dreamweaver for that. |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |