In this section of PHP tutorial, we will learn How to use the PHP filetime()function with example.
In this section of PHP tutorial, we will learn How to use the PHP filetime()function with example.
Syntax
<?php
$time = time();
echo "current date and times is ".date("m/d/y H:i:s ",
$time);
echo "<br>current File Modification Time is ".date("m/d/y H:i:s ",
filemtime("c:/rose1/ram.txt"));
?>
Output
current date and times is 09/10/09 11:47:21
current File Modification Time is 09/10/09 09:44:15