Call a C# .net .dll script using PHP

后端 未结 2 1793
不知归路
不知归路 2020-12-19 11:43

I have a C# .net dll script that calls a SQL stored procedure that SELECTs data in order to do run relevant methods.

I need to run the dll using PHP as

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 12:45

    Using COM directly has many caveats and issues.

    There is a library called NetPhp that abstracts on top of COM using reflection, so that you can call ANY .dll from within PHP without hassle:

    http://www.drupalonwindows.com/en/blog/calling-net-framework-and-net-assemblies-php

提交回复
热议问题