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

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31
  1.     
    #21
    Member
    LOL the result is the same as mine ...

    i tried sdfbnsdjkfnskvdkdfgdf.com and result was google is awake !! lol

    so i am sure the problem comes from the server because on easyphp localhost its working fine !!

  2.     
    #22
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    UDP sockets will sometimes appear to have opened without an error, even if the remote host is unreachable. The error will only become apparent when you read or write data to/from the socket. The reason for this is because UDP is a "connectionless" protocol, which means that the operating system does not try to establish a link for the socket until it actually needs to send or receive data.

    so basically you need to send a small 8 bit buffer for your host to actually attempt a connection

    try doing something like:

    PHP Code: 
    try
        {
            
    $socket fsockopen($host,$port,$e_number,$e_string,$timeout);
            
    fwrite($socket,str_repeat(" ",8));
        }catch(
    Exception $e)
        {
            
    //Not a valid domain more than likly!
            
    return false;
        } 
    if im right, http is based over RTP connections and not UDP, im not sure if RTP is also connectionless
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  3.   Sponsored Links

  4.     
    #23
    Member
    Leave this damn shit... again same thing

    http://isonline.warezsociety.org/new.php

    and the answer is :

    djjhdhhdhcdswcdfgf.com is awake

  5.     
    #24
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    try adding this for debug reasons.

    var_dump($e_number,$e_string); // Tell me what you get
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  6.     
    #25
    It begins...
    PHP Code: 
    <?php
    error_reporting
    (0);
    function 
    testurl($host) {
        
    $page file_get_contents($host);
        
            if (
    false === $page)
            {
                return 
    false;
            }
            else
            {
                return 
    true;
            }
    }

    if (
    testurl('http://google.com'))
    {
        echo 
    'google is awake';
    }
    else
    {
        echo 
    'google is not awake';
    }

    ?>

  7.     
    #26
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    he only wants to connect to the location to see if its alive, can you give me a good reason why he should fetch the contents, as he is never going to need them.
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  8.     
    #27
    It begins...
    Well, apparently fsock is not working on his host. So FGC would be an alternative that WILL work.

    And he can add filters to the FGC function to make sure that only the first byte is fetched, and not the whole page. He's checking the sites, so even if he were to fetch the whole page, they would be a couple KBytes at most.

  9.     
    #28
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    personally i would create a small application that pings a doamin held within includes, then i would use exec to get connection state

    PHP Code: 
    $result exec"includes/pinger.exe --timeout 30 --host google.com" );
    if(
    $result == "0")
    {
       
    //dead

    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  10.     
    #29
    Member
    Website's:
    ExpresShare.com
    +1 litewarez.
    Either exec or system("ping domain")[if the host is allowing it].
    curl can be used but it's complicated[again if the host is allowing it].

  11.     
    #30
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    another way you could do it is.

    PHP Code: 
    function check_host($host)
    {
        if(
    false !== ($context get_headers($host,1)))
        {
             
    /*
                 $context will look like so
                 Array
                 (
                     [0] => HTTP/1.1 200 OK
                     [Date] => Sat, 29 May 2004 12:28:14 GMT
                     [Server] => Apache/1.3.27 (Unix)  (Red-Hat/Linux)
                     [Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT
                     [ETag] => "3f80f-1b6-3e1cb03b"
                     [Accept-Ranges] => bytes
                     [Content-Length] => 438
                     [Connection] => close
                     [Content-Type] => text/html
                 )
             */
             
    return true;
        }

    that might be a small alternative, and also you can then implement header checks as well
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


Page 3 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Selling] Excellent Matrimonial Script| Complete readymade Matrimony Script Available
    By matriscript4u in forum Marketplace (Buy, Sell and Trade)
    Replies: 0
    Last Post: 23rd Oct 2012, 02:54 PM
  2. Replies: 12
    Last Post: 13th Mar 2012, 02:23 PM
  3. [Selling] Rslinkgens Premium link generator script V1 -Most advanced and viral script
    By vccshopper in forum Completed Transactions
    Replies: 0
    Last Post: 24th Jun 2011, 08:10 PM
  4. [Selling] A.A.S. (Adult Automated Script For ClipBucket Video Script)
    By tangi in forum Completed Transactions
    Replies: 0
    Last Post: 25th Mar 2011, 12:45 PM
  5. need text hosting script or link shorter script
    By onel0ve in forum General Discussion
    Replies: 3
    Last Post: 16th Jan 2011, 08:26 AM

Tags for this Thread

BE SOCIAL