Forked from jbraithwaite/memcached-status-page.md
Last active
August 3, 2018 13:03
-
-
Save nishad/57c860a04ee84cf60ed42ee2d36dc28b to your computer and use it in GitHub Desktop.
Revisions
-
nishad revised this gist
Aug 3, 2018 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,11 +77,11 @@ ?> <tr> <td><?php echo $key; ?></td> <td><?php echo $value; ?></td> </tr> <?php endforeach; ?> </tbody> </table> -
jbraithwaite revised this gist
May 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ <title>Memcached</title> <style type="text/css" media="screen"> body { font-family: Consolas, "Lucida Console", Monaco, monospace; } table { -
jbraithwaite renamed this gist
May 16, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jbraithwaite created this gist
May 16, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@  This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,90 @@ <html> <head> <title>Memcached</title> <style type="text/css" media="screen"> body { font-family: Consolass, "Lucida Console", Monaco, monospace; } table { margin: 0 auto; width: 500px; } caption { font-size: 4em; padding: 20px 0; } td { padding: 5px; } tr td { text-align: right; } tr td:first-child { font-weight: bold; width: 100px; text-align: left; } tbody tr:nth-child(even) { background-color: #eee; } tr:hover { background-color: #298D84 !important; color: #fff; } thead { display: none; } table { border-collapse:collapse; } </style> </head> <body> <table> <caption>Memcached</caption> <thead> <tr> <th>Field</th> <th>Value</th> </tr> </thead> <tbody> <?php $m = new Memcached; $host = 'localhost'; $port = 11211; $m->addServer($host, $port); $stats = $m->getstats()[$host.':' . $port]; foreach($stats as $key => $value): ?> <tr> <td><?=$key?></td> <td><?=$value?></td> </tr> <? endforeach; ?> </tbody> </table> </body> </html>