File: server.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe Demo  >  server.php  >  Download  
File: server.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Dframe Demo
Application to demonstrate the Dframe framework
Author: By
Last change: Update of server.php
Date: 6 months ago
Size: 452 bytes
 

Contents

Class file image Download
<?php

/**
 * DframeFramework
 * Copyright (c) S?awomir Kaleta
 *
 * @author S?awomir Kaleta <slaszka@gmail.com>
 * @license https://github.com/dframe/dframe/blob/master/LICENCE (MIT)
 */

/**
 * Usage:
 * php -S localhost:8080 -t web/ server.php
 */

$uri = urldecode(
   
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

if (
$uri !== '/' and file_exists(__DIR__ . '/web' . $uri)) {
    return
false;
}

require_once
__DIR__ . '/web/index.php';


For more information send a message to info at phpclasses dot org.