I was using localhost to test my HTML file, but it downloads the PHP file instead of viewing it. How do you make it VIEW the PHP file, not downloading it?
Asked
Active
Viewed 84 times
1 Answers
1
You need to configure a web server to execute the PHP locally.
You can install and run an actual webserver (e.g. nginx or apache) or run the embedded version of the php server.

PaulProgrammer
- 16,175
- 4
- 39
- 56