Download src/php/php-src/win32/build/registersyslog.php from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/win32/build/registersyslog.php
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/win32/build/registersyslog.php
-
curl -L -o registersyslog.php https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/win32/build/registersyslog.php
402 Bytes
| /* This script generates the .reg file to set up an event source for use by the php syslog() function. */ | |
| $PATH = "SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\PHP-" . phpversion(); | |
| $dll = $argv[1]; | |
| $dll = addslashes($dll); | |
| file_put_contents("win32/syslog.reg", <<<REG | |
| REGEDIT4 | |
| [HKEY_LOCAL_MACHINE\\$PATH] | |
| "TypesSupported"=dword:00000007 | |
| "EventMessageFile"="$dll" | |
| REG | |
| ); | |