This is a discussion on "Most viewed/downloaded article" within the PHP Forum section. This forum, and the thread "Most viewed/downloaded article are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Most viewed/downloaded article
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Most viewed/downloaded article
Hello,
I'm making a library site. It's done in pure html and no content management system is used. I would like to add some functionality to be able to display most viewed authors, most popular books, most downloaded articles. Is it possible to use any free PHP script or modify some PHP script to do this. I have some very basic PHP skills, so I can modify or write something not very complicated. |
|
|
|
#2
|
||||
|
||||
|
Re: Most viewed/downloaded article
You can check which page is viewed the most via google analyctics.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Most viewed/downloaded article
Yes. And I can check my statistic while l logged in into hosting control panel. But the question is: Can I automate this task?
|
|
#4
|
||||
|
||||
|
Re: Most viewed/downloaded article
Not with "pure HTML", I'm afraid.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Most viewed/downloaded article
OK, I'm speaking about switching to PHP. The site is not designed, it should not be a problem.
|
|
#6
|
||||
|
||||
|
Re: Most viewed/downloaded article
Do you wish to learn PHP? Should you wish to, here is a thread that will provide some resources, http://www.webforumz.com/php-forum/6...-beginners.htm.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Most viewed/downloaded article
Alex, thanks for your replies.
I do have some PHP skills. So, the goal is to use some open source code that is already designed and modify it if necessary. If this exists. |
|
#8
|
||||
|
||||
|
Re: Most viewed/downloaded article
Hmm, there is probably a CMS plugin for this.
Besides that, you may have to make your own! I'll have google about and reply if I find anything.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#9
|
|||
|
|||
|
Re: Most viewed/downloaded article
If you have access to your web server log files, it's quite easy to write a separate page that analyses (yesterday's) log and prints out the most visited pages - I set up one of these in about an hour on a course I was giving a year or two back and it's developed into this report with some added sophistication.
It works well while the log file remain quite small (I only have around 100,000 hits a day on that site) but really should be cached to save compute each time it's called up. It would also be relatively easy to provide it as a PHP include to put on multiple pages. Please follow up if you have access to the log file on your server and would like to see the source, and I can dig it out. Little point in me gooing all that way if you don't meand quite this / want something that's immediate rather than yesterday / don't have log file access |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editing Downloaded Forums | geyids | Web Page Design | 7 | Jan 3rd, 2008 05:36 |
| H1 header not being viewed correctly in both browsers | jj1234 | Web Page Design | 2 | Feb 6th, 2006 08:04 |
| Problems when viewed on a Mac | macntig | Web Page Design | 0 | Sep 6th, 2005 11:26 |
| Return to previously viewed screen | Imara96 | Flash & Multimedia Forum | 5 | Apr 23rd, 2005 22:18 |