function ping( $host, $action )
{
$http = fsockopen( $host, 80, $errno, $errstr, 1 );
if ( $http )
{
fwrite( $http, "GET /" . $action . " HTTP/1.0\r\nAccept: */*\r\nHost: " .
$host . "\r\n\r\n" );
fclose( $http );
}
}