Solved

Call C# program from PHP web page.

Posted on 2008-10-15
6
1,578 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
[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
  • 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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
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.

630 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