Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get file created date

$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 :: php forbidden header 
Php :: access to this resource on the server is denied laravel 
Php :: Class "AppHttpControllersGuzzle Client" not found 
Php :: update php version using htaccess 
Php :: Example wp-config.php for Debugging 
Php :: Get the content of a specific page (by ID) 
Php :: blade number format by comma 
Php :: mac php ini file path 
Php :: write to file php 
Php :: storage link laravel 
Php :: switching inter php 
Php :: get id user login laravel 
Php :: laravel .htaccess settings 
Php :: php get type of object 
Php :: laravel 8 db like query 
Php :: command laravel for php artisan make :auth 
Php :: php location 
Php :: convert one time zone datetime value to another using php 
Php :: install php mysql extension ubuntu 
Php :: php memory_limit unlimited 
Php :: php artisan clear 
Php :: laravel 7 error npm run dev 
Php :: select join distinct 
Php :: how to remove index.php in codeigniter 
Php :: check if constant is defined php 
Php :: laravel response redirect 
Php :: php curl delete request 
Php :: how to create controler in laravel 
Php :: determine special characters in php 
Php :: php get size of file 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =