Re: expiring login by 5 days period

From: Date: Mon, 19 Jul 2004 07:09:06 +0000
Subject: Re: expiring login by 5 days period
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190984@lists.php.net to get a copy of this message
Louie Miranda wrote:
Hello, i had been working the whole day thingking about how to expire a login? Using dates. I have with me the ff fields: 1. regdate (YYYY-MM-DD) 2. expired (1=(Yes) or 0=(No)) Can you give me some tips, how to write this on php? The problem is, i could not figure out how to create a comparison string with the regdate and my 5 days expiration?
Ask this to a thousand people, get a thousand + 1 answers :) Personally I'd probably convert the date to a unix timestamp and then add the number of seconds in 5 days to that time stamp.

« previous php.general (#190984) next »