Don't try to integrate R with PHP, as you'll end up writing spaghetti code.
Use AJAX to send requests to the server with RApache scripts. OpenCPU will
do the job just fine, but make sure you use JSONP/CORS to bypass the same
origin policy. Long story short, it's something like this:

LAMP <-AJAX-> R

aL3xa



On Tue, Oct 23, 2012 at 3:41 PM, Matt Shotwell <matt.shotw...@vanderbilt.edu
> wrote:

> > I want to connect R with HTML/PHP pages to take input from user,do
> > some
> > statistical processing on it  & show results to HTML page again.
> > I search on net,i got Rserve package,but examples  are mainly for java
> > langaure & not for PHP
> > i am wondering how to connect it to PHP-Apache-MySQL
> > Is there any good tutorial/video which will tell me how to do that ?
> > At least tell me logical way how to use it ?
>
> Check out http://rapache.net/
>
> rApache connects R and the Apache 2 web server, such that R can act as a
> server-side scripting language, like PHP. This may be the easiest way,
> using R, to take user input from the web browser.
>
> The site has some decent documentation and links to examples.
>
> --Matt
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to