1
0
mirror of https://github.com/gamaio/lobli.git synced 2024-12-24 20:52:39 +00:00
lobli/Website/Include/PHP/db.php

8 lines
306 B
PHP
Raw Normal View History

<?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);
?>