Nasıl geçerli belge PHP güncellendi son kez görebilirim?
"Geçerli belge" yaparak, "Şu anda yürütülmekte olan script" demek ise, bu gibi bir şey kullanabilirsiniz:
$timestamp = filemtime(__FILE__);
$date = date('Y-m-d H:i:s', $timestamp);
var_dump($date);
Ve çıktı gibi:
string '2009-08-27 20:17:54' (length=19)
Hangi Fransa'da şu anda tarih ve zaman ;-)
See filemtime
to get the last modification date of a file, and date and it's formatting options to convert the timestamp returned by filemtime
to something a human-being can understand.