Search found 2 matches
- Wed Jan 16, 2013 7:55 pm
- Forum: PHP
- Topic: Warning: Missing argument 2 for server_online()
- Replies: 3
- Views: 965
Re: Warning: Missing argument 2 for server_online()
The error message says it all. You are defining the function here: <?php function server_online($server, $port){ fsockopen($server, $port, $errno, $errstr); return ($errno === 0); } ?> Note that you have two arguments when defining it. $server, and $port. Now, when you are using it here: <?php var_...
- Wed Jan 16, 2013 7:38 pm
- Forum: PHP
- Topic: Warning: Missing argument 2 for server_online()
- Replies: 3
- Views: 965
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 "25...