Citat:
One of the new things in PHP 5.1 is the $_SERVER['REQUEST_TIME'] variable that gets set to the request time. When running under Apache this comes directly from the time syscall Apache makes for every request, so by using this you can actually eliminate any time-related syscalls at the PHP level and still do time stuff in a PHP script.
|
Da li neko koristi ovo i da li je primetio neke probleme? Po meni je to čak i bolje nego pozivati time() svaki put, naročito ako se script izvršava duže od 1 sekunde, može da se desi da za isti zahtev 2 timestamp nisu ista.