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];
9
10file_put_contents("win32/syslog.reg", <<<REG
11REGEDIT4
12
13[HKEY_LOCAL_MACHINE\\$PATH]
14"TypesSupported"=dword:00000007
15"EventMessageFile"="$dll"
16
17REG
18);
19
20?>
file_put_contents(string $filename, mixed $data, int $flags=0, $context=null)
phpversion(?string $extension=null)
addslashes(string $string)