Rendering a PHP script on the fly in Rails
Rendering a PHP script on the fly in Rails
I've been spending a few hours in Rails trying to do the following.
access.log
However, this seems extremely complicated. While I was doing this, I realized that the public directory is accessible to everyone, so why not try to use this? The only problem that I've run into is that I cannot render a php file from the public folder.
Is there an easier way to accomplish what I'm trying to do? If I could just get rails to display the PHP file, I imagine I could capture the user's POST request fairly easy. Not sure if something like this is possible though.
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I find this as possible but can you provide small example of rails & php files, so that we know what exactly you want to achieve.
– bhagwanparge
Sep 10 '18 at 5:23