Linto's Blog

Just another WordPress.com weblog

Code for downloading a txt file December 2, 2011

Filed under: Uncategorized — linodavis @ 7:34 pm

header(‘Content-Description: File Transfer’);
header(‘Content-Type: text/html’);
header(‘Content-Disposition: attachment; filename=Emails.txt’);
header(‘Expires: 0′);
header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0′);
header(‘Pragma: public’);
ob_clean();
flush();
$str =”first\t\n
echo $str;

Advertisement
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.