On Wed, 01 Dec 2004 05:10:37 +0100, Michael Fesser <ne*****@gmx.net>
wrote:
.oO(Christopher Pisz)
How can I include a file relative to the top level directory from any other
directory ?
I really hate to use absolut url or put all my files in one directory.
What's wrong with absolute paths?
They make movement of your app difficult.
They avoid many problems and headaches.
Not as many as they cause in a production environment.
A good starting point is $_SERVER['DOCUMENT_ROOT'].
You should NOT put all of your files under the Document Root.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================