irc (Pleas help)

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
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

irc (Pleas help)

Post 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.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

User avatar
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

Post by spamyboy »

No sorry, thouse websites that you gave me, was to hard or didn't was i lookking for. :oops:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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. :)
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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..
Post Reply