Archives for: "April 2009"

PHP Rating Demo

The basic idea of this rating script is to count the number of votes and the ratings and store them in a text file (a database could also be used). The first step was to create some images to represent the ratings. The easiest approach was to use Ima… more »

Web Application Help

Considerations for help systems for web applications. User count If there aren't many users, a simple text file should suffice. The next step up could be a word processing document or PDF. HTML is probably too cumbersome and costly for a small us… more »

PHP5 .tgz Download Counter

To add a download counter, you can use a RewriteRule to route requests through a script to deliver the file and update the counter. You may also be able to use a header('location:file.tgz') call as well. .htaccess RewriteEngine On RewriteRule ^(… more »

Simple Hit Counter Example

Hit counters are valuable because they allow site visitors to see how many people visited or used a server-based tool. This is a very simple implementation of a counter. You can see it run at the link above. The counter code is in the back-end/ser… more »

Multi-Lingual Site Configuration with Apache

Most browsers send the prefered language to servers when they access sites. This can be used to select the appropriate content, using Apache's mod_negotiation. Sample .htaccess file Options +MultiViews LanguagePriority fr en AddLanguage en .en… more »
1 2