or you just want to be messy and throw your php files in public/ you
could remove the $HTTP[“url”] =~ “^/php” { and the two lines below it.
im sure apache can do all this…i switched to lighttpd for the concise
and simple configuration. the better performance is just gravy…

That’s not going to work, as the rhtml file gets interpreted by the
Rails
dispatcher, not Apache. The only thing I can think of is to invoke the
PHP
interpreter inside of Rails, but the resulting tentacles are your own
problem.

For image generation, though, you don’t need to run PHP inside of Rails,
you
just need to point your image src= at the PHP script. But I don’t know
anything about these “JD library graphical plugs”, so maybe you do need
PHP
inside your HTML.

Put the php page in another folder as suggested above and use Ruby’s
net/http library to make the request to your server. This allows yo
uto store this into a string which you can then parse and embed.