I am trying to run .php code provided in
http://www.php.net/manual/en/ref.w32api.php
=====================================
<?php
if (!dl("php_w32api.dll")) {
echo "Unable to load php_w32api.dll";
exit;
}
$api = new win32;
$api->registerfunction("bool QueryPerformanceCounter (float &lpPerformanceCount) From kernel32.dll");
$api->registerfunction("bool QueryPerformanceFrequency (float &lpPerformanceFrequency) From kernel32.dll");
$api->QueryPerformanceCounter($a);
$api->QueryPerformanceFrequency($b);
$c = $a/$b;
$days = floor($c / 86400);
echo gmstrftime("System uptime is $days Days, %H Hr, %M Min, %S Sec<br>", $c);
?>
and I did change the extension option in php.ini
extension=php_w32api.dll
and the code still didn't run right. It generated error as follow:
=====================================
Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini in c:\appserv\www\test.php on line 2
Unable to load php_w32api.dll
does anyone know hot to solve the problem?
Please help
Thanks,
tott