Trying to do a simple date comparison. Both dates are in the format of "Y F jS, g:i a". e.g. 2018 September 3rd, 9:30 am.
$today = date('Y F jS, g:i a');
$expire = file_get_contents(dirname(__FILE__).'/maintenance/end_time.php');
if($today>$expire){
unlink(dirname(__FILE__).'/maintenance/end_time.php');
}
The code I have doesn't work correctly. I also tried strototime() but that was also unsuccessful.