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