<html>
<head>
<title>PHP serial extension test page</title>
</head>
<body>
<h3>PHP serial extension test page</h3>
<?php
/*
/* Use this if extension is not loaded automatically via extension directive in php.ini.
Note this will not work in multithreaded servers
*/
/*
if(!extension_loaded('php_ser')) {
dl('php_ser.dll');
}
*/
$module = 'win_serial_port';
if (extension_loaded($module)) {
$str = "module loaded";
} else {
$str = "Module $module is not compiled into PHP";
die("Module $module is not compiled into PHP");
}
echo "$str<br>";
$functions = get_extension_funcs($module);
echo "Functions available in the $module extension:<br>\n";
foreach($functions as $func) {
echo $func."<br>";
}
?>