View Single Post
  #10 (permalink)  
Old 06-10-2009, 02:12 AM
chillynov chillynov is offline
Regular Babbler
 
Join Date: Sep 2008
Posts: 38
chillynov has no reputation at Website Babble yet.
Default

Bob and Jonny, u both are brilliant! Thanks a bunch! I have a problem with the code:
Code:
<?php
if (strotime($time) +60*30>time())
{
//redirect
}
else
{
//show page
}

?>
. When i implemented it, and made a test purchase at clickbank, instead of being re-directed to the 'Thank you page it normally does without the above code, it rather parsed an error code to me:
Code:
Fatal error: Call to undefined function strotime() in /home/africannia/public_html/mywebsite.com/order1.php on line 23

However, after changing the (strotime($time) to (strtotime($time), it redirected me to the 'Thank you page' alright but the URL did not expire after the 30mins. When i refreshed it, it stiil worked. when i bookmarked the URL and re-visited it after 30mins, it still worked.

What could be the problem?


BTW, am gonna try the database thing also and report back. Again!

Last edited by chillynov; 06-10-2009 at 02:15 AM.
Reply With Quote