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 Chart?

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

MySQL ODBC driver on Windows 2008 / 2012 server

We don't offer Windows 2008 and 2012 Shared hosting servers anymore. We have installed the latest...

How to send emails through JMail?

We have installed JMail on our Windows shared servers. You can use following sample script to...

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 ASPUpload?

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

  • 0 Users Found This Useful

Was this answer helpful?