LovelyNurses Posted November 23, 2006 Share Posted November 23, 2006 Hello everyone, I am just a beginner to php, and I came upon a problem while trying to connect to mysql. Near the beginning of the code example was a line [i]include('DB.php')[/i], but my php gave a warning on could not open stream and then a fatal error of could not find DB.php in PEAR. Can someone help me with that?Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/28183-help-with-includedbphp/ Share on other sites More sharing options...
fert Posted November 23, 2006 Share Posted November 23, 2006 it means it cant find the file. Link to comment https://forums.phpfreaks.com/topic/28183-help-with-includedbphp/#findComment-128907 Share on other sites More sharing options...
LovelyNurses Posted November 23, 2006 Author Share Posted November 23, 2006 I know that! Does anyone had similar problems or knows how to solve this particular problems? Link to comment https://forums.phpfreaks.com/topic/28183-help-with-includedbphp/#findComment-128911 Share on other sites More sharing options...
Nhoj Posted November 23, 2006 Share Posted November 23, 2006 You could always try finding the missing file and putting it in the same folder as the file being run...Just a suggestion... Link to comment https://forums.phpfreaks.com/topic/28183-help-with-includedbphp/#findComment-128912 Share on other sites More sharing options...
ataria Posted November 23, 2006 Share Posted November 23, 2006 include('DB.php')Alright.try..include('/home/yoursite/public_html/DB.php');or, if your using www...include('/home/yoursite/www/DB.php');if DB is in a folder..then, your gonna need to add that too.include('/home/yoursite/public_html/folder/DB.php'); Link to comment https://forums.phpfreaks.com/topic/28183-help-with-includedbphp/#findComment-128964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.