Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 02-13-2003, 11:44 AM xml version = 1.0
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
hello all,

i have created a site in xhtml and cos of this the xml version =1.0 line is there in the top of the page.

when i upload this page to the server and test it
i get the following error

Quote:
Parse error: parse error, unexpected T_STRING in /home/praveen/public_html/test/fireworks.html on line 1
if i remove this line. the page is displayed properly.

demo pages at :

http://www.webmasterscavern.com/test/fireworks.html (with the xml version line)

http://www.webmasterscavern.com/test/fireworks2.html (without the line)

thanks.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-13-2003, 05:09 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
Its because when using php the <? starts php into parsing. Unfortunately this statement with the xml version is not php so you must echo it out.

When you want to say this:
<?xml version="1.0" encoding="iso-8859-1"?>

Write this instead:
<?php echo('<?xml version="1.0" encoding="iso-8859-1"?>'); ?>

And you should stop getting errors.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 02-14-2003, 07:06 AM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
Dk,

Thank You.

This works fine..


Thanks a lot..
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to xml version = 1.0
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11938 seconds with 12 queries