Home >Backend Development >PHP Tutorial >http://www.12306.cn/mormhweb/ Code to force display of error messages when PHP is running
Copy code The code is as follows:
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); //Output the error message to a text file
The above introduces the code for forcing the display of error messages when PHP is running at http://www.12306.cn/mormhweb/, including the content of http://www.12306.cn/mormhweb/. I hope you are interested in the PHP tutorial. Friends help.