1

Is there anyway to register a PHP callback function to be executed when the HTTP server is shutdown?

1
  • Try asking on serverfault.com. Commented Jul 12, 2011 at 16:42

3 Answers 3

5

No, because PHP would already have been shutdown since it is the server that loads it as a module.

Sign up to request clarification or add additional context in comments.

Comments

1

No. It is not possible

Comments

0

There might exists some hooks that can be called on BeforeShutdown() but they depend on the HTTP server flavour and the callbacks may or not be appliable to PHP. This could be a question for serverFault.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.