Need programming help based on PHP

Hi,

I am trying to develop a simple PHP application with quite a 2 hour free trial for my application. I need the account to deactivate after 2 hour. Don't know how to do and I also want multiple IP protection on single user

Thanks in Advance