Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Call C# program from PHP web page.

Posted on 2008-10-15
6
Medium Priority
?
1,589 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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 9

Accepted Solution

by:
cdbeste earned 1500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

705 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