php_w32api.dll ... fatal error
| From: | jon | Date: | Tue, 21 Oct 2003 07:45:24 +0000 |
| Subject: | php_w32api.dll ... fatal error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166915@lists.php.net to get a copy of this message | ||
When trying to run the following script, it returns the following error
"...Fatal error: Call to undefined function: w32api_register_function()...".
Does this w32api extension work?
// Define constants needed, taken from
// Visual Studio/Tools/Winapi/WIN32API.txt
define("MB_OK", 0);
// Load the extension in
dl("php_w32api.dll");
// Register the GetTickCount function from kernel32.dll
w32api_register_function("kernel32.dll",
"GetTickCount",
"long");