|
Posted by Jim Carlock on 10/03/07 18:44
"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.
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.
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).
--
Jim Carlock
Swimming Pool, Spa And Water Feature Builders
http://www.aquaticcreationsnc.com/
Navigation:
[Reply to this message]
|