Use DLL in PHP?

前端 未结 3 941
生来不讨喜
生来不讨喜 2021-02-09 02:30

I\'m not going to lie. I\'m not all the familiar with Windows and COM objects. That\'s why i\'m here. First of all is it possible to access a DLL from within a PHP script runnin

3条回答
  •  一生所求
    2021-02-09 03:02

    You can simply develop a wrapper around your main dll and use this wrapper as an extension in your PHP. Some free tools like SWIG can generate this wrapper for you automatically by getting the header of your dll functions. I myself use this approach and it was easy and reliable.

提交回复
热议问题