- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
$path = file_directory_path();
$dir = opendir($path);
/*seacrh file shops.dtd.zip*/
while ($file_name = readdir($dir)) {
/*if found export file of current user*/
if ($file_name == 'market_new.xml') {
/*create array - date of last change current file => create date of current file*/
$last_export_date = date('d-m-Y H:i', filectime($path . '/' .$file_name));
}
}
/*close catalog*/
closedir ($dir);
Подозреваю, ноги растут со школы у обоих. 🙂