Forum Moderators: coopster

Message Too Old, No Replies

Why is corrupted design in IE?

         

toplisek

7:40 am on May 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have seen and tested many times. I have variable code like:
$PATH1 = "http://" . $_SERVER['HTTP_HOST']."/";
$PATH2 = $_SERVER['DOCUMENT_ROOT']."/";

and included file with code like:
PHP Code:
<?PHP @require_once($PATH1."en-US/footer/footer.php");?>
Issue is if I use PATH1 it will work nice design, but if I use $PATH2 it will be corrupted design within IE. I noticed in the past that image should be in the same line as TD (table) and influences design within IE. But I do not get it why influences DOCUMENT_ROOT variable with corrupted design as PATH is correct.

coopster

1:24 pm on May 21, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It depends on the context of use. $PATH1 is a url and $PATH2 is the file system. However, this should be the same in any browser, not just an issue in IE. I have a feeling something else is incorrect. Try viewing the source of the HTML output and run it through the W3 validator [validator.w3.org].