pagelet_server_task_start

Processes a pagelet server request

function pagelet_server_task_start(
  string $url,
  array $headers = null,
  string $post_data = null,
  array $files = null,
  int $timeout_seconds = 0,
): resource;

Parameters

  • string $url - The URL we're running this pagelet with.
  • array $headers = null - HTTP headers to send to the pagelet.
  • string $post_data = null - POST data to send.
  • array $files = null - Array for the pagelet.
  • int $timeout_seconds = 0

Return Values

  • resource - - An object that can be used with pagelet_server_task_status() or pagelet_server_task_result().