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.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

ASPJpeg support on Windows 2008 / 2012 servers

Yes, we have installed ASPJpeg component on Windows 2008 and Windows 2012 shared hosting servers....

How to use ASP Email?

ASPEmail 5.0 is an active server component for sending e-mail messages using an external SMTP...

FormMail script for Windows 2008 / 2012 customers

We have developed the formmail script for our Windows shared hosting customers. This script can...

Sample script for CDO email

CDO (Collaboration Data Objects) is an inbuilt ASP component used to send emails via ASP. It is...

How to use Dundas Mailer?

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