Search found 2 matches

by SnipeLike
Wed Jan 16, 2013 7:55 pm
Forum: PHP
Topic: Warning: Missing argument 2 for server_online()
Replies: 3
Views: 763

Re: Warning: Missing argument 2 for server_online()

The error message says it all. You are defining the function here: [syntax=php]<?php function server_online($server, $port){ fsockopen($server, $port, $errno, $errstr); return ($errno === 0); } ?>[/syntax] Note that you have two arguments when defining it. $server, and $port. Now, when you are usin...
by SnipeLike
Wed Jan 16, 2013 7:38 pm
Forum: PHP
Topic: Warning: Missing argument 2 for server_online()
Replies: 3
Views: 763

Warning: Missing argument 2 for server_online()

hi i got allways the same warning on my php page: Warning: Missing argument 2 for server_online(), called in C:\xampp\htdocs\index.php on line 137 and defined in C:\xampp\htdocs\minecraftserver.inc.php on line 3 Warning: fsockopen(): unable to connect to 25565:0 (Failed to parse address "25565&...