Hi all I am trying to install a PHP site for the first time in my life and have run in to what seems to be a common problem.

When I try to access the page I get the following.

Notice: Use of undefined constant DEFAULT_LEAGUE - assumed 'DEFAULT_LEAGUE' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 6

Notice: Use of undefined constant DB_SERVER - assumed 'DB_SERVER' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 14

Notice: Use of undefined constant DB_NAME - assumed 'DB_NAME' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 15

Notice: Use of undefined constant DB_USER - assumed 'DB_USER' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 16

Notice: Use of undefined constant DB_PASS - assumed 'DB_PASS' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 17

Notice: Use of undefined constant PEAR_DIR - assumed 'PEAR_DIR' in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\config.php on line 22

Warning: main(DB.php): failed to open stream: No such file or directory in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\lib\init.php on line 42

Fatal error: main(): Failed opening required 'DB.php' (include_path='.;C:\PHP\pear::C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs/lib:C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs/plugins') in C:\Dangerbowl\bbwm\nuffle-1.0-Beta\webs\lib\init.php on line 42

I know that the problem is typically either the path is not right or the php.ini files include_path is not set correctly. However I am pretty sure they are both right on the machine since A) when I type in db.php while in any directory of the windows command prompt, it launches dreamweaver and opens the file. The line from the php.ini file is

;** Added by go-pear
include_path=".;C:\PHP\pear"
;
**

That is the correct directory. Any other suggestions?

Do I need to make the PHP directory into a virtual web or something. Would think I would not have to, but really grasping at straws here.

    I will try installing apache on one of the machines tonight and see if that works better. I was hoping to do this under IIS, as I am more familiar with it, but will give it a try.

      I was just speaking with a guy who runs the software I am trying to install over in germany. He said he was never able to get it installed on a windows machine, but uses it on linux. Something to do with path references etc. Ah well.

        Making some progress:

        Changed
        ini_set( "include_path",
        ini_get( "include_path")
        . ":".PEAR_DIR
        );
        }

        ini_set( "include_path",
        ini_get( "include_path")
        . ":$fileRoot/lib"
        . ":$fileRoot/plugins"
        );

        ini_set( "include_path",
        ini_get( "include_path")
        . ";".PEAR_DIR
        );
        }

        ini_set( "include_path",
        ini_get( "include_path")
        . ";$fileRoot/lib"
        . ";$fileRoot/plugins"
        );

        Now simply says DB Error: connect failed. So at least it is finding the code. I suspect there is something wrong the dns lines that follow.

        $dsn = mysql://nuffle:password@/nuffle
        $isPersistant = TRUE;
        $db = DB::connect($dsn, $isPersistant);

          Write a Reply...