Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dl() function / w32api

Featured Replies

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

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

  • Author

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?

  • Author

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

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.