Re: website tree
| From: | Breno | Date: | Mon, 07 Jan 2008 01:54:21 +0000 |
| Subject: | Re: website tree | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266828@lists.php.net to get a copy of this message | ||
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.com/companyThere are many methods like using the $_SERVER variable (auto generated) $_SERVER['REQUEST_URI'] or $_SERVER['SCRIPT_NAME'] Try this and tell us :) Breno