in reply to some problem with date

You have the standard Newbie bug - using the ASSIGNMENT operator, instad of the comparison. Try:
if($fileAgeInDays == $yesterday)

     "Choose a job you like and you will never have to work a day of your life" - Confucius