Re: website tree

From: Date: Sat, 05 Jan 2008 17:18:13 +0000
Subject: Re: website tree
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266794@lists.php.net to get a copy of this message
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'] John Gunther Alain Roger wrote:
Hi, let's imaging we have the following thing : www.mywebsite.com/company/index.php www.mywebsite.com/company/profile.php www.mywebsite.com/services/index.php how can i detect in which address am i ? for example how to retrieve www.mywebsite.com/services or www.mywebsite.com/company


« previous php.general (#266794) next »