Posted by Tim Roberts on 06/07/07 07:31
shadowman <shadowman@noemail.com> wrote:
>
><?php
>require("myImageSave.php"); //contains getPNG() function
>
>$QUERY_STRING = $_SERVER['QUERY_STRING'];
>$data = explode("&", $QUERY_STRING);
>
>
>$image = ('./temp.png');
>$im = getPNG($data);
>
>if(ImagePNG($im, $image)) {
> header('Content-Description: File Transfer');
> header('Content-Type: application/force-download');
> header('Content-Type: image/png');
Did you copy this from someplace? An HTTP response only gets one
Content-Type header. The first one is going to be ignored.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|