radius_put_string
radius_put_string
Attaches a string attribute
bool **radius_put_string** resource $radius_handle int $type string $value int $options int $tag
Attaches a string attribute to the current RADIUS request. In general,
is a more useful function for
attaching string attributes, as it is binary safe.
radius_put_attr
valueThe attribute value. This value is expected by the underlying library
to be null terminated, therefore this parameter is not binary safe.
return.success
Voorbeeld: example
<?php
if (!radius_put_string($res, RADIUS_USER_NAME, 'billy')) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>
radius_put_int``radius_put_vendor_int``radius_put_vendor_string