PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Francesco Crisetti   PHP CDN   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP CDN
Display images from a given directory using AJAX
Author: By
Last change:
Date: 8 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);

try {

   
define('BASE_PATH', __DIR__);
   
define('APP_PATH', BASE_PATH . '/app');
   
define('_EXEC', 1);

    include
APP_PATH . "/config/register.php";
   
   
$app = new Application();
    echo
$app->render();
   
} catch (
Exception $e) {
    echo
$e->getMessage(), '<br>';
    echo
nl2br(htmlentities($e->getTraceAsString()));
}