|
Posted by Oliver Grδtz on 04/23/07 15:55
Rolf Mander schrieb:
> What performs better, theoreticaly?
> This
> <?
> echo date("d",time());
> echo date("m",time());
> echo date("Y",time());
> ?>
> Or that?
> <?
> $time = time();
> echo date("d",$time);
> echo date("m",$time);
> echo date("Y",$time);
> ?>
Like others already told you: The first version produces a race
condition when being run over a date change.
And perhaps you might consider using $_SERVER['REQUEST_TIME'] which
contains the timestamp of the begin of the request...
OLLi
--
Bree: "Oh, hello."
Bartender: "Hi."
Bree: "Hi. Um, I need some advice from a professional. I'd like to get
stinking drunk. Do you have anything that can accomplish that in a hurry?"
[DH 218]
Navigation:
[Reply to this message]
|