Page 1 of 1

Using DLL within PHP

Posted: Tue Oct 19, 2004 3:08 pm
by kia44
Hi,

I am trying to use a DLL file for some back-end stuff (encyprtion, token passing, etc) in a PHP script. There are functions that would save alot of time if I didn't have to write in PHP and just use the DLL file. I have not been able to find anyway to do this and have not seen any exmaples of this. Is anyone familiar with using DLL in PHP or any ideas on how that would be possible. Any feedback would be appreciated. :)

Thanks,

Kia

Posted: Tue Oct 19, 2004 3:12 pm
by feyd
did you look at [php_man]w32api[/php_man]?

Personally, I'd write a custom extension for php if you can, that can load and process your DLL.. but probably by the time you figure that out, you can have written all the DLL code in PHP.. so, meh.

Posted: Tue Oct 19, 2004 3:57 pm
by Weirdan
feyd wrote:did you look at [php_man]w32api[/php_man]?
Last time I checked w32api was completely broken. FFI extension might be good alternative to w32api

Posted: Tue Oct 19, 2004 8:52 pm
by kia44
someone recommended writing a wrapper in C, but I am not sure how to do that. Anyone have any ideas on what that means? I haven't checked out w32api or FFI extension. Thanks