Re: [PHP] ruby / rails within a php site

2009-03-04 Thread Kyohere Luke
Would this work? $contents = file_get_contents(' http://localhost/path_to_ruby_installation/rubyfile'); then print out the contents wherever you want to? or something similar, basically, we get the html output of the ruby file over http, since this will run your ruby/rails installation the w

Re: [PHP] ruby / rails within a php site

2009-03-03 Thread dg
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: On Mar 3, 2009, at 9:56 PM, ravi Ruddarraju wrote: I have a regular php site. I also h

[PHP] ruby / rails within a php site

2009-03-03 Thread ravi Ruddarraju
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 section of a php page. This should be similar to like calling a php function within a section, which would produce the HTML output of the php function. Is s