+ Reply to Thread
Results 1 to 2 of 2

Thread: Need Help Making Sataus Checker

  1. #1
    coolv1994 is offline x10 Elder coolv1994 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    506

    Question Need Help Making Sataus Checker

    Ok I've tried for about a week or so tring to make a server status checker using fsocketopen() and all that does is tell me if my no-ip is portforwarded. I was wondering if someone could help me make a status checker that will check the port and will ping my server like RuneLocus does. It is a private server that is ran with Java and uses the port 43594. If anyone has an idea please help.

  2. #2
    supajason's Avatar
    supajason is offline x10 Lieutenant supajason is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    England........:-)
    Posts
    288

    Re: Need Help Making Sataus Checker

    Source: http://www.phptoys.com/e107_plugins/content/content.php?content.41

    PHP Code:
    <?php

    // Function to check response time
    function pingDomain($domain){
        
    $starttime microtime(true);
        
    $file      fsockopen ($domain80$errno$errstr10);
        
    $stoptime  microtime(true);
        
    $status    0;

        if (!
    $file$status = -1;  // Site is down
        
    else {
            
    fclose($file);
            
    $status = ($stoptime $starttime) * 1000;
            
    $status floor($status);
        }
        return 
    $status;
    }
    ?>
    supajason was here

+ Reply to Thread

Similar Threads

  1. Making Money with my site....
    By admintwo in forum Earning Money
    Replies: 2
    Last Post: 09-30-2008, 08:06 PM
  2. Replies: 3
    Last Post: 06-21-2008, 12:34 PM
  3. Making Avatars
    By Conmiro in forum The Marketplace
    Replies: 6
    Last Post: 05-26-2008, 09:15 AM
  4. Money Making Sites
    By dWhite in forum Earning Money
    Replies: 9
    Last Post: 05-09-2008, 03:14 AM
  5. The Better Money Making Tutorial-Part1
    By nitekazap in forum The Marketplace
    Replies: 4
    Last Post: 10-24-2007, 09:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers