Jump to content

file download


AV1611

Recommended Posts

not sure how to do this

I a modding a script that does an .XLS file download.  I changed the script to download .tsv instead (tab sep text)

How would I mod the header stuff?

[code]
<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=FILENAME.xls");
header("Pragma: no-cache");
header("Expires: 0");
[/code]
Link to comment
https://forums.phpfreaks.com/topic/32855-file-download/
Share on other sites

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.