register_streaming_write_callback ( $callback )

Register a callback function to execute whenever a data stream is written to using CFRequest::streaming_write_callback().

The user-defined callback function should accept two arguments:

  • $curl_handle - resource - Required - The cURL handle resource that represents the in-progress transfer.
  • $length - integer - Required - The length in kilobytes of the data chunk that was transferred.

Access

public

Parameters

Parameter

Type

Required

Description

$callback

string
array
function

Required

The callback function is called by call_user_func(), so you can pass the following values:

  • The name of a global function to execute, passed as a string.
  • A method to execute, passed as array('ClassName', 'MethodName').
  • An anonymous function (PHP 5.3+).

Returns

Type

Description

$this

A reference to the current instance.

Source

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback