Mijn IRC-Bot draaide 100% goed en toen ik hem vandaag opnieuw wil opstarten na een kleine aanpassing zegt hij:
Ook als ik de code heb verwijderd uit het bestand geeft hij dezelfde error.
Dit is de PHP-file (eerste 20 regels):
en de config.php is ook helemaal in orde (werd niet ge-edit)
code:
1
2
3
4
5
| Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: gethostbyname failed in c:\inetpub\wwwroot\irc\irc.php on line 14 Warning: fsockopen() [function.fsockopen]: unable to connect to irc.quakenet.org:6667 in c:\inetpub\wwwroot\irc\irc.php on line 14 Warning: fgets(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\irc\irc.php on line 18 |
Ook als ik de code heb verwijderd uit het bestand geeft hij dezelfde error.
Dit is de PHP-file (eerste 20 regels):
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| // Do not touch this settings! require 'config.php'; error_reporting(63); set_time_limit(0); ignore_user_abort(true); $startuptime = time(); //Database connection $Conn = mysql_connect("$databasehost", "$databaseuser", "$databasepassword") or die("Cannot connect to the database"); mysql_select_db("$databasename", $Conn) or die("Cannot select the database"); // Connection with the server to obtain the data $input = fsockopen($server, $port, $errno, $errstr, 99999); $loop = 0; $connected = 0; while ($line = fgets($input, 512)){ $el = explode(' ', $line); |
en de config.php is ook helemaal in orde (werd niet ge-edit)