touch

(PHP 3, PHP 4 >= 4.0.0)

touch -- Nastavit Φas zm∞ny souboru

Popis

int touch ( string filename [, int time])

Pokusφ se nastavit Φas zm∞nu souboru filename na time. Pokud filename nenφ p°φtomen, pou╛ije se aktußlnφ Φas.

Pokud tento soubor neexistuje, vytvo°φ se.

P°i ·sp∞chu vracφ TRUE, jinak FALSE.

P°φklad 1. Ukßzka touch()

if (touch ($FileName)) {
    print "$FileName modification time has been
           changed to todays date and time";
} else {
    print "Sorry Could Not change modification time of $FileName";
}