Code Comments
Programming Forum and web based access to our favorite programming groups.Is it possible to store the URL as seen in the navigation bar e.g. $page = ?? So that I can do a test and decide which page to load in which frame. E.g. if URL is www.main1.com then the code would know what pages to load, relevant to main1 if the URL is a parked domain associated to the same space, e.g. www.main2.com the code could then load different pages in the frameset
Post Follow-up to this messagePS. I can do it with javascript : page = (self.location.href =="http://main1.com/index.htm") ? "main1subpage.htm" : "main2subpage.htm"; But would like to use PHP as people out there may have java disabled. ------------------------------------------------------- "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote in message news:UoM9e.70297$3Q7.4891779@phobos.telenet-ops.be... > > Is it possible to store the URL as seen in the navigation bar > e.g. > $page = ?? > > So that I can do a test and decide which page to load in which frame. > > E.g. if URL is www.main1.com > > then the code would know what pages to load, relevant to main1 > > if the URL is a parked domain associated to the same space, e.g. > www.main2.com > > the code could then load different pages in the frameset >
Post Follow-up to this messagePeter Van Hove wrote: > > But would like to use PHP as people out there may have java disabled. > Java != javascript > ------------------------------------------------------- > "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> > wrote in message news:UoM9e.70297$3Q7.4891779@phobos.telenet-ops.be... try $url=strlen($_SERVER['SSL_CIPHER']) ? 'http' : 'https'; $url.='//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; C.
Post Follow-up to this messageNice. It seems to identify https instead of http but the rest looks ok. ------------------------------------------------------- "Colin McKinnon" <colin.deletethis@andthis.mms3.com> wrote in message news:d48867$gpr$1$8300dec7@news.demon.co.uk... > Peter Van Hove wrote: > > > Java != javascript > > > try > > $url=strlen($_SERVER['SSL_CIPHER']) ? 'http' : 'https'; > $url.='//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; > > C.
Post Follow-up to this messagePeter Van Hove wrote: > Nice. > It seems to identify https instead of http but the rest looks ok. > debugging costs extra. C.
Post Follow-up to this message> debugging costs extra. In that case ... The second line needs a colon (just before the two slashes) ;-) > $url.='://' .....
Post Follow-up to this messagePS. I can do it with javascript : page = (self.location.href =="http://main1.com/index.htm") ? "main1subpage.htm" : "main2subpage.htm"; But would like to use PHP as people out there may have java disabled. ------------------------------------------------------- "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote in message news:UoM9e.70297$3Q7.4891779@phobos.telenet-ops.be... > > Is it possible to store the URL as seen in the navigation bar > e.g. > $page = ?? > > So that I can do a test and decide which page to load in which frame. > > E.g. if URL is www.main1.com > > then the code would know what pages to load, relevant to main1 > > if the URL is a parked domain associated to the same space, e.g. > www.main2.com > > the code could then load different pages in the frameset >
Post Follow-up to this messageNice. It seems to identify https instead of http but the rest looks ok. ------------------------------------------------------- "Colin McKinnon" <colin.deletethis@andthis.mms3.com> wrote in message news:d48867$gpr$1$8300dec7@news.demon.co.uk... > Peter Van Hove wrote: > > > Java != javascript > > > try > > $url=strlen($_SERVER['SSL_CIPHER']) ? 'http' : 'https'; > $url.='//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; > > C.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.