Hi,
I need to calculate seconds from "now" to midnight of "today"...
How can I do with php ?
Thank you very much !!
http://www.php.net/manual/en/function.strtotime.php http://www.php.net/manual/en/function.time.php
To find the difference, use subtraction.
$cookie_expiry = time() + strtotime("+3 month");
just a quick guess. You can change the string to whatever, but all units (e.g. months, days, whatever) must be in single form.