Keegan Miller wrote:
You can tell PHP to load a DLL by adding a line to php.ini.
[...]
It seems to me that there may also be a way to dynamically load a DLL in a script.
Yes, but only PHP modules, not arbitrary DLLs.
P.S. The dynamic extension loading is achieved through the dl() function.