Topic: Executing PHP code in Rails
For a project I'm working on I need to be able to execute a PHP include file from within my ruby code. The way it should work is a user inputs some data into a form, that data is stored in a database but also passed to a PHP file in the form of GET variables. The PHP file then works on the data and returns an output to ruby. Ruby then has to accept that data and use it. Any ideas on how this would work?
An example would be something like this:
1. User inputs data via a form.
2. The controller does two things. Stores the data in a db and then passes that information on to a PHP file.
3. The PHP file receives the data and then works on it and outputs a result.
4. Ruby accepts the result back and works on it.