Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

pciking the diff between a web submit from a site and a wrapper site submit

Hi i have a site that has a wrapper site in the mother sites.
ie abc.com has xyz.com set as a wrapper iniside abc.com.
now the web can find the xyz.com site from a link on the abc.com site or the xyz.com can also be foudn by goign directly to the xyz.com site. this is so that google can find the site by its self or web crawled from the abc.com mother site.
now what i need to do it to recognise the url so that i can tun on a secondary header logo so that if they are accesing from the abc.com site with the wrapper, it will get the abc.com logo on the top of the page, but if the site is access via xyz.com it will enable the secondary logo on the xyz.com site so that inside the wrapper it does not get 2 logos one on abc.com then the second on xyz.com while the wrapper is baing shown
ie http://www.abc.com/xyz.html  will not show the logo on the xyz site
were http://www.xyz.com will show the logo
ay ideas would be of assistance.
i
0
sydneyguy
Asked:
sydneyguy
  • 4
  • 4
1 Solution
 
Ray PaseurCommented:
Look at $_SERVER["HTTP_HOST"] -- print that out with var_dump().
0
 
Ray PaseurCommented:
And for future reference, when you wonder what variables are pre-set for you by PHP, you can run this little script to find them
<?php phpinfo();

Open in new window

0
 
sydneyguyAuthor Commented:
thanks ray hows life treating you over there
grry
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Ray PaseurCommented:
Life's pretty good right now, thanks!  Baseball season has started,  Easter weather was perfect, all good things...
0
 
sydneyguyAuthor Commented:
might be over your way in june to chicargo pensilvania and nth carolina. hope the weathers good
0
 
Ray PaseurCommented:
June is usually pretty good weather in those states.
0
 
sydneyguyAuthor Commented:
Look at $_SERVER["HTTP_HOST"] -- print that out with var_dump().
does not pick upt the parent wrapper loc
if i put this code on the indexpage of the child wrapper site it just picks up its self xyz.com
but if i go to xyz.com from the abc.com page tab it still gives me xyz.com instead of abc.com so i still cannot tell by putting it ont he indx page of the child xyz.com page
0
 
sydneyguyAuthor Commented:
thanks ray
got around it a differeent way by taking out banner header code from the joomla index site and then adding another banner to all the pages and on top of hte wraper page so problems got around and workd fine
thanks for all your support
garry
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now