Version: 1.0

Type: Full Script

Category: Other

License: GNU General Public License

Description: PHPINFO() is nice, but this script is very usefull. Get all loaded moduls/extensions and display all its functions.



<? 

//BY A. Markovic (mikikg@eunet.yu) 

ECHO "<b><i>Defined Functions for $HTTP_HOST</b></i><br>"; 

if ($src=="yes") 
{echo"<br><a href=\"$PHP_SELF\">Hide source</a><br><br>"; 
show_source ($PHP_SELF); 
echo"<br>";} 
else 
{echo "<br><a href=\"$PHP_SELF?src=yes\">Show source</a><br><br>";} 

ECHO "<br><b>get_loaded_extensions:</b><br>"; 
$arr=get_loaded_extensions(); 
print_r  (get_loaded_extensions()); 

ECHO "<br><br><b>get_current_user:</b><br>"; 
print_r  (get_current_user()); 

ECHO "<br><br><b>getmypid:</b><br>"; 
print_r  (getmypid()); 

ECHO "<br><br><b>get_extension_funcs() :</b><br>"; 

for ($i=0;$i<count($arr);$i++) 
{ 
print "<br><b>$arr[$i]</b><br>"; 
print_r  (get_extension_funcs ($arr[$i])); 
print "<br>"; 
flush(); 
} 
?>