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 =/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.