Re: ruby / rails within a php site
| From: | dg | Date: | Wed, 04 Mar 2009 06:02:56 +0000 |
| Subject: | Re: ruby / rails within a php site | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289219@lists.php.net to get a copy of this message | ||
If it's html that Ruby generates, you could probably call that file as an include?
Something like...
$ruby = file_get_contents('rubyfile.html');
then where ever in the document you want that content use:
<?php print "$ruby"; ?>
On Mar 3, 2009, at 9:56 PM, ravi Ruddarraju wrote:
I have a regular php site. I also have a ruby / rails application. Now I want to put the HTML generated by ruby / rails application within a <div> section of a php page. This should be similar to like calling a php function within a <div> section, which would produce the HTML output of the php function. Is such a thing possible between php and ruby / rails? Any help will be appreciated. Thanks ravi