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

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1.     
    #11
    Member
    error reporting is on right now ...
    but still if you try a valid domain which doesnt exist e.g :

    smmdkkhfjvdhvk.com

    the result is online !!!

  2.   Sponsored Links

  3.     
    #12
    It begins...
    Your script is flawed. First off, it does not validate whether the input is actually a domain or not. You could google for that, and you'll find answers on how to do that.

    Second, have you tried using another method, other than fsockopen? Maybe try file_get_contents => http://php.net/file_get_contents

  4.     
    #13
    Member
    Man my problem right now is not validation ... i am saying that it works fine on my http://localhost/script/ but on isonline.warezsociety.org it gives errors.
    even if i do validation i will get errors, for example see this one :

    pkvjjfhjejfdvdfv.com this one doesnt exists

    the result on my server and localhost are :




    on local :


  5.     
    #14
    Member
    Website's:
    bypassx.com
    Check php version runing into your localhost and php version runing into your hosting.

    You have to code the script a little bit complex...

  6.     
    #15
    Member
    i already checked them, the version is not issue !!!

  7.     
    #16
    Respected Developer
    add this to your code at start after opening <?php

    Code: 
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    and see what u gets
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  8.     
    #17
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    it does not go a miss to make your code less error prone and more specific.

    PHP Code: 
    function track($host$port 80$timeout 30)
    {
        try
        {
            
    $socket fsockopen($host,$port,$e_number,$e_string,$timeout);
        }catch(
    Exception $e)
        {
            
    //Not a valid domain more than likly!
            
    return false;
        }

        if(
    $socket === false)
        {
            
    //No socket so unable to connect
            
    return false;
        }

        if(
    $e_number != 0)
        {
            
    //There was an error, use the $e_number to track what type of error.
            
    return false;
        }

        
    //If all the  above is ok we return false as a positive connection was made.
        
    return true;
    }

    if(
    track('google.com'))
    {
        echo 
    'google is awake';
    }else
    {
        echo 
    'google is asleep';

    also another note is that functions are meant to be reused throughout an application so i advice you always make your functions return a datatype such as bools,ints etc so that no matter where you run the code you can always change the output.

    Peace, hope that fixes your prob.
    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


  9.     
    #18
    Member
    .......... error found !!

    }cache(Exception $e) to
    }catch(Exception $e)

  10.     
    #19
    Member
    Catch instead of cache

    thanks i will try it on the server now !!!

  11.     
    #20
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    yea American style, English style
    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 2 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