阅读背景:

在PHP中按日期排序文件

来源:互联网 

I currently have an index.php file which allows me to output the list of files inside the same directory, the output shows the names then I used filemtime() function to show the date when the file was modified. my problem now is, how will I sort the output to show the latest modified file ?, I've been thinking for awhile how to do this. if only I am doing it with mysql interaction there will be no problem at all. please show me an example how to sort and output the list of files starting from the latest modified one. this is what i have for nowI currently have an index.php file which allows




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: