jacko310592 Posted February 26, 2010 Share Posted February 26, 2010 hey guys can someone please hep me with a hit counter for my site, been thinking of the best way to do it all afternoon but it just hasnt come to me. i need it to save the hits to a txt file, but i want it so within the text file it has a line of hits for each of my webpages on my site. so that its not just one number which gets updated with each page load, it needs to have individual hit counts for each of my pages. i was hoping to get it to look somthing like this within the text file: //page name = hit count// index = 111 another page = 10 another page = 20 another page = 22 each of my pages already have variable names, eg. $thisPage = 'index'; which i think would help with this. thanks to anyone who can help Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted February 26, 2010 Share Posted February 26, 2010 its gonna be a hell of a lot easier to use a database Quote Link to comment Share on other sites More sharing options...
jacko310592 Posted February 26, 2010 Author Share Posted February 26, 2010 ahh okayy. just thought i'd try with a txt file as i havnt used databases yet, but i guess ill have to learn thanks for the reply Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted February 26, 2010 Share Posted February 26, 2010 ahh okayy. just thought i'd try with a txt file as i havnt used databases yet, but i guess ill have to learn thanks for the reply i remember first getting into MySQL... it was intimadting but take it piece by piece and you'll realize its really not that much... when it comes down to it, for the basics, you just gotta learn 4 or 5 new functions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.