Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 01:56:37 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: HTML Syntax Error  (Read 674 times)
unite41
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


« on: March 29, 2008, 03: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
Logged
voyageofthedolphins
Spacescooter Operator
*****
Offline Offline

Posts: 39



« Reply #1 on: June 17, 2008, 11:51:47 PM »

If its a .php file, the error is here:

<?import

Thats an opening PHP tag with no closing tag.
Logged

VOTD
Vitalian
Spaceship Navigator
*****
Offline Offline

Posts: 75



« Reply #2 on: June 18, 2008, 09: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:
short_open_tag = 0
That should turn it off.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM