Back to index

php5  5.3.10
skeleton.php
Go to the documentation of this file.
00001 <?php
00002 $br = (php_sapi_name() == "cli")? "":"<br>";
00003 
00004 if(!extension_loaded('extname')) {
00005        dl('extname.' . PHP_SHLIB_SUFFIX);
00006 }
00007 $module = 'extname';
00008 $functions = get_extension_funcs($module);
00009 echo "Functions available in the test extension:$br\n";
00010 foreach($functions as $func) {
00011     echo $func."$br\n";
00012 }
00013 echo "$br\n";
00014 $function = 'confirm_' . $module . '_compiled';
00015 if (extension_loaded($module)) {
00016        $str = $function($module);
00017 } else {
00018        $str = "Module $module is not compiled into PHP";
00019 }
00020 echo "$str\n";
00021 ?>