Lunarpages Web Hosting Forum

Author Topic: HTML Syntax Error  (Read 5281 times)

Offline unite41

  • Intergalactic Cowboy
  • *****
  • Posts: 52
HTML Syntax Error
« on: March 29, 2008, 02:50:31 PM »
The following code gave the following syntax error.

it works fine in w3cschools website demo: http://www.w3schools.com/smil/smil_media.asp

Parse error: syntax error, unexpected T_STRING in mycode.php on line 3

<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
  <?import namespace="t" implementation="#default#time2">
</head>
<body><t:audio
src="http://www.ueog.org/media/PresentationP1.wav"
repeatCount="indefinite"
type="wav" /></body>
</html>

How can I eliminate this syntax error?

Regards,
Thurai

Offline voyageofthedolphins

  • Intergalactic Cowboy
  • *****
  • Posts: 59
Re: HTML Syntax Error
« Reply #1 on: June 17, 2008, 10:51:47 PM »
If its a .php file, the error is here:

<?import

Thats an opening PHP tag with no closing tag.
VOTD

Offline Vitalian

  • Spaceship Navigator
  • *****
  • Posts: 75
Re: HTML Syntax Error
« Reply #2 on: June 18, 2008, 08:49:27 AM »
You need to turn short_open_tag to off in your php.ini file in order to use XML in a php file.

Code: [Select]
short_open_tag = 0
That should turn it off.