How to disable Deprecated Function Notices in PHP?

PHP has deprecated some functions in latest version. If the same functions are still on your website, you will see following warning message while browsing your website:

Deprecated: Function split() is deprecated in

 

You can add the following line in the top of your index or bootstrap file.

 

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

 

Once you put this, your application will show all the other errors except for Notices and Deprecation errors.

Related Articles

How to use Dundas Mailer?

A. Sending an Email with the QuickSend Method <% Dim objMailer 'Mailer control Set...

How to use ASPSMS?

Here is the ASP VB-Script example, intended to be used on an IIS (Internet Information Server)...

How to use ASPUpload?

ASPUpload is a COM+ component, which enables an ASP application to capture, save and process the...

How to use ASP Simple Upload component?

Sample code: <% Option Explicit Dim upl, NewFileName Set upl =...

How to create ASPNETDB database using aspnet_regsql tool?

What is ASPNETDB? Microsoft has introduced a new and powerful default database schema in...

  • 0 Users Found This Useful

Was this answer helpful?