echo ($timestamp) gives "2012-05-03 15:35:46"
What would a PHP command look like that does:"if $timestamp is older than 12 weeks then…"
Thanks for any help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the fastest way of doing it in PHP in term of micro optimisation.
Please go read about strtotime to know how to convert timestamp to unixtime. Also read about time function.