|
-
Feb 26th, 2006, 10:07 AM
#1
Thread Starter
Addicted Member
Avoid Warning Print
When php generates any warning it prints on the page i want to ignore it.So that it should not print on the page.Could you help me in doing this?
-
Feb 26th, 2006, 10:37 AM
#2
Re: Avoid Warning Print
Use the error suppresion operator:
$a = @(56/0);
you can add the @ in front of any function..
- ØØ -
-
Feb 26th, 2006, 10:58 AM
#3
Thread Starter
Addicted Member
Re: Avoid Warning Print
But it will suppress errors.I want to suppress warnings only.
-
Feb 26th, 2006, 11:04 AM
#4
Re: Avoid Warning Print
You could turn all warnings off:
error_reporting(E_ALL ^ E_WARNING);
I wouldn't recommend that though. Instead, you could just turn them for the function you want to prevent warning display for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|