From 4168f7aff52f6e7cf7320e42252227dac5169c4a Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sun, 16 Nov 2014 21:20:41 +0100 Subject: Initial commit. --- linkshorter/db.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 linkshorter/db.php (limited to 'linkshorter/db.php') diff --git a/linkshorter/db.php b/linkshorter/db.php new file mode 100644 index 0000000..4dcf58a --- /dev/null +++ b/linkshorter/db.php @@ -0,0 +1,16 @@ +connect('/var/run/redis/redis.sock'); + +try { + $db->ping(); +} catch (Exception $e){ + do_output("
No connection to the database established.
", "500 Server Failure", false, "No connection to the database established.
", "500 Server Failure", false, "