docker-for-local-development
docker-for-local-development copied to clipboard
With this setup, php code in html files is not processed
How do we solve that ?
@omatrot I don't quite understand what you're asking. The configuration will allow you to drop in a simple PHP application and run it. It will run PHP in HTML files; not that that's a good idea.
I'm sorry but with my application it does not process php code in html files. Only in .php ones. The HTML files are sent as is to the browser, so I can see the php code in Chrome's source debugger.
That's odd. Do you have the code in a GitHub repository?
I think you can reproduce the problem with a simple html file containing a call to phpinfo.
The problem could be solved with the too steps detailed in this answer. The nginx default configuration file and the php configuration file should be modified accordingly. I'll prepare a pull request for you.
Thanks @omatrot