From 72308d0d32295a144dab6f1789c05d7ab9a75cf8 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 16 Nov 2010 00:55:02 +1100 Subject: [PATCH] Extension testing. --- test.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test.php b/test.php index 73a4a0d8..6d6a9367 100644 --- a/test.php +++ b/test.php @@ -27,6 +27,19 @@ $todo = Array(); $body = ''; + $extensions = Array('mysql', 'gd'); + + // Extensions + title('Extensions'); + foreach($extensions as &$ext) { + if(extension_loaded($ext)) { + $body .= check($ext, 'ok'); + } else { + $body .= check($ext, 'error'); + $todo[] = 'Install module "' . $ext . '"'; + } + } + // Database title('Database');