Installation struggles - debian, no captcha image with php5

Jonathan Daugherty cygnus at janrain.com
Fri Sep 8 17:51:50 UTC 2006


I forgot to include headers (thanks Jeremy):

    if (imagetypes() & IMG_JPG) {
        header("Content-type: image/jpeg");
        imagejpeg($image, '', 90);
    } else if (imagetypes() & IMG_PNG) {
        header("Content-type: image/png");
        imagepng($image);
    } else if (imagetypes() & IMG_GIF) {
        header("Content-type: image/gif");
        imagegif($image);
    }

-- 
  Jonathan Daugherty
  JanRain, Inc.



More information about the general mailing list