Re: PHP call Dll Function?
Keep in mind this will only work if the target platform runs a windows OS.
http://nz2.php.net/manual/en/function.system.php
You could potentially do this if you made a binary .exe file to take input, do the fuddling around with the DLL that you'd like, then return the data to the console (the command line). Run it all from PHP and get whatever the app spat out into the console with that.
That should do it.
Re: PHP call Dll Function?
On Windows:
http://au2.php.net/manual/en/ref.w32api.php
On other platforms, you'll need to make a binary as described above and call it with 'system' or 'exec'. This is because the PHP interpreter does not do binary linking when it executes a script.
(Contrary to the advice given, the second method will work on non-Windows platforms.)
If you find yourself doing this often, you might want to investigate creating an extension instead, so that you can call the functions in a native PHP manner.