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 openlog() function

PHP HTTP  reference manual

The openlog() function opens a connection with the system logger.

Syntax

bool openlog ( string $ident , int $option , int $facility )

Definition and usage

It is used to open a connection with the system logger

Return value

Returns true value on success, false value on failure.

Parameter

Serial numberParameters and descriptions
1

ident

String identifier added to each message

2

option

It is used to indicate which options the system logger has used

3

facility

It is used to specify the program type of the message recording process

PHP HTTP  reference manual