Arkadaşlar uğraşanlar olmuşmudur bilmiyorum ama PHP tracker hakkında bir kaç sorum olacak.
Yapmak istediğim herhangibir dosyayı bu tracker ile çalıştırmak.


Php Dosyası içinde yazanlar.
<?
$file = "tracker.txt";

$fp = fopen($file, "r");
$gf = fread($fp, filesize($file));
fclose ($fp);
	
$arr = explode("\n\n", $gf);
$n = "";

foreach ($arr as $line) {
$line = trim($line);

if ($line != "") {
$sub = explode(" ", $line);

if ($to == $sub[0]) {
$tracked = true;
$sub[1]++;
}
$n .= $sub[0] . " " . $sub[1] . "\n\n";
}
}

if ($tracked != true) {
$n .= $to . " 1\n\n";
}

$fp = fopen($file, "w");
fputs($fp, $n, strlen($n));
fclose($fp);

header("Location: $to");
exit;
?>
Readme Dosyasında yazanlar bunlar.
The PHP_Tracker

This is a very simple link tracker.

Setup 

1) Upload the file "go.php" to a folder on your host server. Anywhere you like is fine.

That's it! Pretty simple isn't it?

Now, when you want to track a particular link, this is how to do it.

Type the URL of the link like so

http://YourDomain.com/go.php?to=Destination

YourDomain is whatever your domain is.

Destination can be a full URL, like so 

http://YourDomain.com/download.exe

So your tracking URL would look like this

http://YourDomain.com/go.php?to=http://YourDomain.com/download.exe

Or, you can simplify the link by simply using the relative path, like so

http://YourDomain.com/go.php?to=download.exe

Using this method, if download.exe was located in a folder named "secure", the tracking URL would look like this

http://YourDomain.com/go.php?to=secure/download.exe

It's pretty simple.

Now, all of the statistics that are being tracked will be written to a file named "tracking.txt" within the same folder as the "go.php" file.

This file will be created automatically when the tracking script is first used. Simply check this folder after using the tracking script to see how it works.
tracker.txt dosyası içine ne yazılması gerekiyorki. O dosyaya ulaşabilsen go.php ?