24 Sep 2017 
Support Center » Knowledgebase » FTP and uploading » Parse error: syntax error, unexpected T_STRING
 Parse error: syntax error, unexpected T_STRING
Solution Question:
We just set up a new website and when trying to start the process of uploading the website pages we get this message when visiting the site

Parse error: syntax error, unexpected T_STRING in /home/username/public_html/my_site_name/index.html on line 1

Answer:
You need to add a Mime Type via your domain control panel

Login via
(http://yourdomain.com/cpanel)
(replace yourdomain.com with your domain)

Go to 'Mime Types'

Enter these 2 lines of text in the input boxes (use copy and past)

text/html
charset=utf-8 .html


Click on Add and your site will now show


Here a sample of the mime type screen
http://support.internetplanners.com/mimetype/mime_type_adding.gif


What is a MIME type?

MIME stands for Multi-purpose Internet Mail Extensions. MIME types form a standard way of classifying file types on the Internet. Internet programs such as Web servers and browsers all have a list of MIME types, so that they can transfer files of the same type in the same way, no matter what operating system they are working in.

A MIME type has two parts: a type and a subtype. They are separated by a slash (/). For example, the MIME type for Microsoft Word files is application and the subtype is msword. Together, the complete MIME type is application/msword.

Basically it tells your browser how to read your site.



Article Details
Article ID: 175
Created On: 14 Aug 2010 10:31 AM

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options

Home |  Sign Up |  Products & Services |  Online Support |  Submit Ticket

Copyright © 1999-2008 by Internet Planners LLC. Read our Terms and Conditions. All rights reserved.