Puoi utilizzare http://www.php.net/filemtime ed eventualmente http://www.php.net/touch