a) systemlog() b) syslog() c) log_system() d) sys_log() Answer: b Explanation: The function syslog() generates a log message that ...
View QuestionWhich logging option’s description is if an error occurs when writing to the syslog, send output to the system console?
a) LOG_CONS b) LOG_NDELAY c) LOG_ODELAY d) LOG_PERROR Answer: a Explanation: If there is an error while sending data ...
View QuestionWhich function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
a) define_variable() b) define_log_variable() c) log_variable() d) define_syslog_variable() Answer: d Explanation: If you’re running PHP version 5.2.X or ...
View QuestionWhich of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?
a) ignore_repeated_errors b) ignore_repeat_error c) repeatedly_ignore_error d) repeated_error_ignore Answer: a Explanation: ignore_repeated_errors will not log repeated messages. ...
View QuestionWhich version introduced the function error_get_last()?
a) PHP 4 b) PHP 5 c) PHP 5.2 d) PHP 5.3 Answer: c Explanation: This function ...
View QuestionSay you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
a) error_reporting = E_ALL b) error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR c) error_reporting = E_ERROR | E_COMPILE_WARNING | ...
View QuestionWhich character does the error_reporting directive use to represent the logical operator NOT?
a) / b) ! c) ~ d) ^ Answer: c Explanation: The twidle (~) character ...
View QuestionWhich version of PHP introduced E_STRICT Error level?
a) PHP 4 b) PHP 5 c) PHP 5.2 d) PHP 5.3 Answer: b Explanation: E_STRICT is PHP ...
View QuestionWhat is the description of Error level E_ERROR?
a) Fatal run-time error b) Near-fatal error c) Compile-time error d) Fatal Compile-time error Answer: ...
View QuestionHow many error levels are available in PHP?
a) 14 b) 15 c) 16 d) 17 Answer: c Explanation: Whenever the PHP engine encounters any ...
View Question