News Feed
Jobs Feed
Sections




News Archive
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

Stefan Mischook's Blog: Object Oriented PHP Tutorial in PDF

PHP 10.0 Blog: php -T (variable tainting)

Matthew Weir O'Phinney's Blog: Using Zend_View Placeholders to Your Advantage

Juozas Kaziukenas' Blog: Zend Framework and Doctrine. Part 3

Ibuildings techPortal: Unit Testing Databases with Zend Framework


Community Events











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


community framework introduction functional rest release symfony usergroup opinion interview series testing phpunit database zendframework2 language symfony2 podcast development conference

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