PunBB integration

Hi,

I’m new to ruby and rails and, after some inital success, I’ve hit a
bit of a roadblock. I’m setting up a community-based site which will
include a forum. I’m thinking of using PunBB for this but I dont
understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Ideally, I’d like the user to be able to click the ‘forum’ link and
then for the punBB code to display within the page’s view.

Can anybody tell me if this is possible? Any help would be
appreciated, thanks.

Gearóid O’Ceallaigh wrote:

Hi,

I’m new to ruby and rails and, after some inital success, I’ve hit a
bit of a roadblock. I’m setting up a community-based site which will
include a forum. I’m thinking of using PunBB for this but I dont
understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Ideally, I’d like the user to be able to click the ‘forum’ link and
then for the punBB code to display within the page’s view.

Can anybody tell me if this is possible? Any help would be
appreciated, thanks.

well y u want to integrate punbb u can integrate caboo(beast) forum or
eldorado or rforum which is built on rails…thats a better
option…unless there is some specific reason y u want to use punbb

Thanks

Dhaval P.
Software Engineer

sales(AT)railshouse(DOT)com

On 24 Jun 2008, at 12:13, Gearóid O’Ceallaigh wrote:

Hi,

I’m new to ruby and rails and, after some inital success, I’ve hit a
bit of a roadblock. I’m setting up a community-based site which will
include a forum. I’m thinking of using PunBB for this but I dont
understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Well mongrel etc… won’t serve php for you, but it’s not hard with
apache, nginx etc… to have one vhost pointing at your rails app and
another at your php app.

Fred

On Jun 24, 12:58 pm, Frederick C. [email protected]
wrote:

On 24 Jun 2008, at 12:13, Gearóid O’Ceallaigh wrote:

Well mongrel etc… won’t serve php for you, but it’s not hard with
apache, nginx etc… to have one vhost pointing at your rails app and
another at your php app.

Fred

I was thinking this way myself. However can I call pages to be
included on a page which are located on a seperate server? For
example, imagine my rails app held stuff like venue information but
then my forums was hosted on another server (or port when working
locally). So could I use something like this:

<%= yield :layout %>

where yield calls my php boards?

thanks for the help btw

<%= yield :layout %>

maybe you can use an iframe instead of the div
then this could look something like

On 24 Jun 2008, at 14:25, Gearóid O’Ceallaigh wrote:

another at your php app.

<%= yield :layout %>

Not out of the box you can’t. I suppose you could manually invoke the
php executable, but you might find you have to do quite a lot of
fiddling around in order to setup the environment (all the stuff that
apache would normally do for you).

Fred

Crap.

See, I’d have little issue with using Beast only I’m finding it
particularly difficult to install. I’ve gone through all the usual
steps suggested but get error 500 when trying to view it. Guess I’ll
just give it another shot…

On Jun 24, 2:32 pm, Frederick C. [email protected]

Check your log/development.log for any errors.


Appreciated my help?
Recommend me on Working With Rails
http://workingwithrails.com/person/11030-ryan-bigg