Create directories
Let your site has name http://yoursite.com and stored in /usr/local/apache/htdocs at server or hosting.
Create directory for the scipt:
cd /usr/local/apache/htdocs
mkdir pictod
Create utility directory for caching:
mkdir pictod/cache
This placement is unsecured. More correct way is to place cache directory outside of web server, for example, in /usr/local/apache/pictod_cache. If you decide to go the righr way, please indicate the new directory path in show_image.php.
Make directory writable by all:
chmod a+w pictod/cache
Unpack and copy script
Copy script to the pictod directory on the server and unpack:
cd /usr/local/apache/htdocs/pictod
tar xvfz pictod_1.0.tgz
For Windows users:
Unpack script at your local PC and copy it to the pictod directory of the server by FTP or SCP.
Indicate the placement of your image gallery
Indicate the path to your image gallery by editing file show_image.php
// Configuration of image container
'pictod_ImageContainer' => array(
'contName' => 'simple',
'contConf' => array(
'images' => array(
// Format:
// 'imageID' => array('dir1','dir2'),
//
// If no imageID given, 'default' is used
// For each imageID indicate the list of directories where images stored
//
// Example:
// 'default' => array('./default_gallery'),
// 'a1' => array('./gallery_a1'),
// 'a2' => array('./gallery_a2/dir1','./gallery_a2/dir2'),
//
// INDICATE THE PATH TO YOUR IMAGE GALLERY HERE
'default' => array('/path/to/your/gallery'),
),
),
),
All done!
Download the Picture of the Day Free PHP Script
Be in touch with Script Updates








