Powered by Hostinger cloud
image description

Web hosting FAQ & Knowledge base

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
Please share & Like this page! This will motivate us to develop more & better free features!

Hosted websites for 15,977,915 users all over the world!

  • php
  • my sql
  • intel
  • cloudlinux
  • nginx
  • cloudflare
  • wordpress