Ruby komut dosyası içinde PHP kodu çalıştırmak nasıl?

0 Cevap php

Ben bu sorun için bir çözüm ile gelip çalışıyorum. Bazı PHP kodu çalıştırmak için gereken bir Ruby komut dosyası var, ama ben Ruby yeni am, bu yüzden bunu hakkında gitmek nasıl bilmiyorum.

def run_my_code
    #execute some PHP code here
    # $person = new Person();
    # $person->doSomething();
end

Bunu nasıl başarabiliriz?

0 Cevap