In chapter 3, I am getting the follow error and backtrace:
Notice: Constant PATH_SEPARATOR already defined in C:\manginweb\include\config.inc.php on line 24
ERRNO: 2
TEXT: DB::include_once(DB/mysqli.php) [function.DB-include-once]: failed to open stream: No such file or directory
LOCATION: C:\manginweb\libs\pear\db.php, line 373, at January 14, 2008, 1:23 pm
Showing backtrace:
DB.connect() # line 373, file: C:\manginweb\libs\pear\db.php
DB.connect("mysqli://admin:[email protected]/manginweb", "true") # line 13, file: C:\manginweb\include\database.php
DbManager.__construct("mysqli://admin:[email protected]/manginweb") # line 9, file: C:\manginweb\include\app_top.php
require_once("C:\manginweb\include\app_top.php") # line 3, file: C:\manginweb\index.php
Now, here is the section of config.inc.php being referenced:
// Change the include_path configuration option to enable PEAR DB access
if ((substr(strtoupper(PHP_OS), 0, 3)) == "WIN")
define("PATH_SEPARATOR", ";");
else
define("PATH_SEPARATOR", ":");
ini_set('include_path', SITE_ROOT . '/libs/PEAR' .
PATH_SEPARATOR . ini_get('include_path'));
Does anyone have any idea why this might be happening? Thanks in advance.