Home Tutorial Php Phpfiles The PHP fileatime() function , fileatime php, fileatime in php

 
 

Share on Google+Share on Google+
The PHP fileatime() function , fileatime php, fileatime in php
Posted on: September 24, 2009 at 12:00 AM
Advertisement
The PHP fileatime() function gives the time of last access of the file.

Example of fileatime() function in PHP

Description

Syntax for fileatime() Function PHP

int fileatime ( file_name )

It returns Last Access time in int form of a file

so converts in date form by the date function

Code for fileatime() Function PHP

<?php

$time = time();

echo "current date and times is ".date("m/d/y H:i:s ", $time);

echo "<br>current File Access Time is ".date("m/d/y H:i:s ", fileatime("c:/rose1/ram.txt"));

?>

Output

current date and times is 09/10/09 09:48:57
current File Access Time is 09/10/09 09:44:23

 

Advertisement

Related Tags for The PHP fileatime() function , fileatime php, fileatime in php:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 24, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com