Using DLL within PHP

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
kia44
Forum Newbie
Posts: 2
Joined: Tue Oct 19, 2004 3:02 pm
Location: California

Using DLL within PHP

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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
kia44
Forum Newbie
Posts: 2
Joined: Tue Oct 19, 2004 3:02 pm
Location: California

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