home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Parse error on plain HTML page

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2332
Discussions: 200,944, Posts: 2,379,337, Members: 246,306
Old June 8th, 2004, 08:47 AM   Digg it!   #1 (permalink)
Member
 
peterwilkes's Avatar
 
Join Date: Jun 2003
Location: Stafford, UK
Posts: 229
Send a message via MSN to peterwilkes Send a message via Yahoo to peterwilkes
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
peterwilkes is offline   Reply With Quote
Old June 8th, 2004, 09:03 AM     #2 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
http://www.pmachine.com/forum/thread...17170_0_16_0_C

Try the php echo stuff in the last response.
muno is offline   Reply With Quote
Old 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.
vass0922 is online now   Reply With Quote
Old June 8th, 2004, 10:05 AM     #4 (permalink)
Member
 
peterwilkes's Avatar
 
Join Date: Jun 2003
Location: Stafford, UK
Posts: 229
Send a message via MSN to peterwilkes Send a message via Yahoo to 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.
peterwilkes is offline   Reply With Quote
Old June 9th, 2004, 08:05 PM     #5 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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"
__________________
USA Linux Users Group
OpenSUSE.us
crouse is offline   Reply With Quote
Old June 10th, 2004, 04:46 AM     #6 (permalink)
Member
 
peterwilkes's Avatar
 
Join Date: Jun 2003
Location: Stafford, UK
Posts: 229
Send a message via MSN to peterwilkes Send a message via Yahoo to peterwilkes
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.
peterwilkes is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with this php stuff SplitCo Webmastering and Programming 20 May 23rd, 2004 06:46 PM
PHP errors - undefined variable bwcc Webmastering and Programming 5 January 26th, 2004 12:38 PM
web system like phpnuke sixf00t4 Webmastering and Programming 14 October 27th, 2003 10:27 PM
Distributed Computing News RobRich Distributed Computing 40 August 2nd, 2003 04:38 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (161)
The disrespect of Obama by Russian .. (15)
Is It Just Me? (2918)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (11)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Multiple Restarts Required at Boot (0)
How to convert MP3's (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)


All times are GMT -4. The time now is 05:42 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28