Skip to content

Instantly share code, notes, and snippets.

@nicdnepr
nicdnepr / redis-stats.php
Last active Jun 26, 2017 — forked from blongden/redis-stats.php
Single page website to show statistics on a redis server
View redis-stats.php
<?php
$fp = fsockopen('127.0.0.1', 6379, $errno, $errstr, 30);
$data = array();
if (!$fp) {
die($errstr);
} else {
fwrite($fp, "INFO\r\nQUIT\r\n");
while (!feof($fp)) {