summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-30 11:06:30 +0200
committerTheTroll <trolldev@gmail.com>2010-03-30 11:06:30 +0200
commita07e467cd3cdfb2a8aad52927586394204f78d34 (patch)
tree17f43ba19fd4480736b3649a0100dec1b195543c
parentc49a7c4e5a2e3151a852bae13d3c6d4c9b72a3b3 (diff)
downloadistreamdev-a07e467cd3cdfb2a8aad52927586394204f78d34.tar.gz
istreamdev-a07e467cd3cdfb2a8aad52927586394204f78d34.tar.bz2
Check php modules
-rw-r--r--bin/backend.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 7ea0649..4de6601 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,4 +1,15 @@
<?php
+
+// Check PHP modules
+if (function_exists('dl'))
+{
+ if (!extension_loaded('json'))
+ dl(json.so);
+ if (!extension_loaded('zlib'))
+ dl(zlib.so);
+}
+
+
ob_start("ob_gzhandler");
header('Content-Type: application/json; charset: utf-8');