read the latest updated csv file from the folder with php

前端 未结 2 1264
一整个雨季
一整个雨季 2021-01-23 19:24

Just wandering, will it be possible to make the system always read the latest updated csv file with php??

Exmaple: I have a folder \'Report\'; user will put in the new c

2条回答
  •  情书的邮戳
    2021-01-23 19:58

    You can use the filemtime() function in php. Here is the manual page:

    http://php.net/manual/en/function.filemtime.php

    You just need to get a list of a all files in the directory.

提交回复
热议问题