Those Pesky Error Messages
Posted: Sun Apr 11, 2004 4:58 pm
I'm running PHP 4.3 under Windows XP, and I'm new to PHP. Please forgive the newbie question.
I obviously want the interpreter to post parsing errors atop whatever web page is on the screen. But in a production system, I'd rather not have errors, like database connection problems, be displayed. I've written code to catch those errors and I'd like to control the presentation process.
Instead, I'm getting things like this: "Warning: mysql_connect(): Access denied for user: 'ESIAdmin@localhost' (Using password: YES) in C:\Apache\Apache2\htdocs\e-butle.com\PHPScripts\Login02.php on line 54
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Apache\Apache2\htdocs\e-butle.com\PHPScripts\Login02.php on line 56"
Is there any way to keep these errors from being displayed?
Thanks.
HDW
I obviously want the interpreter to post parsing errors atop whatever web page is on the screen. But in a production system, I'd rather not have errors, like database connection problems, be displayed. I've written code to catch those errors and I'd like to control the presentation process.
Instead, I'm getting things like this: "Warning: mysql_connect(): Access denied for user: 'ESIAdmin@localhost' (Using password: YES) in C:\Apache\Apache2\htdocs\e-butle.com\PHPScripts\Login02.php on line 54
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Apache\Apache2\htdocs\e-butle.com\PHPScripts\Login02.php on line 56"
Is there any way to keep these errors from being displayed?
Thanks.
HDW