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

后端 未结 5 1555
野性不改
野性不改 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 00:45

    Another very weird approach will be like the one i used.

    Php file -> output.txt
    ruby file -> read from output.txt
    Ruby file-> result.txt
    Php file -> read from result.txt
    
    simple add exec(rubyfile.rb);
    

    Not recommended but this will work for sure.

提交回复
热议问题