Just recently, I was hit by a project that deals with Time and Date! Won't discuss the specifics but you know it... it's confusing and quite hard.
Well maybe it's just me.
It's a small project that requires me to create a plugin that hides paypal buttons after a specific time in the future.
So idea is...
<?php
$futuretime = "time in the future in unix";
if (time() >= $futuretime) {
//hides the paypal buttons
}
else {
//still showing the paypal buttons
}
?>
Yep, simple idea but can be the foreground for more complex applications.
No comments:
Post a Comment