Is it possible to write a web application with C which acts both as the application and web server.
I mean, typically, web applications are written in PHP which is invoked by Apache. If you want to write an extremely fast and efficient small application can you write an executable to work independent of Apache and PHP interpreter?
Many thanks,
Majid
Edit: I want to write a simple game and the game is multi-player and should run as a server, client parts can be html forms within a browser. Doy you know of any simple open source game I can use as a skeleton? I want something which does not require a separate web-server or database-server
Sure it is possible — if you can write an OS with C, you can write a web server and application. It’ll just be a lot more work.
Here’s an example C web server with only 200 lines of code.