What is filectime in PHP Filesystem

In this article I am going to explain about filectime function in PHP.
  • 1307

PHP filectime() Function

The filesystem filectime  functions is used to returns last change time of file. It returns Unix timestamp on success otherwise it returns false.

Syntax of filectime function

filectime(filename)

Parameters in filectime function

It has only one parameter:

Parameter Description
filename It specifies the file to check.

Example of filesystem filectime function

<html>

<body>
 

<?php

$fileName="C:\wamp\www\Dinesh\PhpIntro.txt";

echo "<br />";

echo "File was last changed: "

.date("F d Y H:i:s.",filectime($fileName));

?>
 

</body>

</html>


Output:

filectimefunctionphp.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.