image description
Web hosting FAQ & Knowledge base

Hosted websites for 19,118,669 users all over the world!

Knowledge Base Articles

PHP Errors: Why I get ".. unexpected T_STRING ..." error?

You may get this error because all .html files are parsed as PHP here. So, if your .html file contains "<?" or "?>" tags/text (which shows for file parser that PHP code started), you get this error. This can happen with XML files if they are not using correct content type.

In order to fix this error you need to remove "<?" and "?>" symbols or entire tags with these symbols from your HTML page source or change your page’s extension from .html to .php


Go back
  • php
  • my sql
  • intel
  • cloudlinux
  • nginx
  • cloudflare
  • wordpress
  • 24/7 Live Support
  • Easy Website Builder
  • 2X Optimización de la Velocidad de WordPress
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Grab the limited time deal!
$ 1
95
/mo
$11.97
$5.85 for 3 months
Save 51%
Get started
Hostinger logo
Premium Hosting Black Friday Sale
arrow_right
arrow_left
Get started
keyboard_arrow_up Swipe Up
Hostinger logo

Limited time offer

Black Friday Sale

Get Hostinger’s Fast & Secure Web Hosting with an SSL Certificate for FREE!

arrow_right
arrow_left
Get started now
Close