Hi,i use a php file to display my images.
But the images are never displayed.
In Firefox, I see only a text coming up.
for example: http://localhost:8888/fmdisconvac/public/news/shownewsimage?img=foto+2.jpg.
In firefox i see the symbol for a missing image.
This is the code in my shownewsimage.php file
$img;
$fileName = (isset($_GET['img'])) ? urldecode($_GET['img']) : null;
if ($fileName !== null) $fileName = $this->path.$fileName;
if ($fileName === null || !file_exists($fileName))
{
echo "image does not exist. (".$fileName.")";
}
try
{
$img = Zend_FreimsImage_ThumbLib::create($fileName);
}
catch (Exception $e)
{
echo "error occured";
}
$img->show();