<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WildPHP &#187; Scripts</title>
	<atom:link href="http://www.wildphp.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wildphp.com</link>
	<description>Free Video Tutorials, Scripts, and Articles for You!</description>
	<lastBuildDate>Sun, 08 Jan 2012 00:18:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple PHP IRC Logger</title>
		<link>http://www.wildphp.com/scripts/simple-php-irc-logger/</link>
		<comments>http://www.wildphp.com/scripts/simple-php-irc-logger/#comments</comments>
		<pubDate>Tue, 11 May 2010 01:14:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.wildphp.com/?p=307</guid>
		<description><![CDATA[Description Simple PHP IRC Logger is a simple PHP IRC Bot class designed to connect to an IRC server, and generate HTML log files. It is based on a modified version of  Simple PHP IRC Bot. This script is designed and intended to be built upon for your needs, so if you have any problems [...]]]></description>
			<content:encoded><![CDATA[<h1>Description</h1>
<p>Simple PHP IRC Logger is a simple PHP IRC Bot class designed to connect to an IRC server, and generate HTML log files. It is based on a modified version of  <a href="http://www.wildphp.com/scripts/simple-php-irc-bot/">Simple PHP IRC Bot</a>. This script is designed and intended to be built upon for your needs, so if you have any problems please ask in our <a href="http://forum.wildphp.com">forum</a>. Please also follow some of the notes below for guidance. For future updates and scripts, don’t forget to <a href="http://feeds.feedburner.com/wildphp">subscribe</a>.</p>
<h1>Features and Functions</h1>
<ul>
<li>!join #channel – Joins the specified IRC channel</li>
<li>!part #channel – Leaves the specified IRC channel</li>
<li>!say #channel Message – Says message in the specified IRC channel</li>
<li>!restart – Quits and restarts the script. (Helpful while testing the  script)</li>
<li>!shutdown – Quits and stops the script.</li>
</ul>
<p>Usage and output:</p>
<blockquote><p>&lt;random-user&gt; !say #nystic_chat hello there<br />
&lt;wildphp-bot&gt; hello there</p></blockquote>
<ul>
<li>Enable/Disable Logging (PHP Script Variable)</li>
<li>Enable/Disable Logging Warning Message (PHP Script Variable)</li>
</ul>
<p>Note the script in the current version of the script, all joined channels will be added to the single log file for the day.</p>
<h1>Installation</h1>
<ol>
<li>Download or copy paste the script from this page</li>
<li>(Optional) If downloaded rename the file to bot.php ( Sorry, the  blog will only allow me to upload it as log-bot.txt)</li>
<li>Edit the $config array in the script to the server settings, should  be self explanatory</li>
<li>Download and install <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a></li>
<li>Place bot.php in the htdocs folder of your XAMPP installation</li>
<li>Don’t forget to start the Apache server by pressing the start button  in the XAMPP Control Panel</li>
<li>Go to <a href="http://localhost/bot.php">http://localhost/log-bot.php</a>,  and the bot should connect and join the channel you specified in about  30 seconds</li>
<li>If you have warning enabled the bot should say &#8220;Chat Logging has been [Enabled]&#8221; when entering the default room</li>
<li>If you have logging enabled an HTML file should appear in the same directory, it will be updated when anyone says something in the room</li>
</ol>
<h1>Code</h1>
<p>Download <a href="http://www.wildphp.com/wp-content/uploads/2010/05/log-bot.txt" target="_blank">log-bot.txt</a> (Right click, Save As…)</p>
<p>or</p>
<pre class="brush: php">

&lt;?php

/**
* Simple PHP IRC Logger
*
* PHP Version 5
*
* LICENSE: This source file is subject to Creative Commons Attribution
* 3.0 License that is available through the world-wide-web at the following URI:
* http://creativecommons.org/licenses/by/3.0/.  Basically you are free to adapt
* and use this script commercially/non-commercially. My only requirement is that
* you keep this header as an attribution to my work. Enjoy!
*
* @category   Chat Room Scipt
* @package    Simple PHP IRC Logger
* @author     Super3boy &lt;admin@wildphp.com&gt;
* @copyright  2010, The Nystic Network
* @license    http://creativecommons.org/licenses/by/3.0/
* @link       http://wildphp.com (Visit for updated versions and more free scripts!)
* @version    1.0.0 (Last updated 04-04-2010)
*
*/

//So the bot doesn&#039;t stop.
set_time_limit(0);
ini_set(&#039;display_errors&#039;, &#039;on&#039;);

/* --- Varibles and Config Info --- */

//Sample connection data.
$config = array(
//General Config Info
&#039;server&#039; =&gt; &#039;chat.freenode.net&#039;,
&#039;port&#039;   =&gt; 6667,
&#039;name&#039;   =&gt; &#039;wildphp-bot&#039;,
&#039;nick&#039;   =&gt; &#039;wildphp-bot&#039;,
&#039;pass&#039;   =&gt; &#039;&#039;,

//Logging Config Info
&#039;channel&#039; =&gt; &#039;#nystic_chat&#039;,
&#039;logging&#039; =&gt; true,
&#039;warning&#039; =&gt; true,
);

/*
//Set your connection data.
$config = array(
//General Config Info
&#039;server&#039; =&gt; &#039;irc.example.com&#039;,
&#039;port&#039;   =&gt; 6667,
&#039;name&#039;   =&gt; &#039;real name&#039;,
&#039;nick&#039;   =&gt; &#039;user&#039;,
&#039;pass&#039;   =&gt; &#039;pass&#039;,

//Logging Config Info
&#039;channel&#039; =&gt; &#039;#channel&#039;,
&#039;logging&#039; =&gt; true,
&#039;warning&#039; =&gt; true,
);
*/

/* --- IRCBot Class --- */

class IRCBot {

//This is going to hold our TCP/IP connection
var $socket;

//This is going to hold all of the messages both server and client
var $ex = array();
//var $logging = true;

/*
Construct item, opens the server connection, logs the bot in
@param array
*/

function __construct($config)
{
$this-&gt;socket = fsockopen($config[&#039;server&#039;], $config[&#039;port&#039;]);
$this-&gt;login($config);
$this-&gt;main($config);
}

/*
Logs the bot in on the server
@param array
*/

function login($config)
{
$this-&gt;send_data(&#039;USER&#039;, $config[&#039;nick&#039;].&#039; wildphp.com &#039;.$config[&#039;nick&#039;].&#039; :&#039;.$config[&#039;name&#039;]);
$this-&gt;send_data(&#039;NICK&#039;, $config[&#039;nick&#039;]);
$this-&gt;join_channel($config[&#039;channel&#039;]);

if($config[&#039;logging&#039;]) {
$date = date(&quot;n-j-y&quot;);
$time = date(&#039;h:i:s A&#039;);
$logfile = fopen(&quot;$date-log.html&quot;,&quot;a&quot;);
fwrite($logfile,&quot;&lt;br/&gt;**************** Logging Started at $time ****************&lt;br/&gt;&quot;);
fclose($logfile);

//Warn that logging has been enabled
if($config[&#039;warning&#039;]) {
$this-&gt;send_data(&#039;PRIVMSG &#039;.$config[&#039;channel&#039;].&#039; :&#039;, &quot;Chat Logging has been [Enabled]&quot;);
}
}
}

/*
This is the workhorse function, grabs the data from the server and displays on the browser
*/

function main($config)
{
$data = fgets($this-&gt;socket, 256);

echo nl2br($data);

flush();

$this-&gt;ex = explode(&#039; &#039;, $data);

if($this-&gt;ex[0] == &#039;PING&#039;)
{
$this-&gt;send_data(&#039;PONG&#039;, $this-&gt;ex[0]); //Plays ping-pong with the server to stay connected.
}

//Logs the chat
if($config[&#039;logging&#039;])
{
$logtxt = $this-&gt;filter_log($this-&gt;ex[1], $this-&gt;ex[2], $this-&gt;ex[0], $this-&gt;get_msg($this-&gt;ex)); //Gets human readable text from irc data
if($logtxt != null) { //Writes to log if it is a message
$date = date(&quot;n-j-y&quot;);
$logfile = fopen(&quot;$date-log.html&quot;,&quot;a&quot;);
fwrite($logfile,&quot;$logtxt&lt;br /&gt;&quot;);
fclose($logfile);
}
}

$command = str_replace(array(chr(10), chr(13)), &#039;&#039;, $this-&gt;ex[3]);

switch($command) //List of commands the bot responds to from a user.
{
case &#039;:!join&#039;:
$this-&gt;join_channel($this-&gt;ex[4]);
break;

case &#039;:!quit&#039;:
$this-&gt;send_data(&#039;QUIT&#039;, &#039;Wildphp.com Made Bot&#039;);
break;

case &#039;:!op&#039;:
$this-&gt;op_user();
break;

case &#039;:!deop&#039;:
$this-&gt;op_user(&#039;&#039;,&#039;&#039;, false);
break;

case &#039;:!protect&#039;:
$this-&gt;protect_user();
break;

case &#039;:!say&#039;:
$message = &quot;&quot;;
for($i=4; $i &lt;= (count($this-&gt;ex)); $i++)
{
$message .= $this-&gt;ex[$i].&quot; &quot;;
}

$this-&gt;send_data(&#039;PRIVMSG &#039;.$config[&#039;channel&#039;].&#039; :&#039;, $message);
break;

case &#039;:!restart&#039;:
//Warn that logging has been disabled
if($config[&#039;warning&#039;]) {
$this-&gt;send_data(&#039;PRIVMSG &#039;.$config[&#039;channel&#039;].&#039; :&#039;, &quot;Chat Logging has been [Disabled]&quot;);
}

echo &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;3\&quot;&gt;&quot;;
if($config[&#039;logging&#039;]) {
$date = date(&quot;n-j-y&quot;);
$time = date(&#039;h:i:s A&#039;);
$logfile = fopen(&quot;$date-log.html&quot;,&quot;a&quot;);
fwrite($logfile,&quot;&lt;br/&gt;**************** Logging Ended at $time ****************&lt;br/&gt;&quot;);
fclose($logfile);
}
exit;
case &#039;:!shutdown&#039;:
//Warn that logging has been disabled
if($config[&#039;warning&#039;]) {
$this-&gt;send_data(&#039;PRIVMSG &#039;.$config[&#039;channel&#039;].&#039; :&#039;, &quot;Chat Logging has been [Disabled]&quot;);
}

if($config[&#039;logging&#039;]) {
$date = date(&quot;n-j-y&quot;);
$time = date(&#039;h:i:s A&#039;);
$logfile = fopen(&quot;$date-log.html&quot;,&quot;a&quot;);
fwrite($logfile,&quot;&lt;br/&gt;**************** Logging Ended at $time ****************&lt;br/&gt;&quot;);
fclose($logfile);
}
exit;
}

$this-&gt;main($config);
}

/* --- IRCBot Class&#039;s Functions --- */

function filter_log($type, $chan, $nick, $msg)
{
$nick = ltrim($nick, &quot;:&quot;);
$nick = substr($nick, 0, strpos($nick, &quot;!&quot;));

$msg = ltrim($msg, &quot;:&quot;);

if($type == &quot;PRIVMSG&quot;)
{
return date(&quot;[H:i]&quot;).&quot; &amp;amp;amp;amp;lt;&quot;.$nick.&quot;&amp;amp;amp;amp;gt; &quot;.$msg;
}
return null    ;
}

function get_msg($arr)
{
$message = &quot;&quot;;
for($i=3; $i &lt;= (count($this-&gt;ex)); $i++)
{
$message .= $this-&gt;ex[$i].&quot; &quot;;
}
return $message;
}

function send_data($cmd, $msg = null) //displays stuff to the broswer and sends data to the server.
{
if($msg == null)
{
fputs($this-&gt;socket, $cmd.&quot;\r\n&quot;);
echo &#039;&lt;strong&gt;&#039;.$cmd.&#039;&lt;/strong&gt;&lt;br /&gt;&#039;;
} else {

fputs($this-&gt;socket, $cmd.&#039; &#039;.$msg.&quot;\r\n&quot;);
echo &#039;&lt;strong&gt;&#039;.$cmd.&#039; &#039;.$msg.&#039;&lt;/strong&gt;&lt;br /&gt;&#039;;
}

}

function join_channel($channel) //Joins a channel, used in the join function.
{
if(is_array($channel))
{
foreach($channel as $chan)
{
$this-&gt;send_data(&#039;JOIN&#039;, $chan);
}

} else {
$this-&gt;send_data(&#039;JOIN&#039;, $channel);
}
}

function protect_user($user = &#039;&#039;)
{
if($user == &#039;&#039;)
{
if(php_version() &gt;= &#039;5.3.0&#039;)
{
$user = strstr($this-&gt;ex[0], &#039;!&#039;, true);
} else {
$length = strstr($this-&gt;ex[0], &#039;!&#039;);
$user   = substr($this-&gt;ex[0], 0, $length);
}
}

$this-&gt;send_data(&#039;MODE&#039;, $this-&gt;ex[2] . &#039; +a &#039; . $user);
}

function op_user($channel = &#039;&#039;, $user = &#039;&#039;, $op = true) {
if($channel == &#039;&#039; || $user == &#039;&#039;)
{
if($channel == &#039;&#039;)
{
$channel = $this-&gt;ex[2];
}

if($user == &#039;&#039;)
{

if(php_version() &gt;= &#039;5.3.0&#039;)
{
$user = strstr($this-&gt;ex[0], &#039;!&#039;, true);
} else {
$length = strstr($this-&gt;ex[0], &#039;!&#039;);
$user   = substr($this-&gt;ex[0], 0, $length);
}
}
}

if($op)
{
$this-&gt;send_data(&#039;MODE&#039;, $channel . &#039; +o &#039; . $user);
} else {
$this-&gt;send_data(&#039;MODE&#039;, $channel . &#039; -o &#039; . $user);
}
}
}

//Start the bot
$bot = new IRCBot($config);
?&gt;
</pre>
<h1>Warning</h1>
<p>This script uses PHP sockets, and most shared hosting and some  servers have it disabled by default. This script runs continuously so it  is not recommended to run on shared hosting accounts. We recommend you  run it locally using the instructions below.</p>
<h1>Help/Support</h1>
<p>If you are having any problems with the PHP bot, need help extending it, or just have an idea, feel free to make a post on <a href="http://wildphp.com/forum">our forum</a>.</p>
<h1>Conclusion</h1>
<p>Thanks for trying out our Simple PHP IRC Logger. You can check out the base class <a href="http://www.wildphp.com/scripts/simple-php-irc-bot/">here</a>. If their are any bugs in the  code <a href="../contact/">please let us know</a> right away. Also thanks to <a href="http://acidavengers.co.uk/">KillerAuzzie</a> for the for <a href="http://acidavengers.co.uk/code/php/creating-a-php-based-irc-bot/">tutorial</a>/basecode.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wildphp.com/scripts/simple-php-irc-logger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple PHP IRC Bot</title>
		<link>http://www.wildphp.com/scripts/simple-php-irc-bot/</link>
		<comments>http://www.wildphp.com/scripts/simple-php-irc-bot/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 03:40:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.wildphp.com/?p=219</guid>
		<description><![CDATA[Description Simple PHP IRC Bot, is a simple PHP IRC Bot class designed to connect to an IRC server, run a few simple commands.  This script is designed and intended to be built upon, perhaps you could build a PHP IRC Client, so please follow some of the notes below for guidance. This bot is [...]]]></description>
			<content:encoded><![CDATA[<h1>Description</h1>
<p>Simple PHP IRC Bot, is a simple PHP IRC Bot class designed to connect to an IRC server, run a few simple commands.  This script is designed and intended to be built upon, perhaps you could build a PHP IRC Client, so please follow some of the notes below for guidance. This bot is based off a PHP IRC Bot tutorial done on our sister site. In the coming weeks more specialized PHP IRC Bots will be made from this script. It will be expanded and modified for many uses including <a href="http://www.wildphp.com/scripts/simple-php-irc-logger/"><strong>channel logging</strong></a> and <strong>channel moderation</strong>, so don&#8217;t forget to <a href="http://feeds.feedburner.com/wildphp">subscribe</a>.</p>
<h1>Warning</h1>
<p>This script uses PHP sockets, and most shared hosting and some servers have it disabled by default. This script runs continuously so it is not recommended to run on shared hosting accounts. We recommend you run it locally using the instructions below.</p>
<h1>Installation</h1>
<ol>
<li>Download or copy paste the script from this page</li>
<li>(Optional) If downloaded rename the file to bot.php ( Sorry, the blog will only allow me to upload it as bot.txt)</li>
<li>Edit the $config array in the script to the server settings, should be self explanatory</li>
<li>Download and install <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a></li>
<li>Place bot.php in the htdocs folder of your XAMPP installation</li>
<li>Don&#8217;t forget to start the Apache server by pressing the start button in the XAMPP Control Panel</li>
<li>Go to <a href="http://localhost/bot.php">http://localhost/bot.php</a>, and the bot should connect and join the channel you specified in about 30 seconds</li>
</ol>
<h1>Code</h1>
<p>Download <a href="http://www.wildphp.com/wp-content/uploads/2010/03/bot.txt" target="_blank">bot.txt</a> (Right click, Save As&#8230;)</p>
<p>or</p>
<pre class="brush: php">

&lt;?php

/**
* Simple PHP IRC Bot
*
* PHP Version 5
*
* LICENSE: This source file is subject to Creative Commons Attribution
* 3.0 License that is available through the world-wide-web at the following URI:
* http://creativecommons.org/licenses/by/3.0/.  Basically you are free to adapt
* and use this script commercially/non-commercially. My only requirement is that
* you keep this header as an attribution to my work. Enjoy!
*
* @category   Chat Room Scipt
* @package    Simple PHP IRC Bot
* @author     Super3boy &lt;admin@wildphp.com&gt;
* @copyright  2010, The Nystic Network
* @license    http://creativecommons.org/licenses/by/3.0/
* @link       http://wildphp.com (Visit for updated versions and more free scripts!)
* @version    1.0.0 (Last updated 03-20-2010)
*
*/

//So the bot doesnt stop.
set_time_limit(0);
ini_set(&#039;display_errors&#039;, &#039;on&#039;);

//Sample connection data.
$config = array(
&#039;server&#039; =&gt; &#039;chat.freenode.net&#039;,
&#039;port&#039;   =&gt; 6667,
&#039;channel&#039; =&gt; &#039;#nystic_chat&#039;,
&#039;name&#039;   =&gt; &#039;wildphp-bot&#039;,
&#039;nick&#039;   =&gt; &#039;wildphp-bot&#039;,
&#039;pass&#039;   =&gt; &#039;&#039;,
);

/*
//Set your connection data.
$config = array(
&#039;server&#039; =&gt; &#039;example.com&#039;,
&#039;port&#039;   =&gt; 6667,
&#039;channel&#039; =&gt; &#039;#channel&#039;,
&#039;name&#039;   =&gt; &#039;real name&#039;,
&#039;nick&#039;   =&gt; &#039;user&#039;,
&#039;pass&#039;   =&gt; &#039;pass&#039;,
);
*/

class IRCBot {

//This is going to hold our TCP/IP connection
var $socket;

//This is going to hold all of the messages both server and client
var $ex = array();

/*

Construct item, opens the server connection, logs the bot in
@param array

*/

function __construct($config)

{
$this-&gt;socket = fsockopen($config[&#039;server&#039;], $config[&#039;port&#039;]);
$this-&gt;login($config);
$this-&gt;main($config);
}

/*

Logs the bot in on the server
@param array

*/

function login($config)
{
$this-&gt;send_data(&#039;USER&#039;, $config[&#039;nick&#039;].&#039; wildphp.com &#039;.$config[&#039;nick&#039;].&#039; :&#039;.$config[&#039;name&#039;]);
$this-&gt;send_data(&#039;NICK&#039;, $config[&#039;nick&#039;]);
$this-&gt;join_channel($config[&#039;channel&#039;]);
}

/*

This is the workhorse function, grabs the data from the server and displays on the browser

*/

function main($config)
{
$data = fgets($this-&gt;socket, 256);

echo nl2br($data);

flush();

$this-&gt;ex = explode(&#039; &#039;, $data);

if($this-&gt;ex[0] == &#039;PING&#039;)
{
$this-&gt;send_data(&#039;PONG&#039;, $this-&gt;ex[1]); //Plays ping-pong with the server to stay connected.
}

$command = str_replace(array(chr(10), chr(13)), &#039;&#039;, $this-&gt;ex[3]);

switch($command) //List of commands the bot responds to from a user.
{
case &#039;:!join&#039;:
$this-&gt;join_channel($this-&gt;ex[4]);
break;
case &#039;:!part&#039;:
$this-&gt;send_data(&#039;PART &#039;.$this-&gt;ex[4].&#039; :&#039;, &#039;Wildphp.com Free IRC Bot Script&#039;);
break;

case &#039;:!say&#039;:
$message = &quot;&quot;;
for($i=5; $i &lt;= (count($this-&gt;ex)); $i++)
{
$message .= $this-&gt;ex[$i].&quot; &quot;;
}

$this-&gt;send_data(&#039;PRIVMSG &#039;.$this-&gt;ex[4].&#039; :&#039;, $message);
break;

case &#039;:!restart&#039;:
echo &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;5\&quot;&gt;&quot;;
exit;
case &#039;:!shutdown&#039;:
$this-&gt;send_data(&#039;QUIT&#039;, &#039;Wildphp.com Free IRC Bot Script&#039;);
exit;
}

$this-&gt;main($config);
}

function send_data($cmd, $msg = null) //displays stuff to the broswer and sends data to the server.
{
if($msg == null)
{
fputs($this-&gt;socket, $cmd.&quot;\r\n&quot;);
echo &#039;&lt;strong&gt;&#039;.$cmd.&#039;&lt;/strong&gt;&lt;br /&gt;&#039;;
} else {

fputs($this-&gt;socket, $cmd.&#039; &#039;.$msg.&quot;\r\n&quot;);
echo &#039;&lt;strong&gt;&#039;.$cmd.&#039; &#039;.$msg.&#039;&lt;/strong&gt;&lt;br /&gt;&#039;;
}

}

function join_channel($channel) //Joins a channel, used in the join function.
{

if(is_array($channel))
{
foreach($channel as $chan)
{
$this-&gt;send_data(&#039;JOIN&#039;, $chan);
}

} else {
$this-&gt;send_data(&#039;JOIN&#039;, $channel);
}
}
}

//Start the bot
$bot = new IRCBot($config);
?&gt;
</pre>
<h1>Features and Functions</h1>
<ul>
<li>!join #channel &#8211; Joins the specified IRC channel</li>
<li>!part #channel &#8211; Leaves the specified IRC channel</li>
<li>!say #channel Message &#8211; Says message in the specified IRC channel</li>
<li>!restart &#8211; Quits and restarts the script. (Helpful while testing the script)</li>
<li>!shutdown &#8211; Quits and stops the script.</li>
</ul>
<p>Usage and output:</p>
<blockquote><p>&lt;random-user&gt; !say #nystic_chat hello there<br />
&lt;wildphp-bot&gt; hello there</p></blockquote>
<h1><strong>Code Lines of Note</strong></h1>
<ul>
<li>Lines 24 &#8211; 48: This is where you set your connection data</li>
<li>Line 101: Prints all the output you see on the screen</li>
<li>Line 115-140: Contains all commands</li>
<li>Line 180: Starts the bot</li>
</ul>
<h1>Help/Support</h1>
<p>If you are having any problems with the PHP bot, need help extending it, or just have an idea, feel free to make a post on <a href="http://wildphp.com/forum">our forum</a>.</p>
<h1>Extensions</h1>
<p>Coding.layne build his own version of this PHP Bot. You can take a look at it <a href="https://bitbucket.org/pogosheep/irc-bot">here</a>.</p>
<h1>Conclusion</h1>
<p>Thanks for trying out our PHP IRC bot. If their are any bugs in the code <a href="/contact/">please let us know</a> right away. Also thanks to <a href="http://acidavengers.co.uk/">KillerAuzzie</a> for the for <a href="http://acidavengers.co.uk/code/php/creating-a-php-based-irc-bot/">tutorial</a>/basecode.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wildphp.com/scripts/simple-php-irc-bot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

