Home  >  Article  >  Backend Development  >  PHP calls C language interface?

PHP calls C language interface?

WBOY
WBOYOriginal
2016-08-18 09:15:482061browse

Now the project is divided into two parts. One part is written in C language, and the other part is written in PHP. How to call the C interface in PHP? Have you ever heard that you can make calls using the server's protocol? Can you explain it in detail?

Reply content:

Now the project is divided into two parts. One part is written in C language, and the other part is written in PHP. How to call the C interface in PHP? Have you ever heard that you can make calls using the server's protocol? Can you explain it in detail?

Use socket to implement, the same machine can use unix socket, different machines can use tcp socket

Can be called via ice

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn