Connecting Tech Pros Worldwide Help | Site Map

Download files - Problem

  #1  
Old July 17th, 2005, 05:59 AM
G.N
Guest
 
Posts: n/a
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




Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Download files nagmvs answers 5 September 29th, 2008 07:20 PM
Download files to local computer tanyali answers 0 April 26th, 2007 02:50 PM
Download Files Grant answers 2 November 19th, 2005 09:21 AM
Application to download files using BITS from remote serve Sachit answers 0 October 6th, 2005 07:35 AM
Using PAMIE to upload and download files...is it possible? scrimp answers 10 July 19th, 2005 03:27 AM