[php] Overwriting error reporting |
[php] Overwriting error reporting |
Pieman |
Feb 26 2008, 04:07 PM
Post
#1
|
Member Group: Members Posts: 43 Joined: 10-February 08 Member No.: 4,927 |
I'm currently working on an install script for pieweb, where the first part will be a simple connector to see if the mysql information was entered successfully. This script works fine.
But when incorrect information is entered, the appropriate error message is being displayed, but also a shitload of mysql errors. This isn't really a problem, but I find it untidy. Is there anyway to turn error reporting off in the script itself? This post has been edited by Pieman: Feb 26 2008, 04:15 PM |
George in TX |
Feb 26 2008, 05:05 PM
Post
#2
|
Novice Group: Members Posts: 21 Joined: 31-August 06 From: North central Texas Member No.: 42 |
Try this:
error_reporting(0); I'd use this for testing only, turn it back on when the script is validating for all possible errors. Also see: http://us2.php.net/error-reporting |
Lo-Fi Version | Time is now: 25th April 2024 - 09:31 PM |