Tutorial, anyone?
I’ve got all the kinks worked out of my referrer script (knock on wood), and I’ve made quite a few changes from the great original.
I really liked two features of my previous referrer app. It deleted referrers from the list two days after the last referral, and it downloaded and used the title of the referring page. I did the first feature even better, putting a timestamp next to each entry in the database and then deleting all the global entries after two days (I make two lists in the database, a global and an individual. Each referral to an individual entry results in two database entries, one for the entry itself and one for the blog as a whole. Each referral to an index page results in an entry only for the whole blog. The individual entry is used to calculate the number of read times, the global entry for the referral list, and the global could also be used as a hit counter if I left all those entries in the database. But I digress…). I don’t delete the individual entry from the database because that would reset the read count.
It took me a long time, but I got the second feature working, too. The first time the page gets a referral the script downloads the page and parses the HTML for the title of the page. Every time after that it retrieves it out of the database, which really helps speed. This helps make the referrers list much more pleasing on the eye.
So, if anyone is interested, drop me a line and I’ll do a tutorial on how to install the whole beast.
Popularity: 1% [?]
Nice I like the way you parse the page title. If you could write up something on that, I’d appreciate it. Save me some time coming up with it myself!
Hi there, really interested on you installed your read count. Tutorial pleaseeeeeee