set_hook_on_response
set_hook_on_response($php_script_path); - set a hook (script that handles the event) that will process server responses
The input function accepts parameters:
$php_script_path – path to the hook (the script that handles the event of the beginning of the url response from the server)
After testing, the function returns the result of its work to the script :
true – successfully set the hook
false – failed to set the hook