Gen. partnerAlgotech

PHP function header_register_callback()

|
September 11, 2019

Availability in PHP 4.0

Registers a function that will be called when PHP starts sending output. The callback is executed just after PHP prepares all headers to be sent,
and before any other output is sent, creating a window to manipulate the outgoing headers before being sent.

Parameters

Parameter Data type Default value Note
$callback callable

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official header-register-callback documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.