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:
The site that redirects to mine after the buyer puchases allows me to do the following:PHP Code:<?PHP
if ($tyme < "8:00PM")
include the page
else
echo "this page is no longer accessible, page expired!
?>
[%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.
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.PHP Code:<?php
$today = time();
$expires = mktime( 0, 0, 0, 09, 30, 2006);
if ($today < $expires) {
include 'download.php';
} else {
echo "expired.";
}
?>
I appreciate your help!




Reply With Quote