Home  >  Article  >  Backend Development  >  Force display of error message when PHP is running

Force display of error message when PHP is running

WBOY
WBOYOriginal
2016-07-25 08:46:14943browse
  1. error_reporting(E_ALL);
  2. ini_set('display_errors', '1');
  3. //Output error information to a text file
  4. ini_set('error_log', dirname(__FILE__) . '/error_log.txt ');
Copy code

PHP


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn