No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

define_syslog_variables

(PHP 4, PHP 5 < 5.4.0)

define_syslog_variablesInitializes all syslog related variables

Description

define_syslog_variables ( void ) : void

Initializes all variables used in the syslog functions.

PHP: define_syslog_variables - Manual Home of Manuel PHP  Contents Haut

Return Values

No value is returned.

Syslog variables
Variable Constant equal Meaning Notes
$LOG_EMERG LOG_EMERG System is unusable  
$LOG_ALERT LOG_ALERT Immediate action required  
$LOG_CRIT LOG_CRIT Critical conditions  
$LOG_ERR LOG_ERR    
$LOG_WARNING LOG_WARNING    
$LOG_NOTICE LOG_NOTICE    
$LOG_INFO LOG_INFO    
$LOG_DEBUG LOG_DEBUG    
$LOG_KERN LOG_KERN    
$LOG_USER LOG_USER Genetic user level  
$LOG_MAIL LOG_MAIL Log to email  
$LOG_DAEMON LOG_DAEMON Other system daemons  
$LOG_AUTH LOG_AUTH    
$LOG_SYSLOG LOG_SYSLOG   Not available on Netware
$LOG_LPR LOG_LPR    
$LOG_NEWS LOG_NEWS Usenet new Not available on HP-UX
$LOG_CRON LOG_CRON   Not available on all platforms
$LOG_AUTHPRIV LOG_AUTHPRIV   Not available on AIX
$LOG_LOCAL0 LOG_LOCAL0   Not available on Windows and Netware
$LOG_LOCAL1 LOG_LOCAL1   Not available on Windows and Netware
$LOG_LOCAL2 LOG_LOCAL2   Not available on Windows and Netware
$LOG_LOCAL3 LOG_LOCAL3   Not available on Windows and Netware
$LOG_LOCAL4 LOG_LOCAL4   Not available on Windows and Netware
$LOG_LOCAL5 LOG_LOCAL5   Not available on Windows and Netware
$LOG_LOCAL6 LOG_LOCAL6   Not available on Windows and Netware
$LOG_LOCAL7 LOG_LOCAL7   Not available on Windows and Netware
$LOG_PID LOG_PID    
$LOG_CONS LOG_CONS    
$LOG_ODELAY LOG_ODELAY    
$LOG_NDELAY LOG_NDELAY    
$LOG_NOWAIT LOG_NOWAIT   Not available on BeOS
$LOG_PERROR LOG_PERROR   Not available on AIX
Warning

This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

PHP: define_syslog_variables - Manual Home of Manuel PHP  Contents Haut

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

PHP: define_syslog_variables - Manual Home of Manuel PHP  Contents Haut

Changelog

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

PHP: define_syslog_variables - Manual Home of Manuel PHP  Contents Haut

See Also

Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-function.define-syslog-variables.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut