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.

  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

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 installation and use of PHPBB?

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

Do you support Python?

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

Does WHW support PHP HTTP Authorization?

We do support the PHP HTTP Authorization and in order to enable it you need to add the following...

How do I install the CGI scripts generated?

You basically need a few things before you can get started: You will need a web host that...