You are here: Re: Problem with http File Transfer « PHP Programming Language « IT news, forums, messages
Re: Problem with http File Transfer

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация