Re: [PHP] Re: website tree

2008-01-08 Thread Richard Heyes
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'

[PHP] Re: website tree

2008-01-06 Thread Breno
Alain Roger escreveu: 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

[PHP] Re: website tree

2008-01-05 Thread John Gunther
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 Alai