Quote:
Originally Posted by calmlikeabomb
One thing I noticed about all the code posted in this thread is that it will always delete every file, because $days isn't set anywhere, which means the conditional if(time() - filemtime($file)) > ($days *86400) is always gonna be true, because 0 times any number is always 0...
|
Noticed that, assumed he probably defined before his attached code snippet.
Good looking out though..
