Forum Moderators: coopster

Message Too Old, No Replies

PHP and DLL files

functions in dll

         

Habtom

10:23 am on Dec 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[it.php.net...]

I haven't been able to access the file in my own custom made dll files using the PHP function dl.

Can someone tell me the basic syntax of accessing the function in a certain dll file?

dl("my_own.dll");

. . . .?

$my_result = MyFunctions();

gergoe

2:37 pm on Dec 11, 2007 (gmt 0)

10+ Year Member



Few months ago when I would have to do the same, I could not figure out a way which works well, so I finally wrote a php module for that particular problem. If that's not an option for you, then you can try the ffi PECL package [pecl.php.net], or if the dll you're trying to use is a com or .net library, then you should look into the COM extension [php.net]. The win32api extension has been dropped a while ago, I think it is even not supported in newer php versions.