How to log database error messages in a log.txt file using PHP and MySQL | PHP Tutorial
ฝัง
- เผยแพร่เมื่อ 6 ม.ค. 2025
- In this video you are going to learn how to handle database connection
and query error messages by log them in a log.txt file.
Prevent the server not to display database error messages in the browser,
but instead fetch them and store them in a log.txt file.
Using the mysqli_report function to prevent the server to
display the error message in the browser.
Talking about the PHP.ini file and error_reporting,
on production and development mode.
Hi guys. Tell me what you think. Is everything understandable?
Awesome, you made PHP and MySQL look so simple.
Thank you
YoYuAwesybb