Is there any way to call .dll files in PHP over Linux Platform?

无人久伴 提交于 2019-12-13 07:57:05

问题


Question : is there any way to call .dll files using php COM class over linux platform?

Description: I need to interact with dll files to access inside the functions. I am successfully register the dll files in windows environment by following below steps.

  1. Xampp installation v3.2.1 php 5.5 (Note: currently using version Xampp installation v3.1.2 php 5.3 need to change new/latest version Xampp installation v3.2.1 php 5.5).

  2. Download php_com_dotnet.dll file from here,http://originaldll.com/file/php_com_dotnet.dll/29343.html and copy downloaded file to folder C:\xampp\php\ext.

  3. DLL need to be configured under xampp parent folder in C:\xampp\php\ php.ini file

  4. Add php_com_dotnet.dll file to windows extension in C:\xampp\php\ php.ini file

  5. Restart the xampp server.

Register DLL file through command prompt:

• Click on start button and in search option type cmd and press enter

• Right click on command prompt and press runasadministrator command

• Type: regsvr32 c:\windows\system32\dllfilename.dll press enter

• It shows dll file register successfully message


回答1:


As Linux Platform is different from the windows you have provided equivalent .so file for your purpose check your php.ini properly you got information regarding there.



来源:https://stackoverflow.com/questions/26480448/is-there-any-way-to-call-dll-files-in-php-over-linux-platform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!