Network Functions
PHP Manual

define_syslog_variables

(PHP 4, PHP 5)

define_syslog_variablesInitializes all syslog related constants

Description

void define_syslog_variables ( void )

Initializes all constants used in the syslog functions.

Return Values

No value is returned.

Examples

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 ...
?>

ChangeLog

Version Description
6.0.0 This function was removed from PHP.
5.3.0 This function now throws an E_DEPRECATED notice.

See Also


Network Functions
PHP Manual