touch
(PHP3 , PHP4)
touch --- 設定檔案的修改時間
語法 : int touch (string filename [, int time])
說明 :
試著去設定檔案filename的修改時間,如果選項time沒有給予,則使用目前的時間。
如果檔案不存在,它將會建立一個檔案。
成功則傳回true,否則傳回false。
Example :
<?php
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";
}
?>