How to enable error reporting in a PHP script?

There are two ways to enable error reporting in your PHP scripts.

1. You can add the following function in the .php file for which you would like the error reporting enabled:

 error_reporting(E_ALL);

2. You can add the following option in the php.ini file for your web site:

error_reporting = E_ALL

Those will enable reporting for all PHP errors.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use cURL with my account?

Yes, all of our servers have cURL enabled. The path to cURL is /usr/bin/curl .

Do you support Python?

Yes, we do. The path to Python is /usr/bin/python .

What is Perl?

Perl stands for 'Practical Extraction and Reporting Language'. Perl is a versatile programming...

What permissions should I run my Cgi scripts under?

All CGI scripts should be placed in the CGI-BIN and set to chmod 755.

Do you support installation and use of PHPBB?

We have one touch installs for XMB, PHPBB, and Invisionboard. Here are some links to some...