The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [php] Overwriting error reporting
Pieman
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
George in TX
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 09:31 PM