News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
How to make a file downloadable through your script
October 10, 2008 @ 07:51:55

Jani Hartikainen has posted a quick tip for Zend Framework users out there looking to force a download from their script.

"How do I make a file downloadable through my script?" This seems to be a relatively common question on #zftalk nowadays, so here's a quick wrapup!

He compares the two ways - the usual PHP-only way of using header() calls and echoing out the file versus the more Zend Framework way - using a Response object to pull in the content, set the headers and a helper to display/render the data output.

0 comments voice your opinion now!
download file zendframework push content header


blog comments powered by Disqus

Similar Posts

Edin Kadribasic's Blog: PHP 4.4.6-win32 with MySQL 5.0.36

Brandon Savage's Blog: Caching For Efficiency With Zend Framework

Padraic Brady's Blog: ZF Blog Tutorial Part 10: Comments, reCAPTCHA and Akismet Filtering

Matthew Weier O'Phinney's Blog: Zend Framework 1.6.0 Preview, or, PHP 4 is Dead

Andi Gutmans' Blog: Looking to grow Zend Framework Team


Community Events

Don't see your event here?
Let us know!


performance series interview voicesoftheelephpant php7 community conference laravel version xdebug framework api symfony2 podcast example release introduction extension library opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework