How to run Ruby/Python scripts from inside PHP passing and receiving parameters?

后端 未结 5 1566
野性不改
野性不改 2020-12-09 00:08

I need to turn HTML into equivalent Markdown-structured text.

OBS.: Quick and clear way of doing this with PHP & Python.

As I am programming in PHP, som

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 01:00

    Use a variable in the Ruby code, and pass it in as an argument to the Ruby script from the PHP code. Then, have the Ruby script return the processed code into stdout which PHP can read.

提交回复
热议问题