2

As far as I know, it's only possible under Windows. But maybe, just maybe, there is some perverse way to achieve this under Linux..?

Exander
  • 852
  • 1
  • 7
  • 17
  • How do you load it on windows? With `dl` ? Have you read the warning?: http://www.php.net/manual/en/function.dl.php – Felix Kling Jan 25 '10 at 10:03
  • Btw this is the first hit on Google searching for `php windows dll on linux` : http://www.justskins.com/forums/accessing-windows-dll-functiond-from-linux-server-38519.html – Felix Kling Jan 25 '10 at 10:05

3 Answers3

3

I doubt it, take a look at this SO question.

I mean nothings impossible, you could wrap it with mono, or emulate it with WINE, but to be honest it's probably going to be an ugly solution however you spin it.

Community
  • 1
  • 1
Ben Everard
  • 13,652
  • 14
  • 67
  • 96
1

You could run the Windows PHP through Wine.

Any specific reason for wanting to do this?

Gordon
  • 312,688
  • 75
  • 539
  • 559
0

If its web related just host it on a different box and call the DLL via a service layer.

Hassan Syed
  • 20,075
  • 11
  • 87
  • 171