Skip to content
Advertisement

Tag: download

Download of .zip file runs a corrupted file php

I’m trying to force a download of a protected zip file (I don’t want people to access it without logging in first. I have the function created for the login and such , but I’m running into a problem where the downloaded file is corrupting. Here’s the code I have: Here’s the error: Cannot open file: It does not appear

secure and resume support file downloading with php

I want to give permission to some of my website users to download a specific file. the download needs to be resume support just for user convenience. For that reason it came to my mind to secure the file with this piece of code: the problem is that not only it’s not resume support also it’s gonno give my webserver

Is there a good implementation of partial file downloading in PHP?

I’m writing a PHP script that allows the user to download a file. Basically the idea is to prevent the file being downloaded more than X times, since it is paid content, and the link should not be spread around. Since the files will be pretty large, it should be good to implement resuming. I’ve read the standard, but it’s

How can I allow a download to pause/resume?

Normally, when I want to allow a user to download a file without revealing the exact location, I just use something like this to let them download the file: But if they are using a modern browser or other download client, and they pause the download and try to resume it, the script (assuming they are still authenticated or whatever)

HTTP Headers for File Downloads

I’ve written a PHP script that handles file downloads, determining which file is being requested and setting the proper HTTP headers to trigger the browser to actually download the file (rather than displaying it in the browser). I now have a problem where some users have reported certain files being identified incorrectly (so regardless of extension, the browser will consider

How to make PDF file downloadable in HTML link?

I am giving link of a pdf file on my web page for download, like below The problem is when user clicks on this link then If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Adobe Reader. If the Adobe Acrobat is not installed then it pop-up to the user for

Advertisement