communicate c program and php

后端 未结 4 1506
悲&欢浪女
悲&欢浪女 2020-12-03 09:14

I want to have a web page (written in php because it\'s what i know) that displays an input value. I want that value to be passed to a c programa that\'s already running.

4条回答
  •  温柔的废话
    2020-12-03 09:58

    A local socket is just a file, you'd use fopen(), fwrite(), and fclose() on it, as usual. The only difference is that you're reading from (or writing to) another process, instead of a file on disk somewhere.

提交回复
热议问题