Re: Ruby and PHP code in html-page
- From: jzakiya <jzakiya@xxxxxxxx>
- Date: Mon, 30 Jul 2007 20:14:39 -0700
On Jul 30, 12:22 pm, John Joyce <dangerwillrobinsondan...@xxxxxxxxx>
wrote:
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 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/
.
- Follow-Ups:
- Re: Ruby and PHP code in html-page
- From: Vadim Shevchenko
- Re: Ruby and PHP code in html-page
- References:
- Ruby and PHP code in html-page
- From: Vadim Shevchenko
- Re: Ruby and PHP code in html-page
- From: John Joyce
- Ruby and PHP code in html-page
- Prev by Date: Re: Error using Tk
- Next by Date: Re: [ANN] shoes 0.r9 -- an entirely new GUI toolkit
- Previous by thread: Re: Ruby and PHP code in html-page
- Next by thread: Re: Ruby and PHP code in html-page
- Index(es):
Relevant Pages
|
Loading