August 8, 200916 yr comment_7495 when i load the page i get an error saying: Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_w32api.dll in your php.ini in Z:\www\win32_test.php on line 2 Fatal error: Call to undefined function w32api_register_function() in Z:\www\win32_test.php on line 3 i already made sure the line "extension=w32api.dll" is uncommented and the dl() functionis enabled in the php.ini file and the actual w32api.dll IS in my extensions folder. here's my code: function mBox() { dl("php_w32api.dll"); w32api_register_function("User32.dll","MessageBoxA","long"); MessageBoxA(NULL, $str, "blahblahblah", MB_OK); } Report
August 8, 200916 yr comment_7496 In all honesty I think this is a dead duck! With the introduction of PHP 5 series php_w32api.dll was dropped.It looks as if its no longer maintained. There was hint of an alternative ffi (Foreign Function Interface) I think that met the same fate. If you are just wanting to have a play with php_w32api.dll it may work on Uniform Server 3.1 which was the last version to contain PHP 4 series. All the bestRic Report
August 9, 200916 yr Author comment_7498 In all honesty I think this is a dead duck! With the introduction of PHP 5 series php_w32api.dll was dropped.It looks as if its no longer maintained. There was hint of an alternative ffi (Foreign Function Interface) I think that met the same fate. If you are just wanting to have a play with php_w32api.dll it may work on Uniform Server 3.1 which was the last version to contain PHP 4 series. All the bestRic is there any other way to access the win32 API using PHP? Report
August 10, 200916 yr comment_7500 If it’s locally then this is worth a read:http://sourceforge.net/userapps/mediawiki/...I:_Introduction All the bestRic Report
August 10, 200916 yr Author comment_7501 thanks for your help, i decided just to write a COM class to access the win32 api functions and then using that in my php file Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.