I'm having trouble getting strtotime() to work correctly.
For starters, Here's my goal: I'm trying to set it up that you can only create an article every 5 minutes.
To accomplish this I've got
strtotime('5 minutes')<strtotime($lastcreate)
this code ^^ in my file.
<?php
echo '<ul><li>' . strtotime($lastcreate) . '</li>';
echo '<li>' . strtotime("now") . '</li></ul>'; ?>
Outputs:
1392203323
1392228579
$lastcreate is stored in my database as now()
When i use this code to call it. The numbers differ by like 7 hours.
Does anybody know why it does this and/or a better way to go about doing this?