/    Sign up×
Community /Pin to ProfileBookmark

Why is corrupted design with changing PATH?

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:

[code=php] <?PHP @require_once($PATH1.”en-US/footer/footer.php”);?> [/code]

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.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...