This PHP file use shell command echo pipe arguments to R and accept the return from R and show it on web page.
R script (ex_1.r)
print(argv)
This R script just print the arguments.
Browse
Put the "ex_1.php" and "ex_1.r" into the same directory and open web browser to link "ex_1.php".
Click here to see the output return from R script "ex_1.r".