php script. browser problem

Discussion in 'PHP' started by Superior, Jun 24, 2007.

  1. #1
    Superior, Jun 24, 2007 IP
  2. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #2
    ansi, Jun 24, 2007 IP
  3. Superior

    Superior Well-Known Member

    Messages:
    488
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    i can't understand what is this. please explain.
    my website is in PHP not in HTML. and it shows blank page in IE but fine in firefox.
    Thanks
     
    Superior, Jun 24, 2007 IP
  4. UnrealEd

    UnrealEd Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    w3 is thé site when it comes to (X)HTML standards. They have a (X)HTML validator, so you can validate your webpages to see if you're writing valid (X)HTML. ansi just validated your website using the w3 validator, and there were 127 errors in your html code.
    So the reason why IE isn't displaying the page is probably because it doesn't even recognizes the html on the page. You will have to fix all those errors if you want to have a decent (X)HTML webpage
     
    UnrealEd, Jun 24, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    You cannot make a website without HTML. PHP just generates your HTML and outputs it to the browser. PHP is on the server, while HTML is on the clients side. They're two completely different things.
     
    nico_swd, Jun 24, 2007 IP
  6. iRAY

    iRAY Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is likely to be caused by </head > used for two times, but I hardly recommend to clean up a generated HTML code with validators as posters before me already said.
     
    iRAY, Jun 24, 2007 IP
  7. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #7
    without HTML no page will be displayed :D
    If your page is displaying that means there is HTML in it.
    you can just simply add an echo in a page,but when you run that page you will see the browser automatically added <html>,<head>,<body> tags in it.with all those errors IE wont display a page.
     
    coderbari, Jun 24, 2007 IP
  8. Superior

    Superior Well-Known Member

    Messages:
    488
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Well i understand that no page can display with out HTML.
    so please tell me what exactly i have to do for this problem.
    Thanks all of you.
     
    Superior, Jun 25, 2007 IP
  9. UnrealEd

    UnrealEd Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Validate your html document again with the W3 Validator:
    http://validator.w3.org/
    A lot of errors will appear, you will need to fix all of them. Try reading some tutorials on XHTML to make sure you know how you can fix it.

    If it then still doesn't work, then you should give some more informatoin on what you're doing on the photo gallery page (are there serversided scripts running on that page?)
     
    UnrealEd, Jun 26, 2007 IP