WP Really Simple Health
@exec used, normally disabled... (2 posts)

  1. Simon Prosser
    Theme Review Admin
    Posted 3 years ago #

    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


  2. Tiberius14
    Plugin Author

    Posted 3 years ago #

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


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic