thurai Posted April 1, 2008 Share Posted April 1, 2008 When I load the following code fom We3schools in my webpage, Hosted by Lunarpages.com.My website link is http://www.ueog.org/index.php?pr=Presentationit gives me the following syntax error:Parse error: syntax error, unexpected T_STRING in PresentationSMILHTML.php on line 3 <?import namespace="t" implementation="#default#time2">I am using a form to display a button, which when clicked links to PresentationSMILHTML.php, which has the following code:<html xmlns:t="urn:schemas-microsoft-com:time"><head><?import namespace="t" implementation="#default#time2"></head><body><t:audiosrc="liar.wav"repeatCount="indefinite"type="wav" /></body></html>But the following code without the <?import namespace="t" implementation="#default#time2">stament worked okay.<html><head> <style>.t {behavior: url(#default#time2)}</style></head><body><img class="t" src="image1.jpg" begin="2s" /></body></html>My server defines smil and xml meme types.Because of this I am unable to have smil <seq>, <par> and audio.How can I eliminate this syntax error in my webpage?Regards,Thurai Link to comment Share on other sites More sharing options...
Ingolme Posted April 1, 2008 Share Posted April 1, 2008 Write it like this:<?php echo "<?import namespace=\"t\" implementation=\"#default#time2\">"; ?>And if you have an XML declaration do the same. Link to comment Share on other sites More sharing options...
thurai Posted April 1, 2008 Author Share Posted April 1, 2008 Write it like this:<?php echo "<?import namespace=\"t\" implementation=\"#default#time2\">"; ?>And if you have an XML declaration do the same.Hi Inglome, thanks. It worked very well. I appreciate it very much.regards,Thurai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.