PHP Classes

File: demo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Alf-Red  >  Thumbnails  >  demo.php  >  Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: demo
Class: Thumbnails
Display thumbnails of image files from a directory
Author: By
Last change:
Date: 10 years ago
Size: 358 bytes


Class file image Download

include("./class.image.php") ;

$image = new AffichImage() ;

//define the width of the thumbnail
$lon = 100 ;
//define the height of the thumbnail
$lar = 100 ;
//define the number of thumbnails per line
$lin = 10 ;
//define the directory where to look for images
$dir = "./img" ;

$image->showDir($dir, -1, $lar, $lon, $lin);