dll and portability

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
E_Fox
Forum Newbie
Posts: 9
Joined: Sun Jan 12, 2003 11:33 pm

dll and portability

Post 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
User avatar
Elmseeker
Forum Contributor
Posts: 132
Joined: Sun Dec 22, 2002 5:48 am
Location: Worcester, MA

Post by Elmseeker »

Nope, *NIX Flavors don't use dll files that is strictly a micro$oft window$ thing...
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply