Hello guys, i found this script from google.
The code is working fine. I want add a few function from this script:
1) Auto ping every 25sec or something (im not sure what function $errstr, 30)) from the script)
2) Send notification to emel when the IP/Server was down
Is there any pro php here? Thanks.
Code:
[COLOR=#000000]<?php[/COLOR]
if (!$socket = @fsockopen("IP.HERE", 80, $errno, $errstr, 30))
{
echo "<font color='red'><strong>Offline!</strong></font>";
}
else
{
echo "<font color='green'><strong>Online!/strong></font>";
fclose($socket);
}
[COLOR=#000000]?>[/COLOR]
The code is working fine. I want add a few function from this script:
1) Auto ping every 25sec or something (im not sure what function $errstr, 30)) from the script)
2) Send notification to emel when the IP/Server was down
Is there any pro php here? Thanks.