Jump to content

register_shutdown_function


etig

Recommended Posts

I want tu use this php function: register_shutdown_function (Register a function for execution on shutdown)

 

like this :

 

public function myFunction()

{

...

}

 

public function hookActionAuthentication()

{

register_shutdown_function(array($this, "myFunction"));

}

 

But but the behavior is not good: the page is displayed only after the execution of the function.

Edited by etig (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...