Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

  1. Home >
  2. All Categories >
  3. Computers & Internet >
  4. Programming & Design >
  5. Resolved Question
jgdownloads jgdownlo...
Member since:
July 09, 2008
Total points:
111 (Level 1)

Resolved Question

Show me another »

Parse error: syntax error, unexpected T_STRING in *** on line 1?

Here is the code....

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-… xmlns="http://www.w3.org/1999/xhtml"><he… http-equiv="refresh" content="0;url= Site/Welcome.html" /></head><body></body></html>

What's wrong?

Additional Details

I fixed it =) ... I just had to go through and delete the first line on all of my .html's Thank you for the assistance though Seco!

5 years ago

Emissary by Emissary
Member since:
May 16, 2008
Total points:
11,161 (Level 6)

Best Answer - Chosen by Asker

That error is a php error - not html. However it likely means that in your php script (whatever it may be) you have used a " or ' quotation on the first line where it is not expected. Sorry but thats the best answer unless you provide the code thats relevant.
Asker's Rating:
4 out of 5
Asker's Comment:
He told me the most he could with the information that I gave. I'm sure if I included more information, he probably would've been able to assist me farther
i had the same problem thanks guys, you saved my day

Report Abuse

Rather than delete the first line, you should turn off PHP Short tags. This is why you're getting the error. You can do this in your php.ini file:

short_open_tag = Off

Report Abuse

Other Answers (0)

No other answers.

Answers International

Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. Click here for the Full Disclaimer.

Help us improve Yahoo! Answers. Send Feedback