Vidyalelo
PHP · Q8

Exceptions And Error Handling

Programming · PHP · question 8

Q8

Which 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

Answer: Option D

Solution

Answer: Option D
Solution:
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.