how can i read a directory´s files and find which is the most recently created?
are you looking for this? 1. readdir() http://de3.php.net/manual/en/function.readdir.php 2. filemtime() http://www.php.net/manual/de/function.filemtime.php
sorry.... 2nd in english: http://www.php.net/manual/en/function.filemtime.php