Tag Info

New answers tagged


You can use the following functions: time (); return The time by seconds date(); y- Year m- Month d- Day h- Hours i- Minute s- Second for ex: date("Y-m-d H:i:s");


I think this will work for you (tried it and it works): date('m', strtotime('0 month')); date('d', strtotime('0 day')); Here is a discussion on the topic.


The best way to do this would be to set up a custom table. For each view you would add a new row which would contain (at least) a uid, the post id and the date/time. The beauty of this method is you can store as much data per view as you like, such as IP or the current user if they're logged in. I can't really give any more advise than that as I've never ...

Top 50 recent answers are included