Activity Stream
48,167 MEMBERS
61030 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member

    Question Server Status Issue

    I am working on a script which show the server status of a site ...

    This is what i used :-
    Code: 
    <?php
    $ip="{$_GET['ip']}";
    $port="{$_GET['port']}";
    header('Content-type: image/png');
    if(!$sock=@fsockopen($ip,"$port", $num, $error, 5)) {
    readfile('image/offline.png');
    } else {
    readfile('image/online.png');
    }
    ?>
    Now The Thing is that it shows right status for most of the sites ....
    the only problem is abt the expired domains ....

    For Example :- cliplinks.net (expired)
    It should have shown that the domain is offline ...
    But it shows its online ....

    So How Can I Fix This .....
    Matrix4u Reviewed by Matrix4u on . Server Status Issue I am working on a script which show the server status of a site ... This is what i used :- <?php $ip="{$_GET'ip']}"; $port="{$_GET'port']}"; header('Content-type: image/png'); if(!$sock=@fsockopen($ip,"$port", $num, $error, 5)) { readfile('image/offline.png'); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    the domain is online and parked, therefore active. The script is correct in reporting it as active.

  4.     
    #3
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    You will get response headers because the site is online.

    You need to check the response header and based on that you can try to differentiate and code it.

  5.     
    #4
    Member
    ok .. I Want to make some changes to this code ...
    if i site gets redirected to some other link ... i want to show it as offline ...
    i mean all redirects will be treated as offline ...
    is it possible ?

  6.     
    #5
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    in that case, if statuscode > 300 its offline.

  7.     
    #6
    Member
    Ok ...
    let me check ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. KWWH away status.
    By Cooper in forum Feedback and Suggestions
    Replies: 7
    Last Post: 1st Feb 2012, 08:46 PM
  2. New server, vBulletin cookie issue
    By Eplexx in forum Technical Help Desk Support
    Replies: 5
    Last Post: 26th Aug 2011, 01:22 AM
  3. Vps Server Issue
    By warezboy in forum Hosting Discussion
    Replies: 18
    Last Post: 2nd Sep 2010, 08:15 PM
  4. DNS Server Issue..
    By Ronald in forum Technical Help Desk Support
    Replies: 11
    Last Post: 18th Mar 2010, 05:04 PM

Tags for this Thread

BE SOCIAL