WordPress.org

Support

Support » Plugins and Hacks » WP Really Simple Health » [Plugin: WP Really Simple Health] @exec used, normally disabled…

[Plugin: WP Really Simple Health] @exec used, normally disabled…

  • You are using @exec to get variables, this is disabled on most production servers.

    $buh = strtok( exec( "cat /proc/uptime" ), "." );

    Consider using PHP functions:

    sys_getloadavg() will return the load average as an array.

    Uptime could be got through mysql:

    function db_stats(){
    
    	global $wpdb;
    	return mysql_stat();
    }

    return this:
    Uptime: 73080 Threads: 1 Questions: 6849 Slow queries: 0 Opens: 79 Flush tables: 1 Open tables: 64 Queries per second avg: 0.93

    http://wordpress.org/extend/plugins/wp-really-simple-health-10/

Viewing 1 replies (of 1 total)
  • Plugin Author Tiberius14

    @tiberius14

    Hi there.
    thanks for your suggestion, most probably it will be the basis of the version 1.1

    ciao

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Really Simple Health] @exec used, normally disabled…’ is closed to new replies.
Skip to toolbar