Help - Search - Members - Calendar
Full Version: IRC PHP Client Tutorial
Weborum Webmaster Forum > TUTORIAL ARCHIVE - tutorials & scripts to save you scouring the internet. Please feel free to add your own. > PHP Tutorials & scripts
xanderman
Many of you have probaly heard of, IRC (Internet Relay Chat). Developed in 1988 by Jarkko Oikarinen, it was a great way to communicate, it still is.

Today, i will show you how to create a simple irc client that will Recive from an IRC server. If intresent is shown in this tutorial i will make a second one on how to send text as well.

Lets Begin.
First we will need to create a file that contains the data for the IRC server (I.E. Serverhost, channel, port)

Config.php
CODE
<?php
//The server host is the IP or DNS of the IRC server.
$server_host = "irc.smirl.com";
//Server Port, this is the port that the irc server is running on. Deafult: 6667
$server_port = 6667;
//Server Chanel, After connecting to the IRC server this is the channel it will join.
$server_chan = "#smirl";
?>


What the....
This is all its letting me post, i get a 404 Error if i add the rest.

*sigh* i put the tut in a .txt file here ya go
bassrek
QUOTE(xanderman @ Jul 22 2006, 06:45 PM) [snapback]34663[/snapback]

What the....
This is all its letting me post, i get a 404 Error if i add the rest.

*sigh* i put the tut in a .txt file here ya go


Not quite sure why that's happening. I have a feeling maybe IPB doesn't like some of the commands in the square brackets, but that's just a guess. Leo would have to look into that.
Waleed
Great tutorial! thumbsupsmileyanim.gif
xanderman
QUOTE(Waleed Zuberi @ Jul 24 2006, 08:07 AM) [snapback]34675[/snapback]

Great tutorial! thumbsupsmileyanim.gif

Thanks.
gothicreaper220
Just a note that this breaks the Internet Relay Chat RFC and thus will probably incompatible with many Internet Relay Chat servers.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.