Categories

Updated: 10/23/2003

PHP Timed/view once Resource Protector

You can use this script along with your current log-in script. This script will allow you to restrict access to a particular file. The user can view the resource only once within a pre-set ammount of time. The username, password and date are written to a logfile. The script compares the username and password combonations for a match and determines if the alloted time limit has expired. If all is well the function returns back to your actual log-in script. There is a few configuration options like if you want to be notified if the user attempts to log-in a second time. The ipLogFile.txt file will need to have writable permissions (chmod 666) in order for the script to write the users data to the logfile.
©2003-2019 jCay.com