1
0
mirror of https://github.com/gamaio/lobli.git synced 2025-08-13 10:18:45 +00:00

Move Redis connection to db.php and change shorten icon.

Since I will be using Redis from multiple files, the connection to the server should be in the same file as the other DB connection.
This icon looks a little bit better I think.
This commit is contained in:
alopexc0de
2014-07-22 22:02:17 -04:00
parent 4a66e9aa3b
commit f0f858950d
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
<?php
$shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB
if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php');
?>
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
?>