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

FormMail script for Windows 2008 / 2012 customers

We don't offer Windows 2008 and 2012 Shared Hosting but we offer Windows Server 2016 with Plesk...

How to use Dundas Chart?

How to create a Basic Pie Chart with Dundas Chart To use this control in a web site, you will...

How to send email through CDONTS Email?

CDONTS stands for "Collaboration Data Objects for Windows NT Server" and as the name suggests it...

Microsoft Access and ASP connection script for Windwos 2008 / 2012 shared hosting

We don't offer Windows 2008 or Windows 2012 Shared Hosting Service anymore but we now offer...

How to use Dundas Mailer?

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

  • 0 Users Found This Useful

Was this answer helpful?