Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1603
  • Last Modified:

Call C# program from PHP web page.

I am implementing a web application in PHP to retrieve and display contacts from MS Exchange 2007. For retrieving the contacts, I have written a separate C# code to call the Exchange WebServices. At the same time, I have installed Visual Studio 2008 with Phalanger extension. With the Phalanger extension, I should be able to use .NET objects within PHP code. My question is, what are the steps (with syntax) I should follow to integrate/call this C# function from PHP? Or is there any way by which I can simply call the Exchange WebServices from PHP?

I have attached the C# code to call the WebService for your reference.

Thanks a lot for all you help.

Sincerely
Arjit

wscall.txt
0
arjitbhandari
Asked:
arjitbhandari
  • 4
  • 2
1 Solution
 
cdbesteCommented:
0
 
cdbesteCommented:
oops..   you already know about phalanger....

my bad

0
 
cdbesteCommented:

Your question should have been....

How do I use .NET objects within PHP code.

your answer is....

http://www.codeproject.com/KB/cross-platform/phalanger-intro.aspx
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
cdbesteCommented:
You are not paying me enough to write the code for you..   LOL
0
 
arjitbhandariAuthor Commented:
Even with Phalanger, I want to use C# within PHP and not PHP within C# as my entire web application is in PHP. I am thinking that I might have to create a "assembly/dll reference" for the C# code previously attached.
Any comments?

I appreciate your response.

Thanks
Arjit
0
 
arjitbhandariAuthor Commented:
Hi,

I already saw this link: http://www.codeproject.com/KB/cross-platform/phalanger-intro.aspx
How can I create "assembly reference" for the C# file?

Thanks
Arjit
0

Featured Post

Industry Leaders: 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!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now