etig Posted February 19, 2014 Share Posted February 19, 2014 (edited) 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 February 19, 2014 by etig (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted February 19, 2014 Share Posted February 19, 2014 Maybe tell us what you want to achieve? Link to comment Share on other sites More sharing options...
etig Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) I want to make a REST call (with cURL), but it takes time, I dont want to slow down the loading of the page. Edited February 24, 2014 by etig (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now