----- Original Message ----- From: "jsWalter" <[EMAIL PROTECTED]> > I am trying to use DB.php, but I am getting htis error... > > Fatal error: main(): Failed opening required 'DB.php' > (include_path='.;c:\php4\pear') > > I can't find this path defined *anywhere*
I have no idea where it gets this, but it seems to be a default of some kind as it comes up with any failed include or require, I think. > I don't have PHP installed thee. > > How can I "fix" this include path issue. Try putting your DB.php file in the same directory as the calling page - that's always worked for me. You might want to also do a very simple test to ensure you can include and require from a set directory and none of your other code is getting in the way. > DB.php is in the dir as php.exe Normally the directory where you have php installed can't be accessed by the inet user (I don't know what server software you're using, but it seems you are on a windows machine at the least). All of your include files should be able to be reached from a web browser, unless you want to specifically give the internet user account more rights than it should have. Try putting db.php in the same directory as your calling script and reference it as follows: require_once("DB.php"); Good Luck, Marc -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php