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 Link to comment https://forums.phpfreaks.com/topic/128807-includepath-help/ 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. Link to comment https://forums.phpfreaks.com/topic/128807-includepath-help/#findComment-667795 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 Link to comment https://forums.phpfreaks.com/topic/128807-includepath-help/#findComment-667804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.