<?php require(' View once with time limit '); ?>

  • Resource ID: 1349

  • Title: View once with time limit

  • Category: Free PHP Scripts: Randomizing

  • Date Added: March 11, 2008 04:19:13 PM

  • Number of Hits: 224

  • Description: You can use this view only once PHP program along with your current PHP log-in program. This code will allow you to restrict access to a particular file. The user can view the resource only once within a pre-set amount of time. The username, password, date and the users IP address are written to a logfile. The code compares the username and password combinations for a match and determines if the alloted time limit has expired. If all is well the function returns back to your actual login script.