Page 1 of 1

Counter user's chan with php script

Posted: Wed Feb 20, 2013 2:48 pm
by TuSaiChi
How do I have a php script type counter, which displays the page only the number of connected users in the channel.
With a string like this:
http://www.mywebsite.com/counter.php?chan=mychan

Re: Counter user's chan with php script

Posted: Wed Feb 20, 2013 5:33 pm
by Stealth
The best way to do this would be to have a stats service put user counts and information in a database that can be accessed using PHP by simply pulling the information from the common database (most likely some form of SQL or flatfile database).

Re: Counter user's chan with php script

Posted: Wed Feb 20, 2013 7:54 pm
by Syzop
Indeed. First, install and run Denora stats. Second, if you have knowledge of PHP+SQL or know someone who does (or any other such language) then you can write your own script to fetch the user count of a channel and do all kinds of other things with it.
Also check out the MagIRC Web Frontend on that site, it's quite nice :). You could also consider using just that (with Denora stats), and not code anything yourself.

Re: Counter user's chan with php script

Posted: Sat Mar 02, 2013 5:03 pm
by TuSaiChi
Thank you, we use Denora stats statistics server. But also ircstats.
Thank you for your comprehensive answer, but I know of no one who can create the script in php. You could tell someone, or some site?

Re: Counter user's chan with php script

Posted: Sun Mar 03, 2013 11:08 am
by katsklaw
TuSaiChi wrote:Thank you, we use Denora stats statistics server. But also ircstats.
Thank you for your comprehensive answer, but I know of no one who can create the script in php. You could tell someone, or some site?
Simply googling "php irc channel stats" (without the quotes) will answer that question for you.