<?php
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns an array with the names
of all modules compiled and loaded
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
arr get_loaded_extensions ( bool $zend_extensions = false )
where,
$zend_extensions = if TRUE only return Zend extensions
The default, FALSE return regular extensions
?>
VALUE | WHAT RETURNS? |
FALSE | REGULAR EXTENSIONS |
TRUE | Zend EXTENSIONS ONLY |
ed48 |
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center"><tbody>
<tr><td colspan="2">$zend_extensions = FALSE ( DEFAULT )
<br><?php echo PHP_VERSION; ?></td>
</tr><tr><td>ARRAY INDEX</td><td>NAME</td></tr>
<?php
// The result of this exercise will depend
// of the configuration of your system
$mod_set = get_loaded_extensions ();
$cnt_set = count($mod_set);
for ($i = 0; $i < $cnt_set; $i++)
{
echo '<tr><td>' . $i . '</td><td>' . $mod_set[$i] . '</td></tr>';
}
?>
<tr><td colspan="2">ed48</td></tr></tbody></table>
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center"><tbody><tr>
<td colspan="2">AVAILABLE LOADED EXTENSIONS<br>
$zend_extensions = TRUE
<br><?php echo PHP_VERSION; ?></td>
</tr><tr><td>ARRAY INDEX</td>
<td>NAME</td></tr>
<?php
// The result of this exercise will depend
// of the configuration of your system
$mod_set = get_loaded_extensions (TRUE);
$cnt_set = count($mod_set);
for ($i = 0; $i < $cnt_set; $i++)
{
echo '<tr><td>' . $i . '</td><td>' . $mod_set[$i] . '</td></tr>';
}
?>
<tr><td colspan="2">ed48</td></tr></tbody></table>
<?php
phpinfo(8);
// 8 = INFO_MODULES
?>