I've been trying to setup Dean Allen's excellent "Refer" script.
(http://www.textism.com/tools/refer/)
The instructions say to add this code to the bottom of whatever web pages
you want the refer script to track (after the closing </html> tag):
<?php include '<?php echo dirname($_SERVER['SCRIPT_FILENAME']) ?>/refer.php'
?>
Doing so results in the following error on any pages that have the
aforementioned code:
Parse error: parse error in /home/username/public_html/page.php on line 63
The offending line is always the line with the aforementioned PHP code. Does
anyone have any idea what might be causing this not to work? I installed the
refer script into the /refer directory in the web root of my server.
Any help is greatly appreciated.