get_loaded_extensions — Returns an array with the names of all modules compiled and loaded.

This function returns the names of all the modules compiled and loaded in the PHP interpreter.

Type in the following in a file named say test.php and save it in document root of your webserver, normally htdocsfor apache:

<?php
print_r
(get_loaded_extensions());
?>

oad the file in your browser. For example if you access your home page like:
http:/// 192.168.1.1/test.php
The output will be as follows

Array ( [0] => zip [1] => libxml [2] => xsl [3] => xmlwriter [4] => dom [5] => xmlreader [6] => xml [7] => tokenizer [8] => session [9] => pcre [10] => SimpleXML [11] => SPL [12] => PDO [13] => soap [14] => SQLite [15] => standard [16] => Reflection [17] => posix [18] => pdo_sqlite [19] => pdo_mysql [20] => mysql [21] => mbstring [22] => json [23] => iconv [24] => hash [25] => gd [26] => ftp [27] => filter [28] => date [29] => curl [30] => ctype [31] => zlib [32] => apache2handler [33] => memcache )

Post By Editor (2,827 Posts)

Website: →

Connect