Hi all , I have a small doubt , Can we call a php function in Rails . Is there any Interpreter or a Bridge in which Rails application can talk to a Php File and call a specific method from php file . Thanks in Advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Srinivas Iyer wrote:> Hi all , > > I have a small doubt , Can we call a php function in Rails . Is there > any > Interpreter or a Bridge in which Rails application can talk to a Php > FileNot as such. I''d suggest either of the following two options: * Treat your PHP app as an external Web service. This is simple and clean. * If you really need PHP and Ruby playing in the same pool, try using Java, JRuby, and Quercus. But this is likely to be far more difficult.> and call a specific method from php file . Thanks in AdvanceBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Thanks Marnen for your Suggestions Out of the two solutions you have suggested , which one will provide better performance , If i create the PHP app as an external Web Service and and call the method , My application should always be dependent on the Apache Server and this may afftect the performance of the Application and using webservice there may be time delay inorder to talk with the Apache Server and get the desired result How about the Second option''s performance ? since i havent tried it . Regards, Srinivas On Tue, Jul 14, 2009 at 3:56 AM, Marnen Laibow-Koser < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Srinivas Iyer wrote: > > Hi all , > > > > I have a small doubt , Can we call a php function in Rails . Is there > > any > > Interpreter or a Bridge in which Rails application can talk to a Php > > File > > Not as such. I''d suggest either of the following two options: > > * Treat your PHP app as an external Web service. This is simple and > clean. > * If you really need PHP and Ruby playing in the same pool, try using > Java, JRuby, and Quercus. But this is likely to be far more difficult. > > > and call a specific method from php file . Thanks in Advance > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Srinivas Iyer wrote:> Thanks Marnen for your Suggestions > > Out of the two solutions you have suggested , which one will provide > better performance ,I have no idea.> > If i create the PHP app as an external Web Service and and call the > method , My application should always be dependent on the Apache Server > and this may afftect the performance of the Application and using > webservice there may be time delay inorder to talk with the Apache > Server > and get the desired result >Yes, that''s true. Is this a big deal?> How about the Second option''s performance ? since i havent tried it > .Neither have I. And I''ve only really used the first option in developing Facebook apps (and in those cases, it was wrapped by Facebooker).> > Regards, > Srinivas >Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.