Sunday, September 21, 2008

PHP Script 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.

Download PHP timer.zip 28 KB

Php Error Page

A dynamic PHP script which returns different error messages depending on the error received. The script will also send an e-mail to your e-mail address with the time, date and error received (Optional). (Please note: You need to be able to use custom error pages on your host.)

Download PHP Errror Page 2 KB

PHP Online Users

Include this script in the PHP pages of your web site in order to display the number of people that are viewing them. Before using this script remember to create a MySQL database for it (if you don't already have one), and to assign that name to $DataBaseName. Actually, remember to assign a value to all the initialization variables at the beginning of the script.

Download PHP Online Users 2 KB

Search engine referrers

This will log all of the search engine queries used to find your site in the most popular search engines. It will save each query and list them by how many hits that query has brought you. Fully functioning, the script is a small single file included on your webpage.

Download Search engine referrers 4 KB

PHP Website Search Script

This free Google website search script is easy to install, free to use, and offers all the robust local web site search features of popular search engines like Google or Yahoo. The free PHP Google site search is appropriate for all PHP enabled web servers (Linux, UNIX or windows-based servers). This search script is perfect for small to medium sized websites. The major features include search spelling suggestion, paged results, easy to modify template pages, 26 supported languages, and native support for English and French. The entire script is fully customizable and open-source. The script also comes with developer support through our online support forum. It takes less than 5 minutes to upload and install and only requires modifying 2 variables!

Download Free PHP Website Search Script 70 KB