Hi!
I'm using various CMSs on my server and since I don't know PHP coding and also don't have the time to modify the scripts, I'm searching for an easy way to disable the MySQL errors. I'm talking about the errors that show in browser whenever the database table is corrupted or the script cannot access the database for some reason (mysql not running, wrong password/username etc.)
I'm hoping a simple trick with htaccess or php.ini exists, though I haven't found anything yet.
So, any ideas on this?
Thank you!
RobotFX
0
Junior Poster in Training
Recommended Answers
Jump to PostYou can set display_errors to off in your php.ini or add a flag in
Jump to PostEmm.. Are you sure ? It works for me! Anyways, If that doesn't do the trick, try with error_reporting in php.ini .
error_reporting = ~E_ALL & ~E_NOTICE
This will not let any error/warning or notice to be displayed on the screen.
All 7 Replies
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
RobotFX
0
Junior Poster in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
RobotFX
0
Junior Poster in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
RobotFX
0
Junior Poster in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.