Solved

Call C# program from PHP web page.

Posted on 2008-10-15
6
1,560 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Call windows 10 virtual keyboard from windows forms app 2 36
start a process from a service 3 23
How can I make this form submit to itself? 10 27
Powershell File Sort 8 31
These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
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 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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 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