Halo,
I have been searching for this answer in these
forums and unable to find it so far so I thought
I would make a post. I’m hoping some kind soul
here could help get me on the right track or guide
me to an easy to understand resource?
What I would like to do is be able to use PHP to
automatically print off a weekly deadline on my
Web page which automatically updates itself;
regardless of what the current day is.
So for example, today’s date is currently
Wednesday, January 19th. Lets say my deadline
for this week was Friday, January 21st. So even
though today is Wednesday, January 19th, what
I would like to have happen is have my Web page
read: “This weeks deadline is Friday, January 21st.”
Then on every Saturday morning around 12 am I would
like the deadline to automatically update itself to
the date for next Friday… which would become the
new deadline.
Note: I’m not wanting to include the current date
on the page. Just want to include the deadline…
which would basically always be the coming Friday
of each week, every week, of every year.
So lets say it was now Saturday, January 22nd. I would
like my Web page to automatically be updated all by itself
and read: “This weeks deadline is Friday, January 28th.”
Then lets say today’s date was Sunday, January 30th.
Again, I would like my Web page to automatically be updated
and read: “This weeks deadline is Friday, February 4th.”
(And so on and so forth…)
My question: How would I go about doing this using PHP?
Any tips or resources you’d like to share?
Thanks,
Mark
PS: I’m new to PHP and still learning so “laymen’s terms”
would be greatly appreciated. =)