How to execute R Script from php exec() function
Hi, I have a R script for statistical analysis. I want to execute this script with the help of PHP. I tried many times php exec() function to execute this script but I am unable to integrate both script. Please help me how to troubleshoot this problem.
Thanks..
• 2,726 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello anshulmbi!
We believe that this post does not fit the main topic of this site.
Not strictly bioinformatics, try Stack Overflow
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
@WouterDeCoster I believe this can still be a valid question for bioinformatics field. We sometimes need to do real-time analyses and build a web server for that. This web server can be built in PHP and run R scripts at backend and collect results and show it to the user.
@anshulmbi As an answer, here I'm doing exactly what you ask: https://github.com/gungorbudak/exsurv/blob/master/app/app.php#L120 Feel free to explore the repo for its usage.
Thank you so much for your valuable support and suggestion.