Date PHP File Was Last Updated
- Forums
- PHP
- Date PHP File Was Last Updated
find the date a php file was last updated hi, im coding a project, and i want to be able to determine when was the last time a certain php file was updated so i can updated. for example [2099], Last Updated: Mon Jun 24, 2024
Salers
Sun Aug 01, 2010
2 Comments
467 Visits
hi, im coding a project, and i want to be able to determine when was the last time a certain php file was updated so i can updated. for example
$filname = mywebs.php
if(date > today){
updatefile;
}else{
Do not update file;
}
int filemtime ( string $filename )
if you need an example, let me know i can show you how to use it