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? Quote 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 Quote 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"); ?> Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/66446-php-time-in-seconds/#findComment-333273 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.