checking for recently added xml files
I'm not sure if this is in the write place - so I apologise if it is not.
I've been asked to integrates some xml into a php page. The xml file is dropped into a folder on our webserver on a daily basis and is given a new name. ( for example TMG_Horoscopes_Daily_Virgo_media_20060213100013985277_.xml area in bold is the part that changes).
My problem is, I'm not sure how to go check for the most recently added file and make sure its the correct on (ie virgo).
Anyone have an similar problems and could offer some advice, or know of any script that could help?