Get IRC chatroom data from php script?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
bznutz
Forum Commoner
Posts: 58
Joined: Mon Dec 09, 2002 9:52 pm
Location: Here
Contact:

Get IRC chatroom data from php script?

Post by bznutz »

I have a web site: http://www.sarcastic-bastard.com
and I have a chatroom on an irc server for this site. What I want to do is be able to list who is in the chat room from the front page of my site.
I noticed there is an IRC library for PHP but it seemed to be for running an active IRC session from the web. I don't want to do that. All I want is to take a quick peek at the chatroom to see who's there.

Any idears?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you would have to connect to the irc-server anyway and that for each request. On some irc-networks it takes quite a while.
An irc-bot (the library you found probably is) in your channel providing that kind of information sounds more reasonable.
And think of all those features a bot may provide, e.g. an infobot of some kind :roll:
User avatar
bznutz
Forum Commoner
Posts: 58
Joined: Mon Dec 09, 2002 9:52 pm
Location: Here
Contact:

Post by bznutz »

so dude, what are you saying? Use the web server as a bot using php?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

for example, although afaik irc-support is better with perl
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

well if you get that library, it should be farily easy to list the active users in the room with php.

maybe someone who has used it is of more help, i've yet to test it for myself. ;)
User avatar
bznutz
Forum Commoner
Posts: 58
Joined: Mon Dec 09, 2002 9:52 pm
Location: Here
Contact:

Post by bznutz »

Crap.
Can you suggest a site or forum I can go to in order to pump more people for information?
Post Reply