3 ms·
From my understanding of how php works it should be "concurrent" by default - each request is handled by web server and then php interpreter is running code in
by ozim 4y ago
From my understanding of how php works it should be "concurrent" by default - each request is handled by web server and then php interpreter is running code in concurrent manner.
There is some shared context that is session for example but how I understand it each request is concurrent anyway.
Is there support for running single script continously?
- kyriakos 4y agoYour first point assumes that you always run a web application. PHP can be used for general purpose scripting as well. Also even on a Web context how would you support websockets with traditional php? You can how achieve that with swoole.
- dabernathy89 4y agoThat's one way to look at it, but there is much better support now for writing code that behaves concurrently within a single web request.