PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

filectime> <file
Last updated: Sat, 24 Mar 2007

view this page in

fileatime

(PHP 4, PHP 5)

fileatime — Vrací čas posledního přístupu k souboru

Popis

int fileatime ( string $filename )

Vrací čas posledního přístupu k souboru, při chybě FALSE. Čas je vrácen jako Unix timestamp.

Výsledek této funkce je cachován. Více informací - viz clearstatcache().

Pozn.: Atime (čas posl. přístupu) souboru se obvykle mění při čtení datových bloků ze souboru. To se může značně negativně projevit na výkonu systému, pokud aplikace přistupuje k velkému počtu souborů nebo adresářů. Některé Unixové filesystémy mohou mít atime deaktivován za účelem zvýšení výkonu pro takové aplikace; takovým případem jsou USENET news spools. Tehdy je tato funkce bezpředmětná.



add a note add a note User Contributed Notes
fileatime
Maulwurf
10-Oct-2004 12:12
Using this function on Win98 made me grow grey hair.
Win 98 doesn't save the time for the last access. It only saves the date. This way, the returned timestamp from fileatime(file) is always much too small.

this command will always return false:

if($now - $last_access >1800) {
do something
}

using filemtime() instead did the thing.

filectime> <file
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites