Solved

Call C# program from PHP web page.

Posted on 2008-10-15
6
1,568 Views
Last Modified: 2013-12-17
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
Comment
Question by:arjitbhandari
  • 4
  • 2
6 Comments
 
LVL 9

Expert Comment

by:cdbeste
ID: 22728493
0
 
LVL 9

Expert Comment

by:cdbeste
ID: 22728501
oops..   you already know about phalanger....

my bad

0
 
LVL 9

Expert Comment

by:cdbeste
ID: 22728513

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
DevOps Toolchain Recommendations

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

 
LVL 9

Accepted Solution

by:
cdbeste earned 500 total points
ID: 22728519
You are not paying me enough to write the code for you..   LOL
0
 

Author Comment

by:arjitbhandari
ID: 22728523
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
 

Author Comment

by:arjitbhandari
ID: 22728537
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

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

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

679 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