Re: Re: website tree

From: Date: Tue, 08 Jan 2008 19:09:06 +0000
Subject: Re: Re: website tree
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-266907@lists.php.net to get a copy of this message
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 **

« previous php.general (#266907) next »