PHP Classes

Gabage Displayed?

Recommend this page to a friend!

      phpThumbnailer  >  All threads  >  Gabage Displayed?  >  (Un) Subscribe thread alerts  
Subject:Gabage Displayed?
Summary:the show() function returns garbage to me.
Messages:3
Author:Nate
Date:2006-05-30 19:55:12
Update:2006-07-12 12:48:04
 

  1. Gabage Displayed?   Reply   Report abuse  
Picture of Nate Nate - 2006-05-30 19:55:12
I have been looking for a decent thumbnailer class and this looks to do exactly what I need. However upon calling the show() I get:


JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222p " ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz

a good 50 or so lines of it. I am using GD 2.0 not sure if this REQUIRES v1.0 or not but I have gotten this issue with the last server thumbnailer classes I have tried. So I imagine its something on my end and not with the actual classes anyhelp?
[email protected]

  2. Re: Gabage Displayed?   Reply   Report abuse  
Picture of peter ehlig peter ehlig - 2006-06-06 08:15:29 - In reply to message 1 from Nate
Please check if the header() function works properly. Either your webserver or your browser seems to not proceed the header and uses a standard text/plain header instead.
greets
Peter

  3. Re: Gabage Displayed?   Reply   Report abuse  
Picture of martin martin - 2006-07-12 12:48:04 - In reply to message 1 from Nate
as palliative you can replace the content of funtion named: show_error_image() like this:

function show_error_image() {
echo "<pre>";print_r($this->errmsg);echo "</pre>";
}

this will show the error message in simple a string.