File modified time
<html> <head> <title>File modified time</title> </head> <body> <?php $file = "test.txt"; outputFileTestInfo( $file ); function outputFileTestInfo( $f ){ if ( ! file_exists( $f ) ){ print "$f does not exist<BR>"; return; } print "$f was modified on ".date( "D d M Y g:i A", filemtime( $f ) )."<br>"; } ?> </body> </html>