By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

How do you stop PHP from printing warnings on the screen for everyone to see?

P: 35
How do you stop PHP from printing warnings on the screen for everyone to see?

For example: Warning: .... in /.../.../...script.php on line 19

I tried using die but is still prints the error or warning.
Jan 17 '07 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
You will have to perform your own error handling. See Error handling and Logging in the PHP docs. That chapter also provides a sample of how to go about this.

Ronald :cool:
Jan 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.