Forum Moderators: coopster
I have a website support some big files(200-800M) download. I want to control download .
I use Php +mysql to control it to prevent other people to link and download.
Because my webhost control ftp is difficult.
so I use http download.
But I do not know to use php script to detect one user have finish download,I want one user download one file at one time.
Anyone have good idea for me.
Thank you
You could probably do the same and change it just a little. When you start to download the file use the db to insert the user record and just check that information to see if the user tries another download. Once the download is done just remove the db entry.
For the aborted downloads use the connection_status() so you can clean up any orphan records.
JAG