PHP include image file with changing filename

Posted by Gijigogo on Stack Overflow See other posts from Stack Overflow or by Gijigogo
Published on 2011-01-11T18:25:17Z Indexed on 2011/01/11 19:53 UTC
Read the original article Hit count: 153

Filed under:

Hi,

I am completely new to PHP so forgive me if this question seems very rudimentry. And thank you in advance.

I need to include a jpg that is generated from a webcam on another page. However I need to include only the latest jpg file. Unfortunately the webcam creates a unique filename for each jpg. How can I use include or another function to only include the latest image file? (Typically the filename is something like this 2011011011231101.jpg where it stands for year_month_date_timestamp).

© Stack Overflow or respective owner

Related posts about php