supraman Posted June 5, 2009 Share Posted June 5, 2009 Hi .. im new here n kinda in a fix .. i need a dynamic script which takes input of number of days and folder name in a specific directory and gives me back the last files accessed in that folder over the number of days entered :S .. PHP isn't xactly one of my strong points so HALP PLZ .. i've still managed to come up with a smaller version of the code required .. here : <?php // outputs the username that owns the running php/httpd process // (on a system with the "whoami" executable in the path) echo exec('find /srv/serials/a -atime +2'); $fName = "access.txt"; $fh = fopen($fName, 'r'); while(!feof($fh)) { $line = fgets($fh); echo('<br>'.$line); } fclose($fh); ?> regards, the supraphpn00b =/ Link to comment https://forums.phpfreaks.com/topic/161015-file-access-calculation-halp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.