REQUIREMENTS:
- PHP
- GD LIBRARY 2.x
- Ability to set Writable Permissions
KNOWN LIMITATIONS
- May load slow for folders with many images.
------------------------------------------------------------
----------------> STEP 1 <----------------------------------
------------------------------------------------------------
- Upload "anigac" folder to your website
- Edit anigac.php and set path to thumbnail folder, this folder is created automatically if there are writable permissions. The folder itself must be writable.
##############################################
$path_thumb_web = '/anigac/thumb';
##############################################
Note that web paths are paths relative to domain/subdomain address and always start with "/"
- Set Root (local server dir) and anigac.php self path
##############################################
$root = '/home/mike/public_html';
$self_path = '/anigac';
##############################################
------------------------------------------------------------
----------------> STEP 2 <----------------------------------
------------------------------------------------------------
- Call the script (PHP CODE) from any other page (note that paths are relative to caller's location):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?php
include_once('<path to anigac.php>');
$test1 = new gal();
echo $test1->display(realpath('<path to images>'),<Thumbnail Size>,<items per page>);
?>
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EXAMPLE with 2 calls:
~
################################################
include_once('anigac/anigac.php');
$test1 = new gal();
echo $test1->display(realpath('images/flowers'),100,10);
$test2 = new gal();
echo $test2->display(realpath('images/dogs'),50,1);
################################################
--------------------------------------------------------------------------------------------
If you dont know your server root path, copy file test.php to your web root and load it with a browser.