RE: [PHP] DOCUMENT_ROOT

From: Date: Wed, 25 Apr 2001 13:33:15 +0000
Subject: RE: [PHP] DOCUMENT_ROOT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50292@lists.php.net to get a copy of this message
Not to beat a dead horse, but assuming a site structure like this: /htdocs /htdocs/modules /htdocs/includes /htdocs/templates where all my PHP logic scripts are in htdocs, and all the bits and pieces are in the other dirs, is there any way to set include_path to: $include_path = "$DOCUMENT_ROOT/config; $DOCUMENT_ROOT/includes; $DOCUMENT_ROOT/templates;" so I can just include("filename.inc.php"); where ever I am in my structure, without worrying about putting in a relative or absolute path, AND do this without altering the php.ini?? (cuz I may not have access to it in a shared hosting env) cheers, jaxon

« previous php.general (#50292) next »