Hi everybody! I'm writing a HTTP server from scratch in C on Linux, using the C Standard Library. I managed to enable it to send/receive http requests and show html/css/js pages on a web browser, when a client requests them.
But now, I'm trying to make it able to work with PHP. I'm relatively new to all this networking stuff, so please explain any terminology in your explanations.
Back when I was using Apache http server, it already knew how to work with PHP - I had an AJAX jQuery script that creates browser variables from user input (like entering their name and password on a registration page), and then this script sends these variables to a PHP file, which worked fine.
However, now that I'm writing my own HTTP server in C, I'm wondering how to enable this server to work with PHP too? Is there a C standard header that enables that? How would adding PHP support for my C http server work in general, and more specifically?
You can see my server C code on the attachment,
Thank you all so much in advance!