3 ms·
1) If I understood your question correctly, you might want to use a router script for such cases: https://www.php.net/manual/en/features.commandline.webserver.p
by torunar 2y ago
1) If I understood your question correctly, you might want to use a router script for such cases: https://www.php.net/manual/en/features.commandline.webserver.php https://www.php.net/manual/en/features.commandline.webserver... (see Example #3).
2) For the love of god, don’t use built-in server for production cases. It’s mentioned multiple times in the documentation for a reason.
- stop50 2y agoAnd before you ask what else: php-fpm is currently the most used way for this.