4 Replies - 235 Views - Last Post: 07 February 2014 - 12:59 PM

#1 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

How interface PHP on Apache to a dll file

Posted 05 February 2014 - 10:46 PM

Dear all,
I have a web application, Drupal PHP based, that needs to connect to a Windows application. Therefore, the php aps needs somehow access to the DLL (shared library) files of the Windows application. What is the best way to achieve this?

regards,
ethereal1m
Is This A Good Question/Topic? 0
  • +

Replies To: How interface PHP on Apache to a dll file

#2 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 325
  • View blog
  • Posts: 1,198
  • Joined: 15-January 14

Re: How interface PHP on Apache to a dll file

Posted 06 February 2014 - 09:19 AM

If the DLL is a COM component, then I believe you can use PHP's COM functions.

http://www.php.net/m...en/book.com.php
Was This Post Helpful? 0
  • +
  • -

#3 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Re: How interface PHP on Apache to a dll file

Posted 06 February 2014 - 06:48 PM

No, my dll is not a com component. I know that php cannot interact directly with dll file in this case, it needs another interface or wrapper to bridge between the two. Anybody know any wrapper that works on Apache?
Has anyone ever used swig ?

This post has been edited by ethereal1m: 06 February 2014 - 06:53 PM

Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 325
  • View blog
  • Posts: 1,198
  • Joined: 15-January 14

Re: How interface PHP on Apache to a dll file

Posted 07 February 2014 - 09:30 AM

You might be able to use this:

http://pecl.php.net/package/ffi
Was This Post Helpful? 0
  • +
  • -

#5 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Re: How interface PHP on Apache to a dll file

Posted 07 February 2014 - 12:59 PM

Quote


hmm, this package is not maintained. The last release was January 2004. Also there is no documentation. It's hard for me to leverage this.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1