phpSensei Posted August 24, 2007 Share Posted August 24, 2007 I want to create a flood protection for my forum, but I need to know how to set a cookie with the time()+ , lets say 30 secondes. how? Link to comment https://forums.phpfreaks.com/topic/66446-php-time-in-seconds/ Share on other sites More sharing options...
hvle Posted August 24, 2007 Share Posted August 24, 2007 time() + 30 = 30 second from now Link to comment https://forums.phpfreaks.com/topic/66446-php-time-in-seconds/#findComment-332671 Share on other sites More sharing options...
keeB Posted August 24, 2007 Share Posted August 24, 2007 or <?php print strtotime("+30 seconds"); ?> Link to comment https://forums.phpfreaks.com/topic/66446-php-time-in-seconds/#findComment-332691 Share on other sites More sharing options...
phpSensei Posted August 24, 2007 Author Share Posted August 24, 2007 k, because i thought it was in minutes or something. thanks. Link to comment https://forums.phpfreaks.com/topic/66446-php-time-in-seconds/#findComment-333273 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.