Friday, April 6, 2012

Re: [Rails] Rails & PHP

On Apr 6, 2012, at 3:53 PM, Ralph Shnelvar wrote:

> I am inheriting a legacy PHP website and I want to add a few Rails pages.
>
> Is there anyone who can recommend some info on how to add RoR to a PHP-driven website?

I've never tried this, but if you're using Passenger, it seems likely that you could add the handler directive to your Apache configuration (or maybe it would inherit the php handler stuff if the server can already host php by default) and then put the entire PHP site in the public folder. Just make sure that you don't clobber any of your routes, and it should work fine. If you're not hitting the same database with PHP and Rails, you could possibly get away with as little as that.

Walter

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate