Posted by Chung Leong on 10/16/47 11:43
Geoff Coope wrote:
> Hi all
>
> I created an ASP ActiveX DLL file in Delphi that works great using ASP on
> IIS.
>
> Is it possible to use ActiveX DLL files within PHP like in ASP? but on an
> Apache webserver that is running on a Windows machine?
>
> In ASP it works like this:
>
> <% Set DelphiAxObj = Server.CreateObject("TestX.TestX")
> DelphiAxObj.heading = "A test string"
> Response.Write DelphiAxObj.heading
> %>
>
> Ultimatly I need the ActiveX object to perform some windows api functions
> and then send the result as HTML back to the user so I cant use a Linux
> machine but I prefer PHP and MySQL and running PHP in IIS can be
> troublesome.
>
> Maybe i'm just complicating the matter and should just stick with asp and
> iis and get MySQL running in Windows.
>
> Thanks for any help
> Geoff
It's possible but not recommended. COM support is somewhat shaky on
PHP. You have to try it to see though. Support on PHP5 is better than
PHP4 I believe.
To load a control, you would do something like:
$DelphiAxObj = new COM("TestX.TestX");
Check the manual for more info:
http://us3.php.net/manual/en/ref.com.php.
[Back to original message]
|