How To Hide Or Disable Errors From Showing Up In Php Scripts
- Forums
- PHP
- How To Hide Or Disable Errors From Showing Up In Php Scripts
This Page Contains information about How To Hide Or Disable Errors From Showing Up In Php Scripts By phpscripts in category PHP with 2 Replies. [1163], Last Updated: Sat May 18, 2024
phpscripts
Sun Jul 13, 2008
2 Comments
1395 Visits
im getting a bunch of errors on my scripts sometimes, but i dont want my users to see it, it makes my site exposed to hackers, but most of all, it looks bad, how can i stop from displaying my errors on my scripts, i want to prevent them from showing on my html
one, login to your server as root and edit the file called /etc/php.ini (i have red hat fedora)
or you can put this code at the begining of your code in your PHP scripts:
i think there is a third way with htaccess files, but i m not sure how to do that yet