Force display of error message when PHP is running

WBOY
Release: 2016-07-25 08:46:14
Original
905 people have browsed it
  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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!