Solved

Call .net dll from PHP

Posted on 2015-01-21
6
560 Views
Last Modified: 2015-01-21
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.
0
Comment
Question by:amucinobluedot
6 Comments
 
LVL 27

Accepted Solution

by:
Sammy earned 167 total points
ID: 40562488
You should take a look at phalanger  http://phalanger.codeplex.com/
0
 
LVL 34

Assisted Solution

by:gr8gonzo
gr8gonzo earned 167 total points
ID: 40562500
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
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 166 total points
ID: 40562590
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:amucinobluedot
ID: 40562605
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
 

Author Comment

by:amucinobluedot
ID: 40562606
I have my own server  :)
0
 

Author Closing Comment

by:amucinobluedot
ID: 40562607
Thx !
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question