Skip to content

Instantly share code, notes, and snippets.

@pkdavies
Created March 19, 2013 13:47
Show Gist options
  • Save pkdavies/5196234 to your computer and use it in GitHub Desktop.
Save pkdavies/5196234 to your computer and use it in GitHub Desktop.
Zend-Framework force-download for IE
<?php
$userAgent = new Zend_Http_UserAgent();
$device = $userAgent->getDevice();
$browser = $device->getBrowser();
if ($browser == "Internet Explorer") {
header("Content-Type: application/force-download");
}
?>
@pkdavies
Copy link
Author

This is the equivalent of the following for Zend: https://gist.github.com/pkdavies/1188847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment