2

I saw a lot of interesting libraries in Ruby that don't exist for PHP or its equivalents, so I want know if there is a library interpreter or something that can use RUBY code inside PHP programs to call methods and pass variables.

thx

1
  • welcome to stackoverflow. I wanted to invite you to read the FAQ so that you know how to ask and answer questions (this also is a reaction to your answer to this question). Further please respect our community by using good spelling and grammar and people will be happy to help you. Commented Jul 21, 2011 at 22:07

2 Answers 2

2

There is no way that I know of to, say, write a PHP wrapper for a Ruby class.

You can, however, write a standalone Ruby script and then call it with a system command.

Sign up to request clarification or add additional context in comments.

2 Comments

yea but hte interesting is pass varibals from one to ohter
Well, then write your standalone ruby script to accept parameters on the command line.
0

You could run a Ruby daemon or background worker of some kind and connect it with something like RabbitMQ.

But Matchu's suggestion of a script should be good enough. Ruby starts quickly. A good server can start Ruby from scratch and run a trivial Ruby script almost 500 times / second / core. Even a bad server can do 50 / second.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.