# 24 hours * 60 minutes/hour * 60 seconds/minute $threshhold = 86400; $currenttime = time(); if( ($currenttime - $mtime) > $threshhold){ # file was modified within 24 hours }