I have installed PHP on my windows 2003 server. I have also installed PEAR - following multiple instructions found online. However, I continue to get the following error when trying to write login authentication pages.

PHP Warning: require_once(DB.php)

I loaded PEAR via the .msi installer off of php.net and I tried loading PEAR from pear.php.net.

Does anyone know of a crystal clear tutorial for making sure PEAR gets loaded correctly and this DB.php file gets loaded?

    What is the full warning displayed?

    When using require_once you should include the filename with quotes

    require_once('DB.php');
    

      PHP Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in \login\db_connect.php on line 5 PHP Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\PHP\pear') in \login\db_connect.php on line 5

      in my database.php page the DB.php is in quotes.

        Write a Reply...