Jump to content

IRCBot failing to connect.


iou

Recommended Posts

Hi, I'm new here and completely new to PHP as well, but I'm trying to learn.

I've asked around some of my friends, they can't figure out where the problem lays.

So I thought I'd find some PHP community for some professional help.

 

Warning: fsockopen() [function.fsockopen]: unable to connect to irc.gtanet.com:6667 (Connection refused) in /home/***/public_html/***/***/testbot.php on line 13

FAILZOOR

$fp = fsockopen($server, $port) or die('FAILZOOR');

 

Some of my friends suspects socket blocking, but that isn't the case as I've spoken to the one who owns the web server.

It doesn't error using port 80, but then of course it won't join the IRC.

At the same time the owner of the web server says hes sure port 6667 isn't blocked.

 

Any suggestions, clues?

 

Link to comment
https://forums.phpfreaks.com/topic/207040-ircbot-failing-to-connect/
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.