How to have realm status a website not hosted on server computer?
i know it evolves having the status dumping to the website but how?
How to have realm status a website not hosted on server computer?
i know it evolves having the status dumping to the website but how?
MSN- [email protected]
The following is PHP to check the status:
You'll want to change $host and $port
Code:$fp = @fsockopen ($host,$port,$errno,$errstr, 0.5); if ($fp) {echo "online";} else {echo "offline";} @fclose($fp);
Feel free to contact me if you need help or would like to assist me in one of my many projects.
Last edited by *Alexz*; 08-02-2009 at 12:30 PM.
MSN- [email protected]
$host: the IP or servername of your host
$port: 3306 (default)
$errno: the errornumber (6 by default)
$errorstr: just leave it to that
that doesent work mine says online eaven if its offline...
PHP: | | | | | | | | | |HTML: | | | | | | | | | |