Re: getting subdirectory
| From: | Eric Butera | Date: | Tue, 23 May 2006 20:44:27 +0000 |
| Subject: | Re: getting subdirectory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236750@lists.php.net to get a copy of this message | ||
On 5/23/06, Dallas Cahker <christmasfruitcake@gmail.com> wrote:
how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3 and subdir1, subdir2 and subdir3 all need different header and different db and so on. how would i get that I am in site subdir3 and not in subdir1?I like to use dirname(__FILE__) when working with paths. Maybe this will be of use to you.