Turn on all error message in php

Coding PHP is very cool but sometimes i thought my code was bug free... then its not.. I experience this in the module that I've written in my previous client, in my end it was running so smooth but when the client run it in their end lots of bugs showed up. Then after reading and searching some site about this, I found that there are many ways to get this bug shows. one of these are..

Just put on the top of your php code.


error_reporting(E_ALL);
ini_set('display_errors', '1');






now i always put them on my code while testing...

No comments:

Post a Comment