php xhtml

L

Leo154

Guest
how do i get the to <?xml ... thing to work with a .php doc?
 
Like so..
PHP:
<?php
  print "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
 <head>
..etc
;)
 
however, when i embed the style into the page <style></style> it works. but i dont want to do this. what is the problem? is it the chmod property?

and it works fine in internet explorer.
 
I am gonna start pushing for PHP.net to stop having the allow short open tags on. Its causing a lot of problems for customers, and would make programmers write more valid code, just like register_globals should ALWAYS be off.
 
erm.. okay.

but i've traced the problem to bieng with md's server (thanks speedy b). i'll ask him about it.
 
I dont see how a style tag would be messed cause of MD's server.
 
dont ask me... i put the stylesheet on brinkster and ev. works.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back