A web server in C- with PHP support

My previous post was a brief introduction to a web server and a python implementation of a simple web server.

However the implementation of a web server in C is not as easy as python, but with few lines of code, you can implement a simple web server!

Here is my code of a webserver that supports PHP. It accepts different file types including PHP, and serves the files to the client.

https://github.com/Dilu9218/MyWork/blob/master/trywebserver.c

Below is an alternative simple non descriptive code which works fine in port 8000.




https://github.com/Dilu9218/MyWork/blob/master/webserver.c




Comments

Popular posts from this blog

Save recorded data with hackRF to a .raw file

Listen to FM radio with HackRF and SDR