IE Download Over SSL Error


Previous Code

<?php
header(‘Content-type: application/pdf’);
header(‘Content-Disposition: attachment; filename=”downloaded.pdf”‘);
readfile(‘original.pdf’);
?>

New Code

<?php
header(‘Cache-Control: maxage=3600’); //Adjust maxage appropriately
header(‘Pragma: public’);
header(‘Content-type: application/pdf’);
header(‘Content-Disposition: attachment; filename=”downloaded.pdf”‘);
readfile(‘original.pdf’);
?>

source:

http://elrems.wordpress.com/2008/03/05/php-header-pdf-document/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s