Enable error reporting in PHP file

Many hosting companies by default disables any PHP error reporting for security purpose, because it displays all the vital information and root server path. Which is certainly not a good idea and it might interest some curious and naughty people.But this will be very frustrating for some new PHP developers who will see blank page when they try to execute a PHP code. Errors are very good information for any developers to improve their PHP codes and eliminate any bugs. To enable error reporting, all you need to do is add following code on top of your PHP file, just after <?php [cc lang="php"] ini_set('display_errors', 1); error_reporting(E_ALL); [/cc]
    New question is currently disabled!