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.
精彩评论