BMW Posted December 2, 2006 Share Posted December 2, 2006 I don't understand how to show the page in localhost if I use include path. Recently after installing MDB2, my include_path is change to like that ".;C;\php5\pear". Even I uncomment the "include_path = ".;c:\php\includes" in php.ini, it still cannot change it back.The configure of the doc root is like that doc_root ="C:\Program Files\Apache Group\Apache\htdocs\". I put my php file in htdoc folder. if my code "ini_set("include_path", "./MDB2.php");" it shows MDB2 class is not found. Does anyone tell me how to solve the problem?Thanks Link to comment https://forums.phpfreaks.com/topic/29205-include_path-directory/ Share on other sites More sharing options...
wildteen88 Posted December 2, 2006 Share Posted December 2, 2006 Looks like PHP is not finding the php.ini you're editing. Copy your php.ini to the WINDOWS folder (C:\WINDOWS) now restart Apache. PHP should now be using the correct php.iniAlso include_path is used to define paths to directories only and not files. You include a file using the include or require functions. Link to comment https://forums.phpfreaks.com/topic/29205-include_path-directory/#findComment-133929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.