Solved

Call .net dll from PHP

Posted on 2015-01-21
6
541 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
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.

 

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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

770 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