The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
How do i do it?
How do i access the results?
Cheers
Whooo
Web Site: www.freeola.com
Date: 06/October/2001
Time: 21:15
Web Site: www.ukcheats.com
Date: 07/October/2001
Time: 22:19
...that type of layout.
One last thing, how do i access the .dat file? what will it come up like?
$Log_File = "/freeola/users///sr//Tracker.dat";
it should be
$Log_File = "/freeola/users///sr/htdocs/Tracker.dat";
Sorry about that
where is says sr, you have to put your Freeola ID, the slash after the users should contain the last digit in your Freeola ID and the slash after that should contain the second last digit of your Freeola ID.
For example, if your Freeola ID is sr0123456, then your root directory is:
/freeola/users/6/5/sr0123456/htdocs/
So the code for this would be
$Log_File = "/freeola/users/6/5/sr0123456/htdocs/Tracker.dat";
so an example link would be:
Tracker.php?Site=www.ukcheats.com
You need to put the Web Site you wanna link to after the ?Site= bit, so it knows where to go.....oh, and where you have $Log_File, you will need to change this to suit your Web Site, adding your Freeola Root Directory to the Track File. An, you will ned to create a file called Tracker.dat and put it on your Web Space..... hope this is clear enough, and helps you out.
ok, so heres the code:
$Log_File = "/freeola/users///sr//Tracker.dat";
$DA = getdate();
$Date = "$DA[weekday], $DA[mday]/$DA[month]/$DA[year]";
$Time = "$DA[hours]:$DA[minutes]";
$fp = fopen($Log_File,'a')
or die ("Can't goto the Web Site you wanted, sorry.");
flock($fp,2);
fwrite($fp, "\n\n");
fwrite($fp, "Web Site: $Site\r\n");
fwrite($fp, " Date: $Date\r\n");
fwrite($fp, " Time: $Time\r\n");
flock($fp,3);
fclose($fp);
header("Location:$Site");
exit;
?>
It involves:
When the link is clicked, it should link to a CGI/PHP Script instead of the Web Page. This Script would then log the link and then take the user to the relevent page, as an example:
1. Banner for ukcheats.com on my Web Site
2. The link wouldn't goto ukcheats.com direct, but to a
Script I made (such as LinksLog.php).
3. The Script would log the relevent into onto a File or
mySQL Database.
4. The Script would then send the user to the proper Web
Site.
The user won't really know this, it would just take them a little longer to get to the Advertised Web Site.
Unfortunatly, freeola don't suppport mySQL for users yet, and I'm not 100% sure how to log using a file, but's it's late now, and if someone else han't replied by the time I come on tommorow, I'll put up a php script which I have, I'll just have to find it first, I just wanted to give you a little gist on hw it would operate.
Hope it helped, sorry if it didn't.
So that you can tell your clients or whatever how many hits there website is getting through the banner ad on your website.....
I think it invloves cgi-scripts or something......
Not sure.....