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
Is such a thing possible between php and ruby / rails? Any help will be


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to