|
-
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;
-
Oct 18th, 2005, 05:24 AM
#2
<?="Moderator"?>
Re: Downloading Files without download dialog box
This is not possible, it would mean that you could make people download virii, which is obviously a security risk. It can be done with an application that is install on the users computer which interacts with the website. try searching the forum for it as i cannot remember what it is called
-
Oct 18th, 2005, 05:55 AM
#3
Thread Starter
Member
Re: Downloading Files without download dialog box
is there any way to make user download more than one file at a time with only one dialog box atleast,
thanks
-
Oct 18th, 2005, 12:51 PM
#4
Re: Downloading Files without download dialog box
Only if you put the files in a ZIP archive.
-
Oct 19th, 2005, 03:23 AM
#5
<?="Moderator"?>
Re: Downloading Files without download dialog box
 Originally Posted by visualAd
Only if you put the files in a ZIP archive.
This thread is usefull if you want to create ZIP files using PHP on-the-fly.
http://www.vbforums.com/showthread.p...&highlight=ZIP
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
|