touch
(PHP 3, PHP 4 )
touch -- Imposta l'ora di modifica di un file
Descrizione
int
touch ( string filename [, int time])
Tenta di impostare l'ora di modifica del file indicato da filename
al valore dato da time. Se non viene passata l'opzione time
usa l'ora attuale. This is equivalent to what utime
(sometimes referred to as utimes) does.
Se il file non esiste, viene creato.
Restituisce TRUE se ha successo; FALSE altrimenti.
Esempio 1. touch() example 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";
} |
|