Skip to content

Instantly share code, notes, and snippets.

View tomolimo's full-sized avatar
😊
Work

tomolimo

😊
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']);