Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Trouver la date de modification d’un fichier

<html>
<head>
</head>
<body>
<?php
$file = "test.txt";
outputFileTestInfo( $file );
function outputFileTestInfo( $f ){
   if ( ! file_exists( $f ) ){
       print "$f Ce fichier n'existe pas<BR>";
      return;
   }
   print "$f a été modifié le ".date( "D d M Y g:i A", filectime( $f ) )."<br>";
}
?>
</body>
</html>
 
           
       

No comments yet.

Leave a Comment


+ three = 4