yoni and tszi
yoni and tszi

Reputation: 19

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)

%>

Obviously 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.

Upvotes: 0

Views: 579

Answers (1)

Erik
Erik

Reputation: 446

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.

Upvotes: 1

Related Questions