From: jzakiya Date: 2007-08-01T04:34:59+09:00 Subject: Re: Ruby and PHP code in html-page On Jul 31, 2:21 am, Vadim Shevchenko wrote: > jzakiya wrote: > > On Jul 30, 12:22 pm, John Joyce > > wrote: > >> >>> I want to include PHP-code. > >> > request uri. > >> > For counter-system it's bad variant. > >> > -- > >> > Posted viahttp://www.ruby-forum.com/. > > >> It might be possible to use ERb (Ruby) to insert the PHP. > >> And then have the server first process files with Ruby, then with PHP. > >> Depends on the server. It's ugly, maybe a little slower, but probably > >> possible. > > > You may want to look at Erubis. > >http://www.kuwata-lab.com/erubis/ > > With Erubis I can "convert" Ruby-code to PHP. I need to insert PHP-code > in Ruby-project. > -- > Posted viahttp://www.ruby-forum.com/. Did you look at the Erubis documentation? http://www.kuwata-lab.com/erubis/users-guide.04.html#lang