Php – How to call ASP.NET .dll file from a PHP script asp.netphp Do you know how can I call an ASP.NET .dll file from a PHP script? Thanks! Best Solution You use the DOTNET extension. First off, you need to be running this on Windows. If you are on linux, then I would look at using something like Facebooks Thrift. If you are on windows and depending on which build of windows you are using you may need to uncomment the com extension in your php.ini <?php $stack = new DOTNET("mscorlib", "System.Collections.Stack"); $stack->Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); ?> Here are a list of Windows Specific functions
Best Solution
You use the DOTNET extension.
First off, you need to be running this on Windows. If you are on linux, then I would look at using something like Facebooks Thrift.
If you are on windows and depending on which build of windows you are using you may need to uncomment the com extension in your php.ini
Here are a list of Windows Specific functions