kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Running code on server startup

Open henrywood opened this issue 7 months ago • 1 comments

How can I run some php code before the server starts to listen for connections - ie. code which is not executed on each request but only when a worker starts ?

I imagine two function that - if declared would be run at appropriate times:

function __kphp_master_startup() {


}

and

function __kphp_worker_startup() {


}

henrywood avatar Jul 16 '24 09:07 henrywood