Re: Ruby and PHP code in html-page



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/

.



Relevant Pages

  • Re: Ruby and PHP code in html-page
    ... I want to include PHP-code. ... Try using SSI for the php code. ... I want to include in html-file some php-code one of counter-systems ... It might be possible to use ERb (Ruby) to insert the PHP. ...
    (comp.lang.ruby)
  • Re: After browser quit
    ... PHP does not have any clue what the user is doing after the page has been sent to the user/browser. ... PHP cannot see if the user is closing his browser or thatelse the usr is doing. ... PHP only knows about the user again when the user click's on a button or URL-link en the PHP-code is started once again. ... When the user closes a page the JavaScript can then execute the final PHP code to do the clean-up. ...
    (php.general)
  • Re: After browser quit
    ... I think the mentiond function is a PHP functions wich has to run when the ... At this point the page is sent to the browser. ... URL-link en the PHP-code is started once again. ... When the user closes a page the JavaScript can then execute ...
    (php.general)
  • How tot convert PHP-code into ASP-code
    ... Can someone help me to convert this PHP-code into ASPcode (I am not ... familiar with PHP) ... This code is part of a code to avoid spam in a formular. ...
    (microsoft.public.frontpage.programming)

Loading