I’m trying to come up with a solution to this problem. I have a Ruby script that needs to run some PHP code, but I am new to Ruby, so I don’t know how to go about doing this.
def run_my_code
#execute some PHP code here
# $person = new Person();
# $person->doSomething();
end
How can I achieve this?
one way is to use
exechttp://ruby-doc.org/core/classes/Kernel.html#M005968
also `ls` or `cmd` works too (back tick)