Connecting Tech Pros Worldwide Help | Site Map

Download files - Problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:59 AM
G.N
Guest
 
Posts: n/a
Default Download files - Problem

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





 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.