Programming Logics FORUMS

Full Version: PHP Scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
View only once PHP Scripts
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 ammount of time. The username, password, date and the users IP address are written to a logfile. The code 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 program. 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 in order for the program to write the users data to the logfile.
PHP Timer
Measure PHP execution time using this small and simple script. PHP typically executes very quickly, though some code takes significant time to execute, i.e. retrieving and parsing remote files, image manipulations, complex and/or multiple SQL queries, etc. If code is choking your server's CPU, or your site visitors are clicking away because your page is taking too long to respond, use this PHP script to highlight the bottlenecks. Customizable output; configure any number of runs and display fastest, slowest, and average execution times. With examples. Released under the terms of the GNU General Public License
Its been great to read and its client side scripting... Open source and very easy to learn and understand..
Reference URL's