Page 1 of 1

irc (Pleas help)

Posted: Mon Dec 26, 2005 2:35 pm
by spamyboy
Ok, So here is what I'm looking for. I have irc chanel - 'spamyboy', and it's placed in server for ex. irc.omnitel.neta and what I want to do it's to display chanel status in my website. So basibly i need to display only curent number of users curently in my channel, but it's als would be good to show for e.g. Is spamyboy online and etc.

-------------------------------------------
- Sorry for my english -
- I'm still learning ;) -
- And I like this language :) -
-------------------------------------------


I know that there is many good, 2000000x time's better than me scripters in this forum, so pleas help me.

Posted: Mon Dec 26, 2005 3:11 pm
by m3mn0n

Posted: Tue Dec 27, 2005 3:15 am
by spamyboy
No sorry, thouse websites that you gave me, was to hard or didn't was i lookking for. :oops:

Posted: Tue Dec 27, 2005 10:31 am
by m3mn0n
Uh.. yes they are.
Net_SmartIRC is a PHP class for communication with IRC networks,
which conforms to the RFC 2812 (IRC protocol).
It's an API that handles all IRC protocol messages.
This class is designed for creating IRC bots, chats and show irc related info on webpages.
It might be tricky to set up if you're new to PHP, but Googling around for a tutorial, and reading the documentation helps. :) And you can always post help questions here at the PHPDN.

If it's out of your league even then, then I recommend hiring someone to do the work for you. :)

Posted: Tue Dec 27, 2005 11:12 am
by foobar
Instead of installing an extension, which may be tricky depending on your OS, get an IRC class from phpclasses.org.

Follow this link for PHP classes pertaining to IRC. You have to register with them to be able to download, though, if my memory doesn't fail me.

Good luck.

Posted: Tue Dec 27, 2005 8:43 pm
by Ambush Commander
Actually, I tried doing this before using php-irc. Never got beyond writing the <?php ?> block, but maybe that's because I gave up too soon and didn't read the README. Good luck to you too.

Posted: Wed Dec 28, 2005 1:14 am
by Jenk

Posted: Wed Dec 28, 2005 6:07 am
by timvw
For that kind of "tricks" i prefer a java/c++ client that runs as a background process on a shell somewhere (and then all messages ( alerts / notices / events) that intrest me are logged in a database.. On the frontend i write a simple php script that queries that database and outputs the results..