Jump to content

Error Message: Hide Full File Path


Dysan

Recommended Posts

what i meant is don't have errors in your code. debug and remove all possible errors. things shouldn't break, you shouldn't need to hide errors.

 

but to turn off error reporting, you can either set the value in php.ini or use a command at the top of your code:

 

error_reporting(0);

Adjusting the error reporting level will also prevent the logging of the errors so you will have no record of what happened when something goes wrong. The display_errors setting should instead be turned off to prevent them from being sent to the browser, but they will still be logged.

 

Well written code does not normally generate any errors/warnings/notices. If you are receiving error messages, it indicates your code is not working correctly. Simply hiding the errors will still mean that your code is not working, but now you don't know what is going wrong.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.