0

I have recently moved my site to a new server. It was working fine on two other servers but on the new one I get the following error:

Parse error: syntax error, unexpected T_STRING in /home/a7247396/public_html/index.html on line 74

The code in question was written by somebody else as I am only really able to write HTML so despite Googling the error, I cannot see how to fix it. Here is the code which is for a drop-down menu.

<body onload="setButtons();">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<table border="0" cellpadding="0" cellspacing="0"><tr><td>
<a href="http:www.decdun.me.uk/" onmouseover="setOverImg('1','');overSub=true;showSubMenu('submenu1','button1');" onmouseout="setOutImg('1','');overSub=false;setTimeout('hideSubMenu(\'submenu1\')',delay);" target=""><img src="buttons/button1up.png" border="0" id="button1" vspace="1" hspace="1"></a>
<a href="*" onmouseover="setOverImg('2','');overSub=true;showSubMenu('submenu2','button2');" onmouseout="setOutImg('2','');overSub=false;setTimeout('hideSubMenu(\'submenu2\')',delay);" target=""><img src="buttons/button2up.png" border="0" id="button2" vspace="1" hspace="1"></a>
<a href="turntables.html" onmouseover="setOverImg('3','');overSub=true;showSubMenu('submenu3','button3');" onmouseout="setOutImg('3','');overSub=false;setTimeout('hideSubMenu(\'submenu3\')',delay);" target=""><img src="buttons/button3up.png" border="0" id="button3" vspace="1" hspace="1"></a>
<a href="digital.html" onmouseover="setOverImg('4','');overSub=true;showSubMenu('submenu4','button4');" onmouseout="setOutImg('4','');overSub=false;setTimeout('hideSubMenu(\'submenu4\')',delay);" target=""><img src="buttons/button4up.png" border="0" id="button4" vspace="1" hspace="1"></a>
<a href="*" onmouseover="setOverImg('5','');overSub=true;showSubMenu('submenu5','button5');" onmouseout="setOutImg('5','');overSub=false;setTimeout('hideSubMenu(\'submenu5\')',delay);" target=""><img src="buttons/button5up.png" border="0" id="button5" vspace="1" hspace="1"></a>
<a href="loudspeakers.html" onmouseover="setOverImg('6','');overSub=true;showSubMenu('submenu6','button6');" onmouseout="setOutImg('6','');overSub=false;setTimeout('hideSubMenu(\'submenu6\')',delay);" target=""><img src="buttons/button6up.png" border="0" id="button6" vspace="1" hspace="1"></a>
<a href="loudspeakers.html" onmouseover="setOverImg('7','');overSub=true;showSubMenu('submenu7','button7');" onmouseout="setOutImg('7','');overSub=false;setTimeout('hideSubMenu(\'submenu7\')',delay);" target=""><img src="buttons/button7up.png" border="0" id="button7" vspace="1" hspace="1"></a>

</td></tr></table>

Can anybody help me sort this out please?

Edited by nav33n: Use [code][/code] tags to wrap your code for easy readability.

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by Nuuk
0

Line 74 was numbered but for some reason the post has been edited with line numbers starting at 1.

The line in question is

<?xml version="1.0" encoding="UTF-8"?>

0

hmm I guess the <? is making this trouble, and my guess is that you have to deactivate short commands from your php.ini file.. I'm just saying not sure this solves the problem but I think it might.

0

Thanks Theighost. I have changed both the ?'s to /'s

ie </xml version="1.0" encoding="UTF-8"/>

and the site now appears to work OK!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.