adding PHP into xHTML problem.. please help.

Discussion in 'PHP' started by aqif_g, Feb 21, 2011.

  1. #1
    Hello,

    I have been working on redesigning a website. I did PSD then PSD to xHTML.

    My xHTML files were w3c valid markup language and valid CSS. I made sure its cross browser compatability.

    Now,

    After embedding this xHTML into a PHP script. I have found that layout in IE7 IE8 is a total mess. :(

    I have taken care of.. that my file starts with

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    and nothing is echoed before this.

    regards,
    aqif
     
    aqif_g, Feb 21, 2011 IP
  2. yohanip

    yohanip Well-Known Member

    Messages:
    350
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    try to turn on display error on your php config
     
    yohanip, Feb 24, 2011 IP
  3. aqif_g

    aqif_g Greenhorn

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Can you help, How to turn it on..

    Thnxs
     
    aqif_g, Feb 24, 2011 IP
  4. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #4
    Hard to say witout seeing the whole script.
     
    johneva, Feb 24, 2011 IP
  5. dddougal

    dddougal Well-Known Member

    Messages:
    676
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #5
    You need to post more details really.

    To turn the error reporting on, go into the php config file and set it. I can't see it being an error in your code though, you are probably just echo'ing something out incorrectly....A misplaced div or an unclosed tag or something.

    Give us more info man
     
    dddougal, Feb 24, 2011 IP
  6. ka4ok85

    ka4ok85 Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    For turning PHP errors just put these lines at the top of your index.php file:
    ini_set('display_errors',1);
    error_reporting(E_ALL & ~E_NOTICE);

    p.s. Don't forget to comment out any *error* options in .htaccess if you have one.
     
    ka4ok85, Feb 24, 2011 IP