Odd error logs
Posted: Fri Dec 03, 2004 2:12 am
Well, my program is working fine. Or so I thought. I checked my Apache error logs one day, and found the following:
etc, etc.
My program is a simple front end to a MySql database, and uses sessions to keep track of who you are and what your password is. Here are the first few lines of my index.html file:
(The username gets changed when pulled from a drop down list.)
This may be a case of "if it ain't broke, don't fix it," but I am a bit of a purist. Are these Apache error messages something I should worry about? Is there something wrong with the way I set up my session?
Any thoughts would be appreciated.
-Dave
Code: Select all
їThu Dec 2 23:44:45 2004] їerror] PHP Notice: Use of undefined constant userName - assumed 'userName' in /Library/WebServer/Documents/C-n-R/index.php on line 5
їThu Dec 2 23:44:46 2004] їerror] PHP Notice: Use of undefined constant userPass - assumed 'userPass' in /Library/WebServer/Documents/C-n-R/index.php on line 6My program is a simple front end to a MySql database, and uses sessions to keep track of who you are and what your password is. Here are the first few lines of my index.html file:
Code: Select all
<?
session_name("C-n-R-DB");
session_start();
$_SESSION[userName]="Assistant"; // User name
$_SESSION[userPass]=""; // User PasswordThis may be a case of "if it ain't broke, don't fix it," but I am a bit of a purist. Are these Apache error messages something I should worry about? Is there something wrong with the way I set up my session?
Any thoughts would be appreciated.
-Dave