security - How to stop public seeing error messages in PHP -


pretty if mistake happen in php not want public see error security purposes, there anyway of having log or file people file or access can see it?

use following line first line:

   error_reporting(0); 

another alternative .htaccess file.


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

jquery - jqGrid update specific column data with out refreshing the entire column? -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -