diff --git a/error/missing-extensions.php b/error/missing-extensions.php
index 615c991..eca9a56 100644
--- a/error/missing-extensions.php
+++ b/error/missing-extensions.php
@@ -16,26 +16,11 @@
pdo_mysql";
- } ?>
+ }
+ $phpini = php_ini_loaded_file();
-
-
- array());
- if (preg_match_all('#(?:
)|(?:(.*?)\s*(?:(.*?)\s*(?:(.*?)\s*)?)?
)#s', ob_get_clean(), $matches, PREG_SET_ORDER))
- foreach ($matches as $match)
- if (strlen($match[1]))
- $phpinfo[$match[1]] = array();
- elseif (isset($match[3]))
- $phpinfo[end(array_keys($phpinfo))][$match[2]] = isset($match[4]) ? array($match[3], $match[4]) : $match[3];
- else
- $phpinfo[end(array_keys($phpinfo))][] = $match[2];
-
- echo "These extensions can be enabled in php.ini.
";
- echo "php.ini location: " . $phpinfo['phpinfo']["Loaded Configuration File"] . "";
+ echo "These extensions can be enabled in php.ini.
";
+ echo "php.ini location: " . $phpini . "
";
?>