zohab Posted November 3, 2009 Share Posted November 3, 2009 Hi, I am a php developer and In my new project I have DLL files. These files add/edit/delete records from my database. I want to do some customizations. I have gone through articles on Google. Now I am looking for any solution to create dll and perform different operations example :add/edit/delete records in database. I am new in this . Quote Link to comment https://forums.phpfreaks.com/topic/180099-how-to-create-dll-file-and-perform-different-operations/ Share on other sites More sharing options...
Adam Posted November 3, 2009 Share Posted November 3, 2009 You may have some success with COM, but being as DLLs are *Windows* library files it may be a bit tricky. Quote Link to comment https://forums.phpfreaks.com/topic/180099-how-to-create-dll-file-and-perform-different-operations/#findComment-950218 Share on other sites More sharing options...
corbin Posted November 3, 2009 Share Posted November 3, 2009 Unless you can somehow get a COM object to work as MrAdam suggested, you're probably out of luck. DLLs are basically just files full of executable information stored in chunks like functions with a table that points to where each executable chunk is (it's not quite as simple as that sounds). But still, as far as I know PHP has no way to interact with random DLLs. You could write a PHP extension that interfaces with your own DLL, but that could quickly become difficult. Quote Link to comment https://forums.phpfreaks.com/topic/180099-how-to-create-dll-file-and-perform-different-operations/#findComment-950564 Share on other sites More sharing options...
Daniel0 Posted November 5, 2009 Share Posted November 5, 2009 But still, as far as I know PHP has no way to interact with random DLLs. You could write a PHP extension that interfaces with your own DLL, but that could quickly become difficult. It could just act as a proxy so myfunction() in PHP user land (via the extension) would then map to myfunction() in his DLL. Assuming he knows C how to write PHP extensions, that shouldn't be so difficult. Quote Link to comment https://forums.phpfreaks.com/topic/180099-how-to-create-dll-file-and-perform-different-operations/#findComment-951798 Share on other sites More sharing options...
corbin Posted November 7, 2009 Share Posted November 7, 2009 Well, what if the DLL has to retain state or something? I don't know why it would need to as long as it's just functions and not classes, but who knows. Quote Link to comment https://forums.phpfreaks.com/topic/180099-how-to-create-dll-file-and-perform-different-operations/#findComment-953003 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.