How can I make a page only accessible one hour from:

http://www.myssite.com/?t=[%c_time12%]

http://www.myssite.com/?t=7:00PM

The time will be given to the page as shown above, the time cannot be formated any other way.

I was thinking it would work something like this:

PHP Code:
<?PHP

if ($tyme "8:00PM")
include 
the page
else
echo 
"this page is no longer accessible, page expired!


?>
The site that redirects to mine after the buyer puchases allows me to do the following:

[%p_date%] (Payment Date, example: January 1, 2009)
http://www.mysite.com/?t=%p_date%

I guess all I have to do is get php to display the date in the correct format as above.

PHP Code:
<?php
$today 
time();
$expires mktime000, 09, 302006);
if (
$today $expires) {
include 
'download.php';
} else {
echo 
"expired.";
}
?>
I am also going to make it verify the referrer. I know someone could get in if they REALLY wanted to but it's not that important. The average, honest person will not bother with it.



I appreciate your help!