Jump to content


Photo

PHP graphs


  • Please log in to reply
1 reply to this topic

#1 timtom3

timtom3
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 24 May 2006 - 05:32 PM

Hi I was just wondering if there was any free graph scripts that were easy to install as I have a page count on my site that goes into mysql and would like to display it as a graph.

Also how would i collecet the information for what time of day a page has been view and with what browser?

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 25 May 2006 - 09:30 AM

There's a class called JPGraph that is excellent for this, and straight forward to use.

You can get the current date with the date() function, and it's possible to grab the users browser with $_SERVER['HTTP_USER_AGENT'] although this doesn't work with all browsers, but does with the most common ones, so you should be ok.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users