|
Posted by Steve on 10/03/07 19:20
"Jim Carlock" <anonymous@127.0.0.1> wrote in message
news:4703e327$0$32516$4c368faf@roadrunner.com...
> "Jim Carlock" wrote...
>> If I can only figure out how to get PHP to link/connect to an
>> ActiveX DLL without use any of that CreateObject syntax...
>
> "Steve" wrote...
> : You'd really be shooting yourself in the foot to use a dll
> : for db access. Why not use the built-in ODBC functionality?
>
> Well, there's two things I want to know.
>
> (1) How to connect to an ActiveX dll through PHP.
> (2) How to connect to a standard dll through PHP.
>
both using COM. if by 'activex dll' you mean NOT a control, then it's all
done the same way...via php's COM() function.
> I know I can throw something into httpd.conf to get a dll in
> there, but I don't think that includes ActiveX dlls. SO the
> big advantage would be to have a PHP STATEMENT like:
>
> $dwErr = ConnectToDll($dwPathToMyActiveX, DLL_ACTIVEX, DLL_CONNECT);
> $dwErr = ConnectToDll($dwPathToMyDLL, DLL_STANDARD, DLL_CONNECT);
>
> I'm thinking along those lines. It would end up as a Windows
> only thing, as I do not think the *nix OS support any type
> of ActiveX function, but perhaps it can get be done in *nix
> and an added constant can show up (LIBRARY_UNIX). I just do
> not know much about *nix at the moment. Still messing with
> doing installs of *nix.
>
> I bet this can be done in VB a little easier, then converted
> to C++ or another language.
and "this" is ... what? a db consumer object that need not be built?
> It's just something that crossed my mind and now that I'm
> thinking about it, it would be a really nice way to connect
> and disconnect from DLLs.
>
> It might be possible to do automatic garbage cleanup, but
> that might depend upon the type of library connected to.
>
> It requires some security to manage the implementation/
> installation of connection to the DLL (library).
actually, very little...which is scary.
[Back to original message]
|