The default is 1,024 bytes. Setting this directive to 0 means that no maximum
length is imposed.
Ignoring Repeated Errors
Enabling ignore_repeated_errors causes PHP to disregard repeated error messages
that occur within the same file and on the same line.
Ignoring Errors Originating from the Same Location
Enabling ignore_repeated_source causes PHP to disregard repeated error messages
emanating from different files or different lines within the same file.
Storing Most Recent Error in a Variable
Enabling track_errors causes PHP to store the most recent error message in the variable
$php_errormsg. Once registered, you can do as you please with the variable data,
including output it, save it to a database, or do any other task suiting a variable.
Error Logging
If you??™ve decided to log your errors to a separate text file, the Web server process
owner must have adequate permissions to write to this file. In addition, be sure to
place this file outside of the document root to lessen the likelihood that an attacker
could happen across it and potentially uncover some information that is useful for
surreptitiously entering your server.
You have the option of setting the error_log directive to the operating system??™s
logging facility (syslog on Linux, Event Viewer on Windows), which will result in
PHP??™s error messages being written to the operating system??™s logging facility or to a
text file.
Pages:
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295