Advertisement
Guest User

server.php

a guest
Aug 11th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Laravel - A PHP Framework For Web Artisans
  4.  *
  5.  * @package  Laravel
  6.  * @author   Taylor Otwell <[email protected]>
  7.  */
  8. $uri = urldecode(
  9.     parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  10. );
  11. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  12. // built-in PHP web server. This provides a convenient way to test a Laravel
  13. // application without having installed a "real" web server software here.
  14. if ($uri !== '/' and file_exists(__DIR__.'/'.$uri)) {
  15.     return false;
  16. }
  17. require_once __DIR__.'/index.php';
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement