libhtdigphp/htdig.php
raw| 1 | <? |
| 2 | if(!extension_loaded('htdig')) { |
| 3 | dl('htdigphp.so'); |
| 4 | } |
| 5 | $module = 'htdig'; |
| 6 | $functions = get_extension_funcs($module); |
| 7 | echo "Functions available in the test extension:<br>\n"; |
| 8 | foreach($functions as $func) { |
| 9 | echo $func."<br>\n"; |
| 10 | } |
| 11 | echo "<br>\n"; |
| 12 | $function = 'confirm_' . $module . '_compiled'; |
| 13 | if (extension_loaded($module)) { |
| 14 | $str = $function($module); |
| 15 | } else { |
| 16 | $str = "Module $module is not compiled into PHP"; |
| 17 | } |
| 18 | echo "$str\n"; |
| 19 | ?> |