kishan Posted October 17, 2008 Share Posted October 17, 2008 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 Quote Link to comment Share on other sites More sharing options...
ratcateme Posted October 17, 2008 Share Posted October 17, 2008 the directory that the script is in is included in the include path allready you can just go include("header.php"); and it will work. Scott. Quote Link to comment Share on other sites More sharing options...
kishan Posted October 17, 2008 Author Share Posted October 17, 2008 see iam using sm thing like this ini_set("include_path",get_include_path().PATH_SEPARATOR.dirname(__FILE__)); and my echo get_include_path();results this .;C:\xampp\php\pear\;C:\xampp\htdocs\Opah\modules\atmailopen But i have a file called atmail.php under C:\xampp\htdocs\Opah\modules\atmailopen if i give var_dump(file_exists('atmail.php')); results bool(false). whats the problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.