Does anyone know how I could go about getting a list of the users in an IRC channel from a php page? It would be a great help. Thanks.what IRC program are you using?Hmm my guess is that the only way that would be anywhere fast and accurate would be to have a bot inside the channel, that writes a list of users onto your http server, maybe every 2min or so, and you can easily fetch that info with PHP. Make sure that the bot also puts a timestamp in the file, so you won't use an old list, in case the bot goes offline. How to make a bot do that, I have no idea.. You'd have to search for some forum like that, or for a bot that can do that particular thing, or something close to it..what IRC program am I using? none at the moment. I'm debating putting up a chat room on my website, but I wanted to be able to get a list of who's chatting for the front page... was hoping there would be an easier way that setting up a bot...then how do you plan on geting the users if you don't have any IRC chat going? it all depends on where they are stored and what the program is. they could be stored in a DB, never know.Hmm but if it is IRC, and it's not his own server, he HAS to have something inside the channel that gets the userlist, right? Not even just being connected to the network would do, since invisible users wouldn't show up in the userlist... I really doubt that they'd be accessible in a DB, since pretty much all the IRC-clients I've seen on webpages are made in Java and run solely on the client's machine.
Now, if it's his server, there are surely other ways, but it's still quite complicated, I would think.there is a php irc extension (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/ref.ircg.php">http://www.php.net/manual/en/ref.ircg.php</a><!-- m -->), but chances are your server doesnt have it. it is possible to do it through sockets, although im not exactly sure how. you can try lokking at the source of poBot (<!-- m --><a class="postlink" href="http://www.kuykendall.org/poBot/">http://www.kuykendall.org/poBot/</a><!-- m -->), which is a php irc bot.i guess maybe i was looking at this whole thing wrong. I know there are applets which allow users to enter a chat room on your site, but the chat room is actually just an IRC channel. I assumed that this was just a public IRC channel on some public server and maybe my PHP script could then ask that server for a list of users in the channel. i guess that's not how it works though... thanks guys. time to find a plan b.
Now, if it's his server, there are surely other ways, but it's still quite complicated, I would think.there is a php irc extension (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/ref.ircg.php">http://www.php.net/manual/en/ref.ircg.php</a><!-- m -->), but chances are your server doesnt have it. it is possible to do it through sockets, although im not exactly sure how. you can try lokking at the source of poBot (<!-- m --><a class="postlink" href="http://www.kuykendall.org/poBot/">http://www.kuykendall.org/poBot/</a><!-- m -->), which is a php irc bot.i guess maybe i was looking at this whole thing wrong. I know there are applets which allow users to enter a chat room on your site, but the chat room is actually just an IRC channel. I assumed that this was just a public IRC channel on some public server and maybe my PHP script could then ask that server for a list of users in the channel. i guess that's not how it works though... thanks guys. time to find a plan b.