viewing paste Unknown #17537 | PHP

Posted on the
1 2 3 4 5 6 7
function ping_server($ip,$port) {
        $ping = @fsockopen($ip,$port,$errno,$errstr,0.4);
        if($ping)
            return 1;
        else
            return 0;
}
Viewed 302 times, submitted by unknown.