Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running code on server startup #1043

Open
henrywood opened this issue Jul 16, 2024 · 1 comment
Open

Running code on server startup #1043

henrywood opened this issue Jul 16, 2024 · 1 comment
Labels
question This issue that requires clarification or help

Comments

@henrywood
Copy link

henrywood commented Jul 16, 2024

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


}
@Hidanio Hidanio added the question This issue that requires clarification or help label Jul 16, 2024
@astrophysik
Copy link
Contributor

Hello, so far there are no such features or similar functions available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue that requires clarification or help
Projects
None yet
Development

No branches or pull requests

3 participants