有什么办法在PHP中通过Linux平台调用.dll文件? [英] Is there any way to call .dll files in PHP over Linux Platform?

查看:1976
本文介绍了有什么办法在PHP中通过Linux平台调用.dll文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:有什么办法使用php COM类在linux平台上调用.dll文件?



/ strong>我需要与dll文件交互来访问里面的函数。
我按照以下步骤在Windows环境中成功注册了dll文件。


  1. Xampp安装v3.2.1 php 5.5(注意:目前使用版本Xampp安装v3.1.2 php 5.3需要更改新/最新版本Xampp安装v3.2.1 php 5.5)。


  2. 下载php_com_dotnet .dll文件, http://originaldll.com/file/php_com_dotnet.dll/29343 .html 并将下载的文件复制到文件夹C:\ xampp\php\ext。


  3. 需要在xampp parent文件夹中的文件夹


  4. 将php_com_dotnet.dll文件添加到C:\ xampp \ php \ php.ini文件


  5. 重新启动xampp服务器。



< 通过命令提示符注册DLL文件:



•单击开始按钮,在搜索选项键入cmd,然后按Enter键



•右键单击命令提示符,然后按runasadministrator命令



•类型:regsvr32 c:\windows \system32\dllfilename.dll按回车



•显示dll文件注册成功消息

解决方案

由于Linux平台与您为其提供的等效 .so 文件的窗口不同,因此请正确检查您的 php.ini 文件,了解了有关信息。


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

解决方案

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.

这篇关于有什么办法在PHP中通过Linux平台调用.dll文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆