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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux