Thanx everybody!
Yes, thats cool, but in case of chat or something else, where requests to scripts is quite frequent (every 15-20 seconds) and number of users is quite big (and ever they are all new ones, we need not care about them to much) MySQL is not right choice (imho 🙂... I think, there are two choices (at least, i havn't found any more):
1) to store time in a file, together with other user data and evry time do something like this:
$fd = fopen($USERS, "r+");
$file = fread($fd, filesize($USERS));
$new_file = preg_replace("/login=$login&passwd=$passwd&sex=.?&color=.?&...&time=.*?$/m",
'login='.$login.'&passwd='.$passwd.'&sex='.$sex.'&color='.color.'&...&time='.$time_now,
$file);
ftruncate($fd, 0);
fseek($fd, 0);
fputs ($fd, $new_file);
fclose($fd);
2) see my privious message....
Actually the question is not "what is most quick" , but what is sane enough?
thanx, again!