Version of script: 1.0
Version of PHP: 4.3.11
Hosting company: bluehost.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: I read existing two topics
/*************************************
Title: Keep original urls and refresh the count
Version: 1.0
Author: Lazar Kovacevic
Demo: http://inverudio.com/php/ccount_test.php
Download: Copy paste the code few lines below!
Website: http://www.inverudio.com
Description: This modification has 2 advantages:
1. Webmaster doesn't lose information in webpages about what files are being downloaded.
2. Page is refreshed, and new count is displayed.
*************************************/
---------------------------------------------------------------------
click.php MODIFIED PART
---------------------------------------------------------------------
Code: Select all
// Redirect to the link URL
//------------------------------------------------
#MODIFICATION BY ME
$ref=@$HTTP_REFERER;
//Header("Location: $url");
header("Location: " . $ref);
#END OF MODIFICATION
//------------------------------------------------
Lazar