| Author |
the url as seen by the user in the navigation bar on top of explore in a variable
|
|
| Peter Van Hove 2005-04-21, 3:56 pm |
|
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
| |
| Peter Van Hove 2005-04-21, 3:56 pm |
| PS. 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
>
| |
| Colin McKinnon 2005-04-21, 3:56 pm |
| Peter Van Hove wrote:
>
> But would like to use PHP as people out there may have java disabled.
>
Java != javascript
[color=darkred]
> -------------------------------------------------------
> "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.
| |
| Peter Van Hove 2005-04-21, 3:56 pm |
| Nice.
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.
| |
| Colin McKinnon 2005-04-21, 3:56 pm |
| Peter Van Hove wrote:
> Nice.
> It seems to identify https instead of http but the rest looks ok.
>
debugging costs extra.
C.
| |
| Peter Van Hove 2005-04-21, 3:56 pm |
| > debugging costs extra.
In that case ...
The second line needs a colon (just before the two slashes) ;-)
> $url.='://' .....
| |
| Peter Van Hove 2005-04-23, 8:55 am |
| PS. 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
>
| |
| Peter Van Hove 2005-04-23, 8:55 am |
| Nice.
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.
|
|
|
|