By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,641 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,641 IT Pros & Developers. It's quick & easy.

Download files - Problem

P: n/a
G.N
Hi

I'm geting file :

$contents = file_get_contents($file);
$size = filesize($file);
header("Content-type:text/plain");
header("Content-Length: $size;");
header("Content-Disposition: attachment; filename=$export_file_name");
print($contents);

I've two problems.

1. File who I got is one Enter greater.
2. When the filename include more points for instance xxx.xxx.txt I've got
xxx[1].xxx.txt

Thanks for Your help
G.N


Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.