I have the following codes.
$days = 7;
// Check if the file is older than X days old
if (filemtime($path.$file) < ( time() - ( $days * 24 * 60 * 60 ) ) )
{
// Do the deletion
unlink($path.$file);
}
I want to change $days
to $minute
, how do I go about changing it?