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

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP openlog() Function Usage and Example

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 on success, false 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 uses

3

facility

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

PHP HTTP Reference Manual