Solved

Call .net dll from PHP

Posted on 2015-01-21
6
512 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 82

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
Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Get String split 5 32
Handle null when using linq in this line 1 20
Showdialog 8 20
Re-position sub-options beneath the TAB 7 39
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

707 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now