Reply to file download suggestions

Your name:

Reply:


Posted by Christian Giordano on 05/26/05 13:08

I know that is a very old issue but testing an looking around didn't
help me so much. In php.net there is this code to make a file download:

<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");

// We'll be outputting a PDF
header('Content-type: application/zip');

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="test.zip"');

// The PDF source is in original.pdf
readfile('BlobDetection.zip');
?>

And it works fine in firefox, in IE instead when I go to the url it says:

"Internet Explorer cannot download download.php from..."


Any idea?


Thanks, chr
___________________________________________________________________
{ Christian Giordano's site and blog @ http://cgws.nuthinking.com }

[Back to original 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

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