I need my ESP8266 web server to load my website files with .php extensions. So far I managed to load .htm .css and .js files from my SD card, but when I upload PHP files on my SD card, they won't run. How can I do that?
Asked
Active
Viewed 1.0k times
1 Answers
8
It sounds like you are trying to put a PHP file on an SD card that the ESP8266 will serve itself.
This is not possible, as no one has, and probably never will, port PHP to the Espressif 8266 platform.
Your device can serve .htm .css and .js files because it's just a matter of streaming the file content to the client. But PHP requires that an application on the server run the PHP code, and then send the resulting output to the client.
jose can u c
- 6,974
- 2
- 16
- 27