Nie wiem, o co chodzi, więc wkleję zawartość pliku show_image.php licząc, że ktoś znajdzie czas aby go sprawdzić (wg instrukcji nie zmieniałem nic poza ścieżką do katalogu ze zdjęciami).
<?php
// Including library
require_once('./pictod/pictod_ShowImageHandler.php');
$sih = new pictod_ShowImageHandler();
// Preparing configuration
// Configuring cache
'contName' => 'simple',
'cacheDir' => './cache',
),
),
// Configuring rules of displaying
'contName' => 'daily',
'cacheDir' => './cache',
),
),
// Configuring image container
'pictod_ImageContainer' => array( 'contName' => 'simple',
// If no imageID given, 'default' is used
// For each imageID indicate the list of directories where images stored
// 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('http://www.artur.tsi.net.pl/pictod/photo'), ),
),
),
);
// Initializing module
$err = $sih->initialize($conf);
if (PEAR::isError($err)) {
}
// Taking imageID from request string
$imageID = @$_REQUEST['imageID'];
// Getting Picture of the Day
$image = $sih->getImage($imageID);
if (PEAR::isError($image)) {
}
// Disabling browser cache
header("Expires: Mon, 26 Jul 1990 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: no-store"); // Displaying image
header('Content-type: image/'.$image['type']); ?>