/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*! \brief delete old file in a directory * does not delete files in subdirectories * \version 1.0 */ $path = 'includes/tmp/'; //age in seconds $ageallowed = "1"; if(($item != ".") && ($item != "..")) { } } } }