PATH_SEPARATOR already defined??
I am following a tutorial primarily to learn MySQL and PEAR. I'm been using PHP5 with Apache on my development system with no issues. I installed MySQL 4.1.20 and current version of PEAR (both appeared to load correctly).
ISSUE: when loading my index page, I get the following:
Notice: Constant PATH_SEPARATOR already defined in C:\My Documents\Web Business\tshirtshop\include\config.inc.php on line 25
//config.inc.php - line 25 referenced:
define("PATH_SEPARATOR", ";");
//The complete code line 25 is associated with:
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'));
If I comment out the following lines: (see below) the Notice goes away
//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'));
I don't believe I am connecting to the MySQL database ("tshirtshop") I set up.
I recognize that the number of variables that may be impacting this could be infinite. I, however, need to begin debugging this with the help of someone with far superior experience with PEAR and MySQL than I. I have attempted, through trial and error, to figure this out (primarily due to the fact that I didn't even know how to ask for help with this issue until I found this group).
Much appreciation for any and all input/help resolving this issue.
Les
|