XPost: comp.lang.php
On Fri, 18 Aug 2023 15:10:28 -0000 (UTC), The Doctor wrote:
Is there a way to automatically "turn on" an object
in php and/or javascript.
It will need and depend on an event or timer to trigger a code execution.
In client side JavaScript, it can be from `setTimeout()`, `setInterval()`, `addEventListener()`, or a `Promise`.
In server side JavaScript, it can be from a `Promise`, or from a module-provided (module-specific) timer and/or event.
PHP's case would be similar to server side JavaScript.
Though for server side scripts, it will require external tool or separate thread to be notified of an event without blocking the code execution.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)