ip based download solution

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
sweb
Forum Newbie
Posts: 18
Joined: Tue Oct 30, 2007 6:32 am
Location: Iran (Semnan)

ip based download solution

Post by sweb »

hail i want to know how can i process download for each IP that one IP just can donwload 1 file on one time and when user download the file can download another file that just process with PHP. such as a rapidshare in for free users.
thank.
uyewq
Forum Newbie
Posts: 22
Joined: Thu Sep 17, 2009 6:21 am

Re: ip based download solution

Post by uyewq »

Hi,
not sure but i think session starting and usage of session variables is must here
i will watch your post also, let me learn too..
Bye
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: ip based download solution

Post by jackpf »

Just record the user's IP address in a database, along with the filename or file id or whatever.

Then when they go to download, check the IP address along with the filename/id doesn't already exist.
sweb
Forum Newbie
Posts: 18
Joined: Tue Oct 30, 2007 6:32 am
Location: Iran (Semnan)

Re: ip based download solution

Post by sweb »

jackpf wrote:Just record the user's IP address in a database, along with the filename or file id or whatever.

Then when they go to download, check the IP address along with the filename/id doesn't already exist.
i can't found out your mean. explain your mean.

how can i know the user dowload hase been complete or how can i know the download in progress. give me the solution with description. :banghead:

thank.
Post Reply