Re: PHP vs Apache
| From: | paulf at quillandmouse dot com | Date: | Mon, 11 Jul 2022 20:08:31 +0000 |
| Subject: | Re: PHP vs Apache | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328030@lists.php.net to get a copy of this message | ||
On Mon, 11 Jul 2022 21:26:24 +0200
"Christoph M. Becker" <cmbecker69@gmx.de> wrote:
> From the docs[1]:
>
> | The web server runs only one single-threaded process, so PHP
> | applications will stall if a request is blocked.
>
> I assume that this is the problem. If it is, you can work around:
>
> | You can configure the built-in webserver to fork multiple workers in
> | order to test code that requires multiple concurrent requests to the
> | built-in webserver. Set the PHP_CLI_SERVER_WORKERS environment
> | variable to the number of desired workers before starting the
> server. | This is not supported on Windows.
>
> [1]
> <https://www.php.net/manual/en/features.commandline.webserver.php>
You are a gentleman and a scholar. Your advice solved the problem. I
appreciate the assist. My original choice (file_get_contents()) worked
as advertised.
Paul
--
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster