how to call ruby script from php?

前端 未结 3 1467
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 01:10

I am writing a Wordpress plug in php in and next step is some kind of add on to this plug in.

The add on would scrape data from web, sending forms etc. I have this

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-06 01:29

    Use exec() to run the ruby interpreter, giving it the path to your ruby script.

    http://php.net/manual/en/function.exec.php

提交回复
热议问题