08-17-2020, 08:45 PM
I know how to create a simple web server using TIdHTTPServer and serve .htm files. But what if I wanted to be able to handle .php files like IIS or Apache would? I assume I would need to download the thread-safe Windows binaries for PHP. Then what? A user requests a link with a .php extension. How do I send the .php file contents (with URL parameters) to the PHP processor, wait for it to spit back any output, and send that output back to the user?