Yeah, you could give some more info about what are you trying to do... But, if you are lookin for a hit counter, then this could help you...
This is MySQL based, but it should not be too hard to make it file based. Ok, first of all, I did this because PHP was not installed on the server where I had to make a counter, so I had to somehow first make the link to go on our webserver and run the script and then redirect it back to our clients server.
So I made a href referring to our website like this: <a href="http://www.mywebsite.com/count.php?url=www.otherwebsite.com/page.htm">
<?php
Add one hit to db and redirect it to right page
$db = mysql_connect("localhost","user","passwd");
mysql_select_db("db", $db);
if ($url=="www.otherwebsite.com/page.htm")
{
mysql_query("UPDATE hitcounter SET hit=hit+1 WHERE id=1");
mysql_close($db);
}
Header("Location:http://$url");
?>
Hope that helps...