|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-03-02 22:45 UTC] azsd at hotmail dot com
Description:
------------
Dear developers:
When I try to use w32api_register_function in my php test scripts comes from orginal phpmanel like this:
<?php
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
MessageBoxA(NULL,
"Hello World!",
"PHP MessageBox",
0);
?>
It reports a fetal error like this:
Fatal error: Call to undefined function: w32api_register_function() in E:\My Webs\xxxx\apitest.php on line 2
I am using 4.3.4 stable version of PHP.
in php.ini set
extension=php_w32api.dll
and phpinfo() shows
Win32 API
Win32 API Support enabled
other extension like gdlib works fine.
My web server is IIS6,Windows 2003,Use ISAPI mode of PHP.
some other guys using these version occoured same errors.
somebody told me this win32api functions only works in older php version like php4.0.0,is that ture?
or how can i get the functions back in PHP Version 4.3.4?
thanks.
Reproduce code:
---------------
<?php
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
MessageBoxA(NULL,
"Hello World!",
"PHP MessageBox",
0);
?>
Expected result:
----------------
popup a message box with title:Hello world
Actual result:
--------------
Fatal error: Call to undefined function: w32api_register_function() in E:\My Webs\xxxx\apitest.php on line 2
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
The php_w32api.dll extension must be loaded in php.ini: extension=php_w32api.dll (check that extension_dir is correct) or using dl('php_w32api.dll')