Solved

Call .net dll from PHP

Posted on 2015-01-21
6
588 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Code planning methods/tools? 5 56
Textbox autocomplete using jquery in asp.net 13 50
dropdownlist in asp.net vb. 3 23
Can't Find The Code 15 22
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

752 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