Jump to content

Calling A Delphi Dll From Php


andy_baptiste

Recommended Posts

Hi,

 

I've been asked to update some existing PHP to use a DELPHI produced DLL in place of it's existing Data access code.

 

What I've tried so far:

  1. Using COM, but I keep getting errors about an Unknown Interface that I have failed to get to the bottom of.
  2. Using Delphi4PHP to create a DLL PHP extention, but when using this it caused Apache to crash altogether.

 

Has anyone successfully achieved communication with a Delphi produced DLL from within PHP?

 

Many thanks

 

Andy

Edited by andy_baptiste
Link to comment
Share on other sites

  • 4 weeks later...

As long as its a valid dll file you should be able to import it fine. The fact its made in Delphi is irrelevant as you've compiled for Windows. Assuming the dll is registered on the PC/Server you're using you should be able to import it. Silly question: Are you running Windows or Linux?

Edited by CPD
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.