PHP: display most recent images from directory?

后端 未结 2 1499
萌比男神i
萌比男神i 2020-12-22 00:47

I have a camera server FTPing images to a webserver. Can anyone suggest the PHP snippet I\'d need that would look through the server\'s public root directory (/public_html)

2条回答
  •  情深已故
    2020-12-22 01:15

    This should do it:

    If you can make the filenames YYYYMMDDHHMM.jpg sort() can put them in the right order and this would work:

提交回复
热议问题