From: John Joyce Date: 2007-07-31T01:22:11+09:00 Subject: Re: Ruby and PHP code in html-page On Jul 30, 2007, at 7:48 AM, Vadim Shevchenko wrote: > Wayne E. Seguin wrote: >> On Jul 12, 2007, at 09:12 , Vadim Shevchenko wrote: >>> >>> =========== >>> >>> Main web-server script-language is Ruby. >>> I want to include PHP-code. >>> >>> Is it posiible? >> >> Try using SSI for the php code. > > SSI works super, but I have such problem: > I want to include in html-file some php-code one of counter-systems > written on PHP. > By using SSI, I must write php-code to some php-file and when this php > will be included, php-script don't know about html-file, about first > request uri. > For counter-system it's bad variant. > -- > Posted via http://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.