English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of PHP define_syslog_variables() function

PHP HTTP Reference Manual

The define_syslog_variables() function initializes all variables related to syslog.

Syntax

define_syslog_variables ( void )

Definition and usage

Initialize all variables used in the syslog function.

Return value

 No return value.

Online examples

<?php
// Check if the syslog variables have been defined
if(!get_cfg_var('define_syslog_variables'))
{
    define_syslog_variables();
}
// Open log
openlog('', $LOG_ODELAY, $LOG_MAIL | $LOG_USER);
// Continue script...
?>

PHP HTTP Reference Manual