data-store.php

Basic data store utility -- unfinished
git clone git://git.finwo.net/lib/data-store.php
Log | Files | Refs

not-found.php (401B)


      1 <?php
      2 include dirname(__DIR__).DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'autoload.php';
      3 $path = explode('/',$_SERVER['REQUEST_URI']);
      4 while(count($path)) {
      5     if ( is_file(__DIR__.implode(DIRECTORY_SEPARATOR,$path).'.php') ) {
      6         include(__DIR__.implode(DIRECTORY_SEPARATOR,$path).'.php');
      7         exit(0);
      8     }
      9     array_pop($path);
     10 }
     11 
     12 header('HTTP/1.0 404 Not Found');
     13 echo 'Not Found';