-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
20 lines (16 loc) · 1013 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$dir = __DIR__ . '/output';
$path = $dir.'/test.txt';
mkdir($dir);
file_put_contents($path, 'POST:' . var_export($_POST, true) . PHP_EOL, FILE_APPEND);
file_put_contents($path, 'SERVER:' . var_export($_SERVER,true) . PHP_EOL, FILE_APPEND);
file_put_contents($path, 'REQUEST-URI: ' . var_export($_SERVER["REQUEST_URI"], true) . PHP_EOL, FILE_APPEND);
file_put_contents($path, 'PAYLOAD: '. file_get_contents('php://input') . PHP_EOL, FILE_APPEND);
file_put_contents($path, 'ENV: '. var_export($_ENV, true) . PHP_EOL, FILE_APPEND);
file_put_contents($path, 'RQUEST: '. var_export($_REQUEST,true) . PHP_EOL, FILE_APPEND);
error_log( 'POST:' . print_r($_POST, true) . PHP_EOL);
error_log( 'SERVER:' . var_export($_SERVER,true) . PHP_EOL);
error_log( 'REQUEST-URI: ' . var_export($_SERVER["REQUEST_URI"], true) . PHP_EOL);
error_log( 'PAYLOAD: '. file_get_contents('php://input') . PHP_EOL);
error_log( 'ENV: '. var_export($_ENV, true) . PHP_EOL);
error_log( 'RQUEST: '. var_export($_REQUEST,true) . PHP_EOL);