<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Using PHP inside Rails structure on Apache</title>
	<atom:link href="http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/</link>
	<description>Digging the watery grave and talking about PHP, Rails and tech stuff..</description>
	<pubDate>Mon, 21 May 2012 14:42:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter</title>
		<link>http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/comment-page-1/#comment-28163</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 13 Oct 2010 05:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/06/29/using-php-inside-rails-structure-on-apache/#comment-28163</guid>
		<description>There has got to be a way to use a two layer approach, having the rails output .php and then apache pushing the php.</description>
		<content:encoded><![CDATA[<p>There has got to be a way to use a two layer approach, having the rails output .php and then apache pushing the php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrell</title>
		<link>http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/comment-page-1/#comment-26588</link>
		<dc:creator>Terrell</dc:creator>
		<pubDate>Tue, 15 Jan 2008 01:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/06/29/using-php-inside-rails-structure-on-apache/#comment-26588</guid>
		<description>A two piece solution is what I found...

1) in apache.conf
# send all /forum traffic to php
RewriteCond %{REQUEST_URI} ^/forum.*
RewriteRule .* - [L]
# send all /wiki traffic to php
RewriteCond %{REQUEST_URI} ^/wiki.*
RewriteRule .* - [L]

2) in your PHP app - edit .htaccess
RewriteEngine Off

posted more fully...
http://weblog.terrellrussell.com/2008/01/running-php-within-rails/</description>
		<content:encoded><![CDATA[<p>A two piece solution is what I found&#8230;</p>
<p>1) in apache.conf<br />
# send all /forum traffic to php<br />
RewriteCond %{REQUEST_URI} ^/forum.*<br />
RewriteRule .* - [L]<br />
# send all /wiki traffic to php<br />
RewriteCond %{REQUEST_URI} ^/wiki.*<br />
RewriteRule .* - [L]</p>
<p>2) in your PHP app - edit .htaccess<br />
RewriteEngine Off</p>
<p>posted more fully&#8230;<br />
<a href="http://weblog.terrellrussell.com/2008/01/running-php-within-rails/" rel="nofollow">http://weblog.terrellrussell.com/2008/01/running-php-within-rails/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/comment-page-1/#comment-26049</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 16 Aug 2007 05:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/06/29/using-php-inside-rails-structure-on-apache/#comment-26049</guid>
		<description>Hi David,

looks like wordpress have chopped some of your comment's tags..

You mean the possibility to forward Rails-processed stuff further to PHP processor? Since the processing goes like: Apache -&gt; Mongrel -&gt; RoR (Ruby), you'll actually have to call the PHP processor not from Apache, but rather from your Rails code (that is, if I understand how stuff works, right)

I guess it is possible with some effort put into it (you'll have to pass all the params and there might possible be problems with multipart forms or stuff like that).. but I think making modifications to the normal Rails processing flow just to be able to process PHP scripts is a little overkill. I'm not sure I would wanted to install such a plugin, even if it existed. Putting PHP-only stuff into separate directory is the cleanest solution in my opinion. Rails and PHP don't really mix very good :)</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>looks like wordpress have chopped some of your comment&#039;s tags..</p>
<p>You mean the possibility to forward Rails-processed stuff further to PHP processor? Since the processing goes like: Apache -> Mongrel -> RoR (Ruby), you&#039;ll actually have to call the PHP processor not from Apache, but rather from your Rails code (that is, if I understand how stuff works, right)</p>
<p>I guess it is possible with some effort put into it (you&#039;ll have to pass all the params and there might possible be problems with multipart forms or stuff like that).. but I think making modifications to the normal Rails processing flow just to be able to process PHP scripts is a little overkill. I&#039;m not sure I would wanted to install such a plugin, even if it existed. Putting PHP-only stuff into separate directory is the cleanest solution in my opinion. Rails and PHP don&#039;t really mix very good :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://macdiggs.com/2007/06/29/using-php-inside-rails-structure-on-apache/comment-page-1/#comment-26048</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 15 Aug 2007 17:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/06/29/using-php-inside-rails-structure-on-apache/#comment-26048</guid>
		<description>Hi,
I'm wondering if it is possible to do post-erb php processing. What I mean by that is that after Apache gets a page from Mongrel, that has been processed by rails, Apache sends it through PHP processing.

For instance, if a view in rails had:

&lt;code&gt;

 

&lt;/code&gt;
then Mongrel would return:

&lt;code&gt;

 hi

&lt;/code&gt;

And then Apache would just handle the returned page as a normal PHP file.

The reason that I ask is because we have a PHP-based site that we're trying to convert into rails, and many scripts rely on PHP includes that want to push off for the future.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#039;m wondering if it is possible to do post-erb php processing. What I mean by that is that after Apache gets a page from Mongrel, that has been processed by rails, Apache sends it through PHP processing.</p>
<p>For instance, if a view in rails had:</p>
<p>&lt;code&gt;</p>
<p>&lt;/code&gt;<br />
then Mongrel would return:</p>
<p><code></p>
<p> hi</p>
<p></code></p>
<p>And then Apache would just handle the returned page as a normal PHP file.</p>
<p>The reason that I ask is because we have a PHP-based site that we&#039;re trying to convert into rails, and many scripts rely on PHP includes that want to push off for the future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

