richard Posted August 8, 2009 Report Share Posted August 8, 2009 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); } Quote Link to comment Share on other sites More sharing options...
Ric Posted August 8, 2009 Report Share Posted August 8, 2009 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 Quote Link to comment Share on other sites More sharing options...
richard Posted August 9, 2009 Author Report Share Posted August 9, 2009 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? Quote Link to comment Share on other sites More sharing options...
Ric Posted August 10, 2009 Report Share Posted August 10, 2009 If it’s locally then this is worth a read:http://sourceforge.net/userapps/mediawiki/...I:_Introduction All the bestRic Quote Link to comment Share on other sites More sharing options...
richard Posted August 10, 2009 Author Report Share Posted August 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.