3 use Symfony\Component\HttpFoundation\Response;
6 while (!@file_exists($parent.'/vendor/autoload.php')) {
7 if (!@file_exists($parent)) {
8 // open_basedir restriction in effect
11 if ($parent === dirname($parent)) {
12 echo "vendor/autoload.php not found\n";
16 $parent = dirname($parent);
19 require $parent.'/vendor/autoload.php';
22 ini_set('html_errors', 0);
23 ini_set('display_errors', 1);
25 header_remove('X-Powered-By');
26 header('Content-Type: text/plain; charset=utf-8');
28 register_shutdown_function(function () {
30 session_write_close();
31 print_r(headers_list());
37 $r->headers->set('Date', 'Sat, 12 Nov 1955 20:04:00 GMT');