I forgot to mention that the timestamp is: $date_output = date("Y-m-d H:i A"); But that would work as fine correct? - Richard ""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message 998p9a$hqp$[EMAIL PROTECTED]">news:998p9a$hqp$[EMAIL PROTECTED]... > Depending on what sort of timestamp you are getting you should be able to > just do: > if ($loggtime > $oldLoggtime) then... > > With just a straight unix timestamp(via mktime();) this would work fine. > -- > phill > > ""Richard"" <[EMAIL PROTECTED]> wrote in message > 998o75$aol$[EMAIL PROTECTED]">news:998o75$aol$[EMAIL PROTECTED]... > > Greetings. > > > > (yes.. I am active) > > > > When a user loggs on, I pass the string $loggtime, that is written to > a > > file. Whenever a this user refreshes any of the pages, certain tasks are > > performed, and a file's contents is checked, (which contents is a single > > line of time). If the $loggtime is newer, nothing would happen, but if the > > $loggtime is older than what is written in the file, something should > > happen. Any ideas of how I can compare two dates? > > > > - Richard > > > > > > ps: to all who wonders, I am writing a really small community. Now, this > > question is related whenever a new message is sent.. The message is > written > > to a file, and I check that file everytime a site is refreshed. The file > is > > arrayed with "|" as a separator. :Ds > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]