SitePoint Sponsor

User Tag List

Page 4 of 4 FirstFirst 1234
Results 76 to 89 of 89
  1. #76
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Do you have separate .php and .html versions of this page on your server so that we can compare them? Changing the extension from .php to .html or .htm in my browser throws a 404 error.


    Please post both URLs in your reply, along with IE7 screenshots of each (including the address bar showing the URL).

  2. #77
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Version of the Page
    HTML Versionof the Page

    View and Compare

  3. #78
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SiberianHuskey View Post
    PHP Version of the Page
    HTML Versionof the Page

    View and Compare
    If you remove the following lines from the htm version, then it will render the same in firefox and IE.

    PHP Code:
    <?php
    session_start
    (); //This should always be near the top
    $logging true;
    ?>
    For some reason, IE does not like UN-parsed PHP code before the <html> tag.

    Actually, if you place anything before the DOCTYPE, such as

    Code:
    <!-- This is a test -->
    Then IE will not recognize the doc type.

  4. #79
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The PHP version renders in IE7 similarly to later versions of IE and other modern browsers, with some differences of which you are probably already aware e.g. the h1 being partially hidden behind #header.

    The HTML version is messed up in IE7. This is because your server is not parsing the PHP code and the unparsed PHP code at the top of the document is throwing IE7 into Quirks Mode.

    This is confirmed if I view the PHP version (which looks OK in IE7) in IE9, and use the IE Developer Tools to render it in IE7 Browser Mode and switch the Document Mode to Quirks. The page looks messed up, like the HTML version. Switching Document Mode back to Standard makes it render OK again.

    So the problem is with the settings on your web server.

    Either the .htaccess configuration you have used to allow PHP to be parsed in .htm or .html files is in error, or perhaps your web host does not support it.

    Do you really need the file to have a .htm extension? If so, why?

  5. #80
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Steve that was it, I knew it had to do with the PHP.

    The PHP version renders in IE7 similarly to later versions of IE and other modern browsers, with some differences of which you are probably already aware e.g. the h1 being partially hidden behind #header
    The H1 is not hidden ?

    The HTML version is messed up in IE7. This is because your server is not parsing the PHP code and the unparsed PHP code at the top of the document is throwing IE7 into Quirks Mode.
    Correct, that code at the top was the problem.

    This is confirmed if I view the PHP version (which looks OK in IE7) in IE9, and use the IE Developer Tools to render it in IE7 Browser Mode andswitch the Document Mode to Quirks. The page looks messed up, like the HTML version. Switching Document Mode back to Standard makes itrender OK again.
    Looks OK in IE7 what don't you like ?

    So the problem is with the settings on your web server.

    Either the .htaccess configuration you have used to allow PHP to be parsed in .htm or .html files is in error, or perhaps your web host does not support it.

    Do you really need the file to have a .htm extension? If so, why?
    It parses the PHP to HTML correctly now ! I have to test one other thing, so far it's good. I don't need to it's not important, but I prefer it.

  6. #81
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SiberianHuskey View Post
    The H1 is not hidden ?
    In IE7, only the bottom of letters in the h1 text ("Contact") are visible, where they extend beneath #header.

    Looks OK in IE7 what don't you like ?
    You seem to misunderstand. I've simply described my method of testing, not voiced any like or dislike.

    It parses the PHP to HTML correctly now !
    Are you sure? If your server was parsing PHP in files with a .htm extension then the code you removed would not have appeared in the source of the HTML in the first place.

    Does the page actually contain any PHP code now? Perhaps you could post the full code for us to see.

  7. #82
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In IE7, only the bottom of letters in the h1 text ("Contact") are visible, where they extend beneath #header.
    It doesn't look like that on my end.

    Are you sure? If your server was parsing PHP in files with a .htm extension then the code you removed would not have appeared in the source of the HTML in the first place.

    Does the page actually contain any PHP code now? Perhaps you could post the full code for us to see.
    A link to a PHP file no PHP code directly.

  8. #83
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    If your reluctance to post the PHP code is due to secrecy or security, then this represents a good reason not to rely on parsing HTML as PHP. If your .htaccess file should ever be accidentally changed or deleted then the PHP code would be displayed in the page for the world to see.

    What is your objection to using a .php extension?

    Here's a shot of IE7.

    cs_ie7_standards.png

  9. #84
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is your objection to using a .php extension?
    I prefer too

    My screen cap of IE7. There is a difference it's not cut off.
    IECapture.JPG

  10. #85
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Whether viewed with the IE9 Developer Tools using IE7 document and browser mode, in IETester on both Windows 7 and XP, or a native IE7 on XP, the h1 is always partly hidden.

    Maybe you're viewing in IE9 Development Tools with IE7 browser mode and IE8 or 9 document mode.

    This has moved away from PHP so I'll leave it there.

  11. #86
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Viewing in IE8 before I end this thread.

  12. #87
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Victor you broke the page! I haven't done anything to do the page besides add a conditional comment and refreshed and it broke.

  13. #88
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,319
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by SiberianHuskey View Post
    Victor you broke the page!
    Victorinox hasn't touched your page.

  14. #89
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it working again, I didn't close a condition statement


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •