diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-30 11:06:30 +0200 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-30 11:06:30 +0200 |
commit | a07e467cd3cdfb2a8aad52927586394204f78d34 (patch) | |
tree | 17f43ba19fd4480736b3649a0100dec1b195543c | |
parent | c49a7c4e5a2e3151a852bae13d3c6d4c9b72a3b3 (diff) | |
download | istreamdev-a07e467cd3cdfb2a8aad52927586394204f78d34.tar.gz istreamdev-a07e467cd3cdfb2a8aad52927586394204f78d34.tar.bz2 |
Check php modules
-rw-r--r-- | bin/backend.php | 11 |
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'); |