How Do I Shut up PHP E_WARNING error??

I am trying to make a mysql connection in a remote server, but I need that if the connection is not succesfull, PHP dont show the mysql_connect() E-warning.

I already change settings in php.ini, also I used the suppress operator (@) but unsucessfully.

Also, modify the App error configuration, but always shows a pop up with the warning.

How can I disable that???

Re: How Do I Shut up PHP E_WARNING error??

google ‘php error handling’ and see if you can wrap a custom error handler around your call.

If not, then you may have to visit the generated code and see if they hard coded an error message that is not affected by the App Error Configuration setting. If this is the case, I would report this as a bug.

Regards,
Scott.

Re: How Do I Shut up PHP E_WARNING error??

sc_warning(‘off’) will fix this. Use ‘on’ to turn it back on.

Regards,
Scott.