Save csv as attachment file a PHP+Apache setup not working -


I have an interesting problem which I think is related to the server, when I want to save CSV data as a CSV file A user clicks on a button that works fine on my development server, but on production it resonates the content on the page. My guess is that this should be a server issue, but I'm not really sure how it might be. Can Jeezip be affected on this?

My header code is as follows:

  header ("cache-control: should-re-modify, post check = 0, pre-check = 0"); Header ("content-length:". Strlen ($ out)); Header ("content-type: text / x-csv"); Header ("content-dispute: attachment; file name = $ filename"); Echo per dollar;  

So this code works on a development server and output will only resonate on the CSV on the page. Any ideas?

The only thing I can think of is the type of mime-type (especially, Flv files) had problems with one when running from one server to another.

What I have used for CCV files application / octet-stream .

Hopes


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -