Jump to content

application header how to store on the server


alimovz

Recommended Posts

Hey guys,

 

I let my users download an excel file that gets generated on the fly pooling data from database. however I want to store the file that they download on the server so they can later download this same file that I will name, say, something unique attributable to their id. How do I do that?

 

Here is the code I use:

 

header("Content-Type: application/msexcel");

header("Content-Disposition: inline; filename=Leads.xls");

 

echo ...

echo ...

echo ....

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.