View Single Post
  #1 (permalink)  
Old 11-02-09, 02:24 AM
Zeast Zeast is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Php time checking problem

Hi guys,

I am working on accounts application, my client needs a login check like if a user comes on site and login with invalid usrename or password ill save the ip address of user and time of attempt in timestamp.

now i want to check if a user attempted 10 times in last 10 minutes with same ip then i will block his/her ip for ten minutes.

all the work is done just getting problem in getting last 10 minutes time. how can i get the time of last 10 minutes.

Any help will be appriciated

Thanks

Regards
Abdur Rehman
Reply With Quote