I added some extra lines. You can see my signature.
* Server Load
* Server Uptime
* Server Activity
I want to share my own codes with you..
PHP Code:
// information about server activity
$sunucu = @fsockopen(localhost, 80);
if ($sunucu) {
$sunucudurumu .= "ACTIVE";
}
else {
$sunucudurumu .= "INACTIVE";
}
// Uptime and Server Load istatistics
$uptimekaydi = trim(exec("uptime"));
if ($uptimekaydi) {
if (preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/", $uptimekaydi, $uptime)) {
$kullanicilar[0] = $uptime[1];
$kullanicilar[1] = $uptime[2];
$suankiyuk = $uptime[3];
$yukleme15 = $uptime[4];
$yukleme30 = $uptime[5];
}
} else {
$kullanicilar[0] = "Mevcut degil";
$kullanicilar[1] = "--";
$suankiyuk = "Mevcut degil";
$yukleme15 = "--";
$yukleme30 = "--";
}
$uptime = shell_exec("cut -d. -f1 /proc/uptime");
$gun = floor($uptime/60/60/24);
$saat = $uptime/60/60%24;
$dakika = $uptime/60%60;
$saniye = $uptime%60;
you can add this informations like this;
PHP Code:
$information1 = "DAVUTPASHA.COM HAS $suankiyuk SERVER LOAD AND ALSO";
$information2= " WE HAVEN'T HAD ANY PROBLEM ABOUT $gun DAYS $saat:$dakika:$saniye SECONDS.";
imagestring($im, 2, 41, 92, "SERVER ACTIVITY: " . $sunucudurumu, $text_color);
imagestring($im, 2, 5, 16, $information1, $text_color);
imagestring($im, 2, 5, 29, $information2, $text_color);
Main codes are in Turkish. I translated them to English. You can translate other words.
See my sig:
http://www.davutpasha.com/imzam.php