04-10-2008, 06:23 PM
|
#5 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
Here's a suggestion:
in index.php (or what ever your bootstrap file is):
Code:
define( 'ROOT_DIR', dirname(__FILE__));
then, just use that constant:
Code:
require_once ROOT_DIR . '/abcd/lib.php';
If you don't use a bootstrap file, then you will have problems, and then you'd better do something like:
Code:
define('ROOT_DIR', $_SERVER['DOCUMENT_ROOT'] . 'your_app_dir');
Go figure which way works better for you and stick to that.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|