Reply to Re: Can ActiveX controls work in PHP running on Apache On a Windows Machine?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация