Call .net dll from PHP

I currently have a classic ASP Web Application, it calls a .net dll,  setting it up as not easy but its possible.

This year we will start moving all the ASP code and MS SQL 2008 to MySQL and PHP. I would still need to use the .net application and I want to make sure it is possible to call a .net dll from PHP.

Comments are appreciated.
LVL 1
AleksAsked:
Who is Participating?
 
SammyCommented:
You should take a look at phalanger  http://phalanger.codeplex.com/
0
 
gr8gonzoConsultantCommented:
I would probably just suggest building a .NET executable that makes use of the DLL. Let PHP call the executable (e.g. via shell_exec) along with parameters and let the .NET executable handle the in-between.
0
 
Dave BaldwinFixer of ProblemsCommented:
gr8gonzo's suggestion is probably the best.  PHP doesn't know anything about the interfaces to a .dll so you would have to write your own interface anyway.  Phalanger might be an option if it is your server.  Probably wouldn't be allowed on shared hosting.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AleksAuthor Commented:
Thanks. At this point I just want to know it IS possible. We will get to the details of this a few months from now.
0
 
AleksAuthor Commented:
I have my own server  :)
0
 
AleksAuthor Commented:
Thx !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.