• Automatic turn on of objects

    From The Doctor@21:1/5 to All on Fri Aug 18 15:10:28 2023
    XPost: comp.lang.php

    Is there a way to automatically "turn on" an object
    in php and/or javascript.
    --
    Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca
    Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Evil has no issues with the appearance of truth. -unknown Beware https://mindspring.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to The Doctor on Fri Aug 18 22:33:16 2023
    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)