Jump to content

Securing My Application Using Php.ini


skaterdav85

Recommended Posts

Im pretty unfamiliar with the php.ini file.1. if i set display_errors = "0", what kind of errors does this not show? If i failed to connect to mysql for some reason, would it not display that error? Does this kind of do the same thing as using @ before functions?2. If i set log_errors = "1", where does it send the errors if I dont use error_log to specify a filename?3. If i do specify a filename for error_log, where is it best to put it?Lastly,4. What is the difference between all these options listed under changeable on php.net? What are these? PHP_INI_PERDIR, PHP_INI_ALL, PHP_INI_SYSTEM

Link to comment
Share on other sites

If you set display_errors to off it will not display any error message produced by PHP. MySQL connect errors are not produced by PHP, whatever the setting of display_errors is you still need to print MySQL errors with mysql_error.

2. If i set log_errors = "1", where does it send the errors if I dont use error_log to specify a filename?
The error_log option defaults to null, so if display_errors is off and error_log is null then errors don't go anywhere.http://php.net/manual/en/configuration.changes.modes.phphttp://www.php.net/manual/en/ini.list.php
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...