开发者

calling script php from Ruby

Excuse me, practices need to call a php script from ruby.

This will make the scipt php function to insert a record in two different databases out of my local server.

For example:

After a user registers need to register the same record in two external databases, and had thought of doing it with a php script with ruby because I have no idea, because they mistakenly used a database architecture decentralized, and I should make many modifications in the codigoa INSERT INTO only do one triple, one at a local database and two more to external databases.

I hope I have expressed correctly.

Thanks for your time and your answers


excuse me, practices need to call a php script from ruby.

This will make the scipt php function to insert a record in two different databases out of my local server.

For example:

After a user registers need to register the same record in two external databases, and had thought of doing it with a php script with ruby because I have no idea, because they mistakenly used a database architecture decentralized, and I should make many modifications in the codigoa INSERT INTO only do one triple, one at a local database and two more to external databases.

I hope I have ex开发者_JAVA技巧pressed correctly.

Thanks for your time and your answers


You should phrase your question more precisely. You can either use the standard Ruby system execution methods to run the PHP interpreter, or you can use the HTTP library to request the PHP script from the webserver, hence running it.

Or do you have a different question?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜