开发者

What is the right way to pass value from php to r

I'm trying to pass a variable value from my php code to the r processing environment.

for example:

<?php

$val=5;

?>

<%

print (val)

%>

Obvio开发者_开发百科usly this doesn't work.

What is the right way to do it?

Thaks,

Yoni.

Update

I'm using rapache.

It works, but I would like to use php the react with the client.


It looks like your options are

  • Pass your arguments from PHP to some pre-written R script using a combination of the PHP exec() command and Rscript
  • look into rapache
  • or see if you can find anything in the R FAQ on Web interfaces

At least that's what I've been able to come up with.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜