Skip to content

Running code on server startup #1043

@henrywood

Description

@henrywood

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() {


}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis issue that requires clarification or help

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions