# PHP Integration

**URL:** <https://www.ruby-forum.com/t/php-integration/103345>\
**Category:** Rails\
**Created:** [May 4, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/php-integration/103345 "2007-05-04T15:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@stephen](https://www.ruby-forum.com/u/stephen)\
**Post date:** [May 4, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/php-integration/103345/1 "2007-05-04T15:53:38Z")

</div>

Hi,

I was wondering if anyone had any ideas for integrating a phpbb site  
into a  
rails app so that it would utilize my layout. I can’t seem to find any  
custom modules and an iframe is less than ideal. Does anyone know of  
anything that does this existing?

One approach I thought of would involve writing a module that extends  
ActionController such that you can say that the controller is really a  
proxy  
for running a the php cli binary on the server and that the url given  
ito  
the controller would map to a directory/file in the php filetree, and  
would  
pass/preserve POST/GET, Cookies, etc. If the directory name matches the  
controller name, then relative urls should remain realitivly unborked.

Thoughts?

Stephen
