It's not an external program that needs to be run but a DLL. For example, the DLL might contain some validation code that could be shared between a web application (ASP, PHP) and a windows application (visual basic).
For example all names have to be validated through the shared code. So is there a way to access shared code in DLLs with PHP? I'm pretty sure it can be done with ASP.