Im new to scripting and need some help
Is it possible to use data from the url, record it into MySQL or text data file
so as to display the popular pages from a site.
Any PHP+MySQL ideas or links are needed?
I had the idea started with no luck...
the url is basic structure like:
domain.com/tmplate.php/1038/BMW
list($first, $last) = explode('/', substr($PATH_INFO,1));
$entry_line = "$first/$last\n";
$fp = fopen("/public/count.txt", "a");
fputs($fp, $entry_line);
fclose($fp);
the explode grabs the 1038/BMW
from the url and records into a text file.