How to get last modified information of a file using php?
(PHP 4, PHP 5, PHP 7, PHP 8) Show filemtime — Gets file modification time Descriptionfilemtime(string Parametersfilename Path to the file. Return Values Returns the time the file was last modified, or Errors/Exceptions Upon failure, an ExamplesExample #1 filemtime() example
Notes
See Also
geeks at geekman dot info ¶ 14 years ago
solarijj at gmail dot com ¶ 15 years ago
$MetaData['wrapper_data'] as $response ) paranoid at dds dot nl ¶ 19 years ago
habazi at yahoo dot com ¶ 17 years ago
myselfasunder at gmail dot XYZ dot com ¶ 11 years ago
$isDST == false && $systemDST == true)
erelsgl at gmail dot com ¶ 12 years ago
Anonymous ¶ 17 years ago
wookie at at no-way dot org ¶ 19 years ago
adam at roomvoter dot com ¶ 18 years ago
Will Davies Vasconcelos ¶ 11 years ago
notepad at codewalkers dot com ¶ 17 years ago
Don ¶ 7 years ago
_michael ¶ 12 years ago
info at daniel-marschall dot de ¶ 13 years ago
getHighestFileTimestamp($directory, $recursive = true) { dma05 at web dot de ¶ 17 years ago
jay at fudge dot org ¶ 23 years ago
csnyder at chxo dot com ¶ 16 years ago
dagger80 ¶ 12 years ago
Nilo ¶ 12 years ago
Benan Tumkaya (benantumkaya at yahoo) ¶ 16 years ago
nieprzeklinaj at gmail dot com ¶ 9 years ago
Anonymous ¶ 13 years ago
gerardj at home dot com ¶ 23 years ago
contacto at hardcode dot com dot ar ¶ 13 years ago
tobias ¶ 9 years ago
MarkAgius at markagius dot co dot uk ¶ 1 year ago
Steve GS ¶ 2 years ago
arkadia81 at gmail dot com ¶ 8 years ago
son9ne at gmail dot com ¶ 8 years ago
How can I get the last modified time of a file in PHP?The filemtime() function returns the last time the file content was modified. Note: The result of this function is cached.
How can I tell when a file was last modified?Windows file properties
You can also see the modified date by viewing the file properties. Right-click the file and select Properties. In the Properties window, the Created date, Modified date, and Accessed date is displayed, similar to the example below.
Which function is used to get the last modification time?Using getlastmod() Function: The getlastmod() function is used to get the last modification time of the current page.
Which function returns the last modification time of a file?The filemtime() function returns the last modification time of a file.
|