PHP and PowerBasic
#2
Quote:Does anyone have experience with having a webpage—via PHP—call a function (e.g., in a DLL) written in PowerBasic?
No, but a little research-

SDECL is default for PB created DLLs.
It is also the calling convention used in Windows APIs.

Q: can php call a windows api dll function
A: "Yes, PHP can call Windows API DLL functions directly.
The standard, modern way to do this is using the PHP FFI (Foreign Function Interface) extension, which was introduced in PHP 7.4."

conclusion: PHP can call DLL functions compiled in PB.

check your PHP is 7.4 or later
search or FFI examples

Cheers,
Reply


Messages In This Thread
PHP and PowerBasic - by Fim Wästberg - Yesterday, 13:32
RE: PHP and PowerBasic - by Dale Yarker - Yesterday, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)