. PATH_SEPARATOR . get_include_path()); include 'Zend/Controller/Response/Http.php';
$filename = 'example.pdf'; $response = new Zend_Controller_Response_Http();
// set the HTTP headers $response->setHeader('Content-Type', 'application/pdf'); $response->setHeader('Content-Disposition', 'attachment; filename="'. $filename.'"'); $response->setHeader('Accept-Ranges', 'bytes'); $response->setHeader('Content-Length', filesize($filename)); // load the file to send into the body $response->setBody(file_get_contents($filename)); echo $response; ?>