Dear all
I am using a nice php counter to all 600+ pages of my website. It counts different hits for different pages. The counter outputs to a TXT file, line by line like this:
/lds_fil10b.html:0000000000000001
/fa_1.html:0000000000000017
/fil_tresteoriasdaarte.html:0000000000000146
Each line has the path and file name and after the : the hits for that page. Nice. I would like a script to:
1) Read the txt file line by line and order it descendently by hits;
2) Read the first, say, 30 pages (top 30), and read the <title> of those pages;
3) Delete a common string that all titles have (the name of the site), so that it would only display the title of the page;
4) Output the top 30 page titles with their hits in front.
So the idea is to have a live dinamic page in my site with the top 30 hits.
As I understand the logic of this, this should be quite easy for an experienced programer. Alas, I am not that guy. I write HTML and can parse simples PHP scripts and adapt them, but that is it. Any help would be greatly appreciated!
Thanks!!
Best,
Desi