Re: [PHP] Re: website tree
- From: richardh@xxxxxxxxxxx (Richard Heyes)
- Date: Tue, 08 Jan 2008 19:09:06 +0000
John Gunther wrote:
Get the various parts from the $_SERVER superglobal variable:
1) scheme (e.g. http://) from $_SERVER['HTTPS'] (https if "on")
2) host:port (e.g. bucksvsbytes.com) from $_SERVER['HTTP_HOST']
3) /path/page?query part (e.g. /catalog/index.php?pid=444) from $_SERVER['REQUEST_URI']
There's also $_SERVER['PHP_SELF']. Probably others too. Simply:
<?php
print_r($_SERVER);
?>
This will show you what's available to you.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
.
- References:
- website tree
- From: "Alain Roger"
- Re: website tree
- From: John Gunther
- website tree
- Prev by Date: Re: [PHP] global address collection
- Next by Date: Re: [PHP] global address collection
- Previous by thread: Re: website tree
- Next by thread: Re: [PHP] website tree
- Index(es):
Relevant Pages
|