This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Extremely minimal civetweb(formerly mongoose) + PH7 scripted web server for embedded use, | |
* or just a lightweight alternative to your usual PHP and Apache, nginx, lighttpd. | |
* Serves up files and PH7 scripts from the directory run. | |
* Compiles on linux with: | |
* cc -Wall -pipe -DPH7_ENABLE_MATH_FUNC -O2 -lm -ldl -lpthread civetweb.c ph7.c ph7_server.c -o server | |
* Windows: untested | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |