I get an erro when i want to ping an ip?
Posted: Sun May 25, 2003 5:45 am
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site48/web/dbz/serverstatus.php on line 4
The server isn't located at my room. !! Is ther an other way to do this thing?
The server isn't located at my room. !! Is ther an other way to do this thing?
Code: Select all
<?php
$ip='222.222.222.222'; //edit: missing '
$port=80;
$fp = fsockopen ($ip, $port, &$errno, &$errstr, 30);
if (!$fp) {
echo "<font face="verdana" size=2 color="#000000"><b>Forum server is not online</b>";
echo "<META HTTP-EQUIV="refresh" content="6;URL=$Link0">";
} else {
echo "<font face="verdana" size=2 color="#000000"><b>Forum server is online 1 moment please.</b>";
echo "<META HTTP-EQUIV="refresh" content="6;URL=http://test/test/forum">";
}
?>