(PHP 4, PHP 5)
define_syslog_variables — Initializes all syslog related constants
Initializes all constants used in the syslog functions.
No value is returned.
Example #1 define_syslog_variables() example
<?php
// Check if syslog variables already is defined
if(!get_cfg_var('define_syslog_variables'))
{
define_syslog_variables();
}
// Open the log
openlog('', $LOG_ODELAY, $LOG_MAIL | $LOG_USER);
// Continue script ...
?>
Version | Description |
---|---|
6.0.0 | This function was removed from PHP. |
5.3.0 | This function now throws an E_DEPRECATED notice. |