PHP Error Handling
- Which function is responsible for sending a custom message to the system log?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
syslog()
- Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
LOG_CONS
- Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
If you’re running PHP version 5.2.X or older, you need to execute this function before using any of the following logging functions.
- Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
ignore_repeated_errors
- Which version introduced the function error_get_last()?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
This function returns an associative array consisting of the type, message, file, and line of the last occurring error.