| Posted by shadowman on 06/07/07 14:33 
Tim Roberts wrote:> 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.
 
 Thanks.  I had been playing around with a different combination of
 headers when I wasn't sure why I couldn't get this working.  Red
 herring, so to speak.
  Navigation: [Reply to this message] |