Recording Referrers / Setup Help

The easiest method is to use a .htaccess file. If you use *.html or *.htm files to serve pages on your site, chances are you'll need to use .htaccess anyway, to instruct your server to parse PHP code on those pages.

Simply create a file called .htaccess (if one already exists, open it) in the topmost directory that serves pages on your site. Add the following code, and save:

AddType application/x-httpd-php .html .htm
php_value auto_prepend_file /home/wingedspirit/www/refer/refer.php

If on the other hand you want to monitor only specific files, or if your webhost doesn’t support .htaccess overrides, put the following PHP code in each document or template you’d like to monitor:

<?php include '/home/wingedspirit/www/refer/refer.php' ?>

A good place would be at the end of the page, after </html>

This is Refer 2.1