Welcome Guest, Not a member yet? Register   Sign In
set_header() file download problem
#2

(This post was last modified: 12-29-2015, 05:31 AM by orionstar.)

It isn't a bug, you call exit() after you define the headers, but CodeIgniter doesn't set the headers and not send back anything to the browser until everything in the controller's action is executed... You shouldn't use exit() and it will work!

+1 To set the content type, you can use the set_content_type() method.

++1 CodeIgniter has a download helper Wink http://www.codeigniter.com/user_guide/he...elper.html
Reply


Messages In This Thread
set_header() file download problem - by Rashid - 12-29-2015, 02:38 AM
RE: set_header() file download problem - by orionstar - 12-29-2015, 03:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB