php xhtml

Discussion in 'Web Design & Coding' started by Leo154, Jun 12, 2003.

  1. Leo154

    Leo154 Guest

    how do i get the to <?xml ... thing to work with a .php doc?
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    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
    ;)
     
  3. Leo154

    Leo154 Guest

    yeah, i got it. thanks
     
  4. Leo154

    Leo154 Guest

  5. Leo154

    Leo154 Guest

    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.
     
  6. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    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.
     
  7. Leo154

    Leo154 Guest

    erm.. okay.

    but i've traced the problem to bieng with md's server (thanks speedy b). i'll ask him about it.
     
  8. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    I dont see how a style tag would be messed cause of MD's server.
     
  9. Leo154

    Leo154 Guest

    dont ask me... i put the stylesheet on brinkster and ev. works.
     
  10. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    weird
     
  11. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    are you sure you put the path correct?