Jump to content
The Uniform Server Community
Sign in to follow this  
richard

dl() function / w32api

Recommended Posts

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() function

is 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);
}

Share this post


Link to post
Share on other sites

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 best

Ric :D

Share this post


Link to post
Share on other sites

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 best

Ric :D

 

is there any other way to access the win32 API using PHP?

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...