Although consistent use of require_once should avoid this problem, here 's another way to check your constants.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
show your code
we can only guess at what you're facing
include any dependencies (or include files)
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
require_once('../lib/config.php');
echo LIB.'database.php';
require_once(LIB.'database.php');
how about that, just to see that LIB actually points to the directory you expect.
how about temporarily hard coding the LIB constant in the second require_once call?
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080