Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get last modified date of file

$filename = 'somefile.txt';
if (file_exists($filename)) {
    echo "$filename last modified: ".date ("F d Y H:i:s.", filemtime($filename));
  	// somefile.txt was last changed: December 29 2020 22:16:23.
}
// filectime: when created
// filemtime: last modified
// fileatime: last accessed
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress get theme uri 
Php :: php previous site 
Php :: date now php 
Php :: php wait 
Php :: wordpress debug mode enabled 
Php :: how to validate an email field using php 
Php :: laravel catch exception ex log save 
Php :: wp enqueue 
Php :: php check method of http request 
Php :: laravel 6 link storage with public 
Php :: a2dismod php 8.0 
Php :: laravel get current domain 
Php :: how console log laravel 
Php :: php replace return character 
Php :: carbon start of week minus one day 
Php :: php server referer 
Php :: php strict-origin-when-cross-origin 
Php :: php check if object has key 
Php :: php save array to file 
Php :: enqueue wordpress 
Php :: close mysql connection in php 
Php :: get current url in codeigniter 
Php :: select distinct laravel 
Php :: php reset array keys 
Php :: laravel make trait command 
Php :: symlink in php 
Php :: how to check the laravel version mac 
Php :: start server in laravel 
Php :: get current date laravel 
Php :: hwo to limit char in php 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =