Jump to content

Connect to an IRC Server with PHP


Aureole

Recommended Posts

I'm trying to connect to an IRC Server with PHP and I always get an error similar to this:

 

Warning: fsockopen() [function.fsockopen]: unable to connect to irc.quakenet.org:6667 in /home/veraci7y/public_html/playground/connecttoirc.php on line 29

 

<?php
$server_host = "irc.quakenet.org";
$server_port = 6667;
$server_chan = "#help";

// Line 29:
$server['SOCKET'] = fsockopen( $server_host, $server_port, $errno, $errstr, 2 );
?>

Link to comment
https://forums.phpfreaks.com/topic/98341-connect-to-an-irc-server-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.