PHP Thumb » Help & Bugs » Help

show() function never displays the image

(2 posts)
  1. 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();

    Posted 2 years ago #
  2. That's a tough one... are you seeing the missing image when you hit the URL for the shownewsimage.php directly?

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.