We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

Medium Priority
252 Views
Last Modified: 2012-05-11
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
Comment
Watch Question

Most Valuable Expert 2011
Author of the Year 2014
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Most Valuable Expert 2011
Author of the Year 2014

Commented:
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

Author

Commented:
thanks ray hows life treating you over there
grry
Most Valuable Expert 2011
Author of the Year 2014

Commented:
Life's pretty good right now, thanks!  Baseball season has started,  Easter weather was perfect, all good things...

Author

Commented:
might be over your way in june to chicargo pensilvania and nth carolina. hope the weathers good
Most Valuable Expert 2011
Author of the Year 2014

Commented:
June is usually pretty good weather in those states.

Author

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

Author

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
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.