well, you can put links in your profile, and you can put %n, which is replaced with their screen name, no matter where you put it, so if i put
http:///www.site.com/aim.php?name=%n
because my screen name is Girard747, if i looked at the profile and saw that link, it would look like
http:///www.site.com/aim.php?name=Girard747
so i just need a script that can record the variable in name=* to a text or html file, without making duplicates.... i have a script that logs the name, but it makes duplicates instead of Name (times viewed)
Code: Select all
<?php
$TextFile = "visited.html";
$Body = "$_REQUEST[name]<br>";
$Body .= file_get_contents($TextFile);
if ($FP = fopen($TextFile, "w")){
fwrite($FP, $Body);
fclose($FP);
}
?>
and i just put that into the index.php so it will log it when anyone clicks on my profile....
http://68.43.48.51/profile/index.php?name=PHPForum
the people that have visited it are at
http://68.43.48.51/profile/visited.html