How to include file
Posted: Sat May 06, 2006 12:18 am
I have an include file. In this include file, other files are included.
It doesn't work when this file is included in many files under different directories.
I try to include absolute path in this include file. But it doesn't work.
I also try set_include_path(), it doesn't work yet.
What should I do?
TIA!
My case example:
/test/functions.php
This functions.php need to be included in /index.php and /test/index.php.
It doesn't work when this file is included in many files under different directories.
I try to include absolute path in this include file. But it doesn't work.
I also try set_include_path(), it doesn't work yet.
What should I do?
TIA!
My case example:
/test/functions.php
Code: Select all
include('../include/config.inc.php');
include('../include/db.inc.php');