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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -