|
-
Oct 18th, 2005, 04:26 AM
#1
Thread Starter
Member
[RESOLVED] Downloading Files without download dialog box
Hi all,
i m trying to know whether there is any way to force the user to download file to a predefine fixed path , without showing the download dialog box.
i have done the following, but it shows the download dialog box to user.
header("Content-type: application/audio");
header("Content-Length: " . $m_filesize );
header("Content-Disposition: attachment; filename=" .$rs->fields(0,"filename") );
$filename = $m_tmppath;
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo $contents;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|