i have a module module1 in my app app1
instead of giving the following syntax in all my module1 files like this
include(dirname(__FILE__)."/header.php")
can i have some thing like set_includepath(dirname(__FILE__)) in my module index page please help me
include path problem
Moderator: General Moderators
Re: include path problem
Look into the ini_set() function, specifically:
What the above is doing is adding your own includes path to the existing include path specified.
Code: Select all
ini_set('include_path', ini_get('include_path').':/path/to/includes:');
-
kishanprasad
- Forum Newbie
- Posts: 16
- Joined: Mon Feb 25, 2008 5:20 pm
Re: include path problem
yes ima using
ini_set("include_path",get_include_path().PATH_SEPARATOR.dirname(__FILE__));
but still its not taking the relative
ini_set("include_path",get_include_path().PATH_SEPARATOR.dirname(__FILE__));
but still its not taking the relative