Click to See Complete Forum and Search --> : Can PHP automatically remove text


phpbegin
11-05-2005, 09:18 PM
I have some text, and I want it to appear and disappear on a certain date? For example, if I had this on a website -

"By December 1, 2005, email me your ideas"

Can PHP remove "By December 1, 2005, email me your ideas" after the date without manually taking it off myself? If so, where can I find code examples?


#####

NogDog
11-05-2005, 11:00 PM
if(time() <= strtotime("2005/12/01"))
{
echo "By December 1, 2005, email me your ideas.";
}

phpbegin
11-06-2005, 12:35 PM
Thank you