Skip to content

Instantly share code, notes, and snippets.

View kervinpierre's full-sized avatar

Kervin Pierre kervinpierre

View GitHub Profile
// Get SSL redirect working behind NGINX SSL termination
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
@kervinpierre
kervinpierre / redistest.php
Last active February 7, 2017 21:31
A simple PHP example for PRedis library
<?php
// Redis example by Kervin
// Each time the script runs it will check if a previous run left
// information for it
// This is general PHP and is useful for debugging
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);