php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
registersyslog.php
Go to the documentation of this file.
1
<?php
2
3
/* This script generates the .reg file to set up an event source for use by the php syslog() function. */
4
5
$PATH
=
"SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\PHP-"
.
phpversion
();
6
7
$dll
= $argv[1];
8
$dll
=
addslashes
(
$dll
);
9
10
file_put_contents
(
"win32/syslog.reg"
, <<<REG
11
REGEDIT4
12
13
[HKEY_LOCAL_MACHINE\\
$PATH
]
14
"TypesSupported"
=dword:00000007
15
"EventMessageFile"
=
"$dll"
16
17
REG
18
);
19
20
?>
file_put_contents
file_put_contents(string $filename, mixed $data, int $flags=0, $context=null)
Definition
basic_functions.stub.php:2871
phpversion
phpversion(?string $extension=null)
Definition
basic_functions.stub.php:3063
addslashes
addslashes(string $string)
Definition
basic_functions.stub.php:2512
$PATH
$PATH
Definition
registersyslog.php:5
$dll
$dll
Definition
registersyslog.php:7
win32
build
registersyslog.php
Generated on Sat Aug 23 2025 01:46:13 for php-internal-docs by
1.13.2