Free Web Hosting Forum
Go Back   Free Web Hosting Forum > News and General Information > FAQ
Reload this Page Why I got "unexpected T_STRING" on my site?
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
chanh's Avatar
Administrator
chanh is on a distinguished road
 
Posts: 1,888
Join Date: Dec 2008
Default Why I got "unexpected T_STRING" on my site? - 06-18-2010, 02:08 PM

On 000webhost all html files are parse as PHP whether the extension is html or php and for those that use iWeb or similar which generate html file with the line 1 contain this code:

<?xml version="1.0" encoding="utf-8"?>

Since all html are parse as php and the code above use PHP short tag of <? ?> so it get parse as PHP code but the line is not a valide PHP code so you get the "unexpected T_STRING"

SOLUTION:
To fix this you either set your editor not to use short tag <? ?> for your xml line or don't generate that line or manually remove that line before your upload to your site on 000webhost or upgrade to paid hosting to hosting24.com
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com