Force user to download one file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beso4ever
Forum Newbie
Posts: 10
Joined: Fri Jul 20, 2007 10:02 am

Force user to download one file?

Post by beso4ever »

hi all
i need help please
first: i need to force my users to download only one file "no more files on same time"
second: i need to protect the url of file like
http://www.example/ex.zip

Thanks for all
paperplate
Forum Newbie
Posts: 16
Joined: Thu Sep 04, 2008 12:15 pm

Re: Force user to download one file?

Post by paperplate »

If I understand correctly, you want to give users the ability to download some files, but they can only download one at a time / per session?

Well you could put the files in some location hidden from the user, then use a php script to manage "serving" a file. This way you can set stuff in $_SESSION or probably better to use cookies and probably more better to store records in a DB based on some unique ID for the user which keeps track of the download restriction.
beso4ever
Forum Newbie
Posts: 10
Joined: Fri Jul 20, 2007 10:02 am

Re: Force user to download one file?

Post by beso4ever »

thanks for your replay :)
i mean like rapidshare it prevent user to download next file until the current file finish download :)

Could you help me :)

Thanks
Post Reply