I'm now facing the following problem. Please help me out.
I have two file in the same directory: test.php and test.r
test.php
<?php
exec("Rscript test.r");
?>
test.r
d=c(1:10);
write.csv(d, file="test.csv", fileEncoding="utf-8");
q();
While I access the test.php via chrome, it gives no test.csv.
Although it works fine on cmd Rscript test.r
, it does not work while executing test.php.
Any suggestion?
Thanks