PHP Classes

PHP CDN: Display images from a given directory using AJAX

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 234 All time: 8,112 This week: 47Up
Version License PHP version Categories
php-cdn 1.0.0Free for non-comm...5PHP 5, Graphics, Files and Folders
Description 

Author

This package can display images from a given directory using AJAX.

It can display a list of directories in given directory that users can browse with a user interface based on material design.

The directories have links and the images have links to retrieve the whole images via AJAX.

Picture of Francesco Crisetti
  Performance   Level  

 

Example

<?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()));
}


  Files folder image Files (48)  
File Role Description
Files folder imageapp (4 directories)
Files folder imagecss (5 files)
Files folder imageimages (1 directory)
Files folder imagejs (8 files)
Accessible without login Plain text file index.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:234
This week:0
All time:8,112
This week:47Up