How to use PHP to call the c interface

Source: Internet
Author: User
How can I use PHP to call a written c interface? for example, the database query statement in PHP is directly spelled out before the question, but it is inconvenient to maintain the database after modification, so I wrote a c interface. how can I call the c interface in php? what should I configure?


Reply to discussion (solution)

The c program can only be executed as an external command in php. Obviously, this is a long journey.
Of course, you can write php extensions for php

In addition, php is interpreted and executed. it cannot be said that modifying SQL commands in php is more complicated than modifying SQL commands in c programs.

The c program can only be executed as an external command in php. Obviously, this is a long journey.
Of course, you can write php extensions for php

In addition, php is interpreted and executed. it cannot be said that modifying SQL commands in php is more complicated than modifying SQL commands in c programs.


How to execute the c program as an external command in php? how to load it, the company gave an interface. The SQL statements in php are well written, but after the database is changed, it requires a huge workload to change the SQL statements. Therefore, I am not very familiar with c and I am doing java development. Temporary task

The company gave the interface, but did not give the call instructions?
Even if you don't explain it, won't you?

That's right on the second floor !!!

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.