Web Hosting Forum | Lunarpages
News: Server Migrations to San Diego: Deneb, Felix and Tsohea are moving to San Diego starting Tuesday, December 30, 2008 at 10pm Pacific. They will complete their moves Friday night, January 2, 2009

Isis, Seth and Ez-web-n-mail will move physically on Friday, January 2, 2009

Please see the forum posts at http://www.lunarforums.com/lunarpages_web_hosting_server_information-b54.0/

+ Submit Your Own Web Site for the January 2009 Site of the Month Contest!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 04:41:49 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: HTML Syntax Error  (Read 803 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
Intergalactic Cowboy
*****
Offline Offline

Posts: 57



« 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.6 | SMF © 2006-2008, Simple Machines LLC

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