开发者

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

开发者 https://www.devze.com 2023-02-21 10:42 出处:网络
I\'m trying to pass a variable value from my php code to the r processing environment. for example: <?php

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

精彩评论

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