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

From: Date: Mon, 07 Mar 2005 00:20:52 +0000
Subject: Re: Document root, preferred way to find it???
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-210122@lists.php.net to get a copy of this message
Hello Marek, Sunday, March 6, 2005, 4:23:51 PM, you wrote: MK> dirname(__FILE__) MK> and then get rid of the subpath where the check is made MK> ('/include' for example) 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. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site <http://www.PCWize.com>

« previous php.general (#210122) next »