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

How to send emails using ASP.Net (VB)?

This topic includes the sample code to send email from ASP.Net(VB) code :Sample Code :<%@...

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

If your website is hosted on our Windows 2008 or Windows 2012 shared hosting server, you will...

Sample script for CDO email

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

How to create ASPNETDB database using aspnet_regsql tool?

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

How to use Dundas Upload?

Dundas upload control is a flexible and reliable component allows you to accept, save, and...