Can PHP and C++ pass data between each other?

后端 未结 11 1766
悲哀的现实
悲哀的现实 2020-12-14 20:36

I have a lot of mathematical calculations in my PHP script, which can be quite slow at times. I\'m wondering if it\'s possible to pass data from PHP to C++, do the calculati

11条回答
  •  爱一瞬间的悲伤
    2020-12-14 21:10

    Yes it can be done:

    PHP can run commands on the server.

    The process is different for both WINDOWS and LINUX systems

    For windows check these links

    exec Function

    link for background processes in windows

    For Linux:

    system Function

    Running a process in background

    Well i tried to use this process and succeed a little.

    And one more thing you can grab the results too

提交回复
热议问题