Page 1 of 1

dll and portability

Posted: Sun Jan 12, 2003 11:33 pm
by E_Fox
I have made a dll with some regex functions. They appear to faster than the builtin regex functions in php. The only problem is I made the dll in vc++ and I suppose it will run only on windows. At the moment I'm running my php script on windows server but I'm planning to move to linux or unix server.

Any idea how can I make my dll as much portable as possible?

I'm new to linux and unix, and I don't know if I can recompile my dll for unix or linux or linux or unix use dll files.

Any help is appriciated, thanks.
E. Fox

Posted: Sun Jan 12, 2003 11:58 pm
by Elmseeker
Nope, *NIX Flavors don't use dll files that is strictly a micro$oft window$ thing...

Posted: Mon Jan 13, 2003 3:29 am
by volka
but if you're coding ANSI C (or not too windows specific) it might be possible to compile your module on a *nix system, too.
The skeleton code for php-modules is the same for windows and *nix.