Home  >  Article  >  Backend Development  >  PHP在linux下怎么调用.dll文件有关问题

PHP在linux下怎么调用.dll文件有关问题

WBOY
WBOYOriginal
2016-06-13 09:59:231382browse

PHP在linux下如何调用.dll文件问题。
RT, 现在在windows下面有一个别人编写的dll文件 ,a.dll。
我现在在linux环境下编写一个项目,其中a.dll里边有我需要的东西。 请问大家我应该如何来做 ,才能调用到它里边的东西呢 ?

------解决方案--------------------
正常来说,是编译成so做扩展。

正常dll是在win下的,so可以在linux和win

linux下默认是不支付dll的,但现在己经开发了一个中间件,让linux可以跑win下的软件
但缺点非常明显,稳定性差,效率非常低下。

建议找到源码重新编译成so吧。
------解决方案--------------------

探讨

2L方法不行嘛, 啥都读不出来啊……
1L 难得只能重新编译一下 ,编译成.so格式的吗?(不考虑linux下安装其他中间过渡软件。。。)

------解决方案--------------------
首先要确认一下:你的这个 dll 在 Windows 下是如何使用的?是常规的 dll 还是 com dll?还是 php dll?

------解决方案--------------------
php 只可以在windows 版本下的才可以使用a.dll文件系统的。。。

你可以换成windows 系统做服务器吧,或者就是把源代码

http://www.linuxforums.org/forum/coffee-lounge/37811-does-linux-use-dlls.html
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn