Home > PHP > Function > Radius > radius_create_request()

radius_create_request()

radius_create_request - Create accounting or authentication request

Syntax

bool radius_create_request (resource $radius_handle, int $type)

Arguments

  • radius_handle
  • type - Type is RADIUS_ACCESS_REQUEST or RADIUS_ACCOUNTING_REQUEST.

Description

A Radius request consists of a code specifying the kind of request, and zero or more attributes which provide additional information. To begin constructing a new request, call radius_create_request().

Version

PHP PECL radius >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.