Activity Stream
48,167 MEMBERS
61565 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
    Website's:
    uploadz.org serverpick.in
    Reading Now..

  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    @Sandino,
    Assume that the addon websites are popular.
    In other words sites with traffic.

    Read with care next time

    Defendos BETA3 Released! Thread - Official Website

  4.     
    #13
    Member
    I truely agree with sandino aswell.

    You can have many sites that can have traffic but are not high on resources and all. so a server can have more than 10,000 sites on one server and can handle the load just perfectly.

    All you need to see for overselling is if the load of the server goes high all the time, but also this can be due to wrong configuration of the server and all.

    Thanks & Regards


  5.     
    #14
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Note that my info is about the Warez world, you all know forums use high resources compared to others. If you disagree open up Dreamweaver and check the main php core of a forum system.

    BTW: Thread updated.

    EDIT: I'm waiting on you Mr.Happy, you are watching the thread. Spam us with your wise words


    Defendos BETA3 Released! Thread - Official Website

  6.     
    #15
    Respected Developer
    Website's:
    wrzc.org
    PHP Code: 
    <?php
    //GET SERVER LOADS
    $loadresult = @exec('uptime');
    preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);

    //GET SERVER UPTIME
    $uptime explode(' up '$loadresult);
    $uptime explode(','$uptime[1]);
    $uptime $uptime[0].', '.$uptime[1];
    $data .= "Server Load Averages $avgs[1]$avgs[2]$avgs[3] <br />";
    $data .= "Server Uptime $uptime";
    echo 
    $data;
    ?>
    Upload that to your hosting account and it will tell you the real truth about your hosting.
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  7.     
    #16
    Member
    You know l0cal, there are ways you can actually see who's using how much resources, allowing you to... suspend them *GASP*

  8.     
    #17
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    @.mac, Im posted this in the "client" view, and not the server admin view.

    @Mr.Happy, your code isn't working, I get:
    Server Load Averages , ,
    Server Uptime ,

    I have exec disabled on the server.

    Defendos BETA3 Released! Thread - Official Website

  9.     
    #18
    Member
    Again, allowing unlimited addon domains has NOTHING to do with overselling. If a client has a few domains that are heavy on the CPU, it's very easy to detect and suspend it. Not all hosts are morons.

    Regarding the script; it's kind of logical that if you have the functions required disabled it won't work, right?

  10.     
    #19
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    @.mac, not every host is so fucking smart as you.
    And I'm also not as smart as you, I really don't know why that script isn't working lol.

    PHP Code: 

    <?php

    error_reporting
    (0);

    if (
    ini_get('disable_functions')) {
        
    $disabled_funcs=array_map('trim',explode(',',ini_get('disable_functions')));
    }

    $action=$_GET["action"];

    if (
    $action=="phpinfo") {
        
    /*
        Uncoment the line below to allow users to view PHP Info for your
        server. This potentially allows access to information a malicious
        user could use to find weaknesses in your server.
        */
        #phpinfo();
    } else {
        
    $users[0]="Unavailable";
        
    $users[1]="--";
        
    $loadnow="Unavailable";
        
    $load15="--";
        
    $load30="--";
        if (
    in_array('exec',$disabled_funcs)) {
            
    $load=file_get_contents("/proc/loadavg");
            
    $load=explode(' ',$load);
            
    $loadnow=$load[0];
            
    $load15=$load[1];
            
    $load30=$load[2];
        } else {
            
    $reguptime=trim(exec("uptime"));
            if (
    $reguptime) {
                if (
    preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/",$reguptime,$uptime)) {
                    
    $users[0]=$uptime[1];
                    
    $users[1]=$uptime[2];
                    
    $loadnow=$uptime[3];
                    
    $load15=$uptime[4];
                    
    $load30=$uptime[5];
                }
            }
        }
        if (
    in_array('shell_exec',$disabled_funcs)) {
            
    $uptime_text=file_get_contents("/proc/uptime");
            
    $uptime=substr($uptime_text,0,strpos($uptime_text," "));
        } else {
            
    $uptime=shell_exec("cut -d. -f1 /proc/uptime");
        }
        
    $days=floor($uptime/60/60/24);
        
    $hours=str_pad($uptime/60/60%24,2,"0",STR_PAD_LEFT);
        
    $mins=str_pad($uptime/60%60,2,"0",STR_PAD_LEFT);
        
    $secs=str_pad($uptime%60,2,"0",STR_PAD_LEFT);
        
    $phpver=phpversion();
        
    $mysqlver=mysql_get_client_info();
        
    $zendver=zend_version();
        echo 
    "<load>$loadnow</load>\n";
        echo 
    "<uptime>$days Days $hours:$mins:$secs</uptime>\n";
        echo 
    "<phpver>$phpver</phpver>\n";
        echo 
    "<mysqlver>$mysqlver</mysqlver>\n";
        echo 
    "<zendver>$zendver</zendver>\n";
    }

    ?>
    WHMCS?

    Defendos BETA3 Released! Thread - Official Website

  11.     
    #20
    Member
    Not trying to be smart, but assuming a host is overselling based on addon domains...

    Happy's script won't work if you have exec disabled, and load/uptime in WHMCS's script won't work if you have explode and file_get_contents disabled...

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. Detect and Block Phishing Attempts
    By Daniel in forum Webmaster Resources
    Replies: 7
    Last Post: 3rd Nov 2011, 08:31 AM
  2. [JQ]How to detect location inside iframe (remote page)
    By Porsche_maniak in forum Web Development Area
    Replies: 0
    Last Post: 11th May 2011, 07:40 PM
  3. [help] Detect session on URL
    By jomasaco in forum Web Development Area
    Replies: 4
    Last Post: 28th Apr 2011, 05:20 PM
  4. How to detect keylogger and destroy it ?
    By shufol in forum Technical Help Desk Support
    Replies: 7
    Last Post: 27th Jan 2011, 05:49 PM
  5. [HELP] Detect Referrer and select theme
    By WaReZ in forum Technical Help Desk Support
    Replies: 2
    Last Post: 20th Nov 2010, 12:22 AM

Tags for this Thread

BE SOCIAL