Skip to content

Instantly share code, notes, and snippets.

View tomolimo's full-sized avatar
😀
At work

tomolimo

😀
At work
  • Raynet SAS
  • Grenoble
View GitHub Profile
<?php
// CONFIG
$servers = array(
array('Local', '127.0.0.1', 6379),
);
// END CONFIG
$server = 0;
if (isset($_GET['s']) && intval($_GET['s']) < count($servers)) {
$server = intval($_GET['s']);