Php calls c # solution

Source: Internet
Author: User
Php calls c # How do I call functions in c # Using php ?? Which of the following is a trick? ------ Solution -------------------- function? Then you can only write a dll and call php ------ solution ------------------ write php extension does not ............ If it is written, you will not have this question; do not use php to call c #
How can I use php to call functions in c ?? Which of the following is a trick?


------ Solution --------------------
Function?
You can only write a dll and call it for php.
------ Solution --------------------
I can write php extensions ............
You won't have this question if you write it;
If not, check the relevant documents first.
------ Solution --------------------
1. confirm that. net is installed on your server.
2. confirm that the com_dotnet extension has been loaded.

Test code in the manual
$ Stack = new DOTNET ("mscorlib", "System. Collections. Stack ");
$ Stack-> Push (". Net ");
$ Stack-> Push ("Hello ");
Echo $ stack-> Pop (). $ stack-> Pop ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.