I have recently purchased a ready made site as I am new to all things HTML CSS etc (although I am learning fast). Every time I have tried to go to the page I get this msg Parse error: syntax error, unexpected T_STRING in /home/a4616062/public_html/index.html on line 1. Here is the line in question <?xml version="1.0" encoding="iso-8859-1"?> Anyone give me the heads up please.

Recommended Answers

All 6 Replies

Can you copy and page the code so we can have a look. T_String error is usually a missing delimiter or closing tag. I would need to see the code.

I keep trying but even this post won't accept it maybe if I post just a little snippet of it, it might let me.

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"

"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Fully Automated Money-Making Mini Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="GetPaid $6.99 Mini-Site Package" />
<meta name="keywords"
content="minisites, mini website, Quick, Cash, Make money, online business, mini-site, earn cash, mlm, affiliate, create website, "
/>
<link rel="stylesheet" href="minisite.css" type="text/css"
media="screen,projection" />
</head>

Are you using php to display any of the code? Or are you only using html files?

Try commenting out this line: <?xml version="1.0" encoding="iso-8859-1"?>

commented: Really helpful +0

You beauty. Nice one mate that worked. Many thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.