RADIUS_CREATE_REQUEST(3) 1 RADIUS_CREATE_REQUEST(3)
radius_create_request - Create accounting or authentication request
SYNOPSIS
bool radius_create_request (resource $radius_handle, int $type)
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(3).
Note
Attention: You must call this function, before you can put any attribute!
PARAMETERS
o $radius_handle
-
o $type
- Type is RADIUS_ACCESS_REQUEST or RADIUS_ACCOUNTING_REQUEST.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
radius_create_request(3) example
<?php
if (!radius_create_request($res, RADIUS_ACCESS_REQUEST)) {
echo 'RadiusError:' . radius_strerror($res). "
<br />";
exit;
}
?>
SEE ALSO
radius_send_request(3).
PHP Documentation Group RADIUS_CREATE_REQUEST(3)