Menu Samaritan's Purse

STREAM_NOTIFICATION_CALLBACK

A callback function for the notification context parameter

SYNTAX

stream_notification_callback ( int $notification_code , int $severity , string $message , int $message_code , int $bytes_transferred , int $bytes_max ) : void

PARAMETERS

notification_code

One of the STREAM_NOTIFY_* notification constants.

severity

One of the STREAM_NOTIFY_SEVERITY_* notification constants.

message

Passed if a descriptive message is available for the event.

message_code

Passed if a descriptive message code is available for the event.

The meaning of this value is dependent on the specific wrapper in use.

bytes_transferred

If applicable, the bytes_transferred will be populated.

bytes_max

If applicable, the bytes_max will be populated.

RETURN

No value is returned.

EXAMPLES

connect
file size: 225
mime type: text/html; charset=iso-8859-1
redirected: https://osbo.com/

connect
mime type: text/html; charset=utf-8
progress: 0
progress: 0
progress: 1710

PHP