Re: Document root, preferred way to find it???

From: Date: Mon, 07 Mar 2005 02:08:24 +0000
Subject: Re: Document root, preferred way to find it???
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-210126@lists.php.net to get a copy of this message
Leif Gregory wrote:
I'm not sure I'm completely following you. Let's say I had the following: Site root" "c:\apache\htdocs\test" A subfolder of site root "folder1" A subfolder of the above folder1 "folder2" If I call dirname(__FILE__) from a page in each folder I'll get the following respectively: "c:\apache\htdocs\test" "c:\apache\htdocs\test\folder1" "c:\apache\htdocs\test\folder1\folder2" I don't see where that tells me where the include folder would be.
If you know how the files are layed out in your application, you do.

« previous php.general (#210126) next »