RADIUS_GET_TAGGED_ATTR_DATA(3) 1 RADIUS_GET_TAGGED_ATTR_DATA(3)radius_get_tagged_attr_data - Extracts the data from a tagged attributeSYNOPSIS
string radius_get_tagged_attr_data (string $data)
DESCRIPTION
If a tagged attribute has been returned from radius_get_attr(3), radius_get_tagged_attr_data(3) will return the data from the attribute.
PARAMETERS
o $data
- The tagged attribute to be decoded.
RETURN VALUES
Returns the data from the tagged attribute or FALSE on failure.
EXAMPLES
Example #1
radius_get_tagged_attr_data(3) example
<?php
while ($resa = radius_get_attr($res)) {
if (!is_array($resa)) {
printf ("Error getting attribute: %s
", radius_strerror($res));
exit;
}
$attr = $resa['attr'];
$data = $resa['data'];
$tag = radius_get_tagged_attr_tag($data);
$value = radius_get_tagged_attr_data($data);
printf("Got tagged attribute with tag %d and value %s
", $tag, $value);
}
?>
SEE ALSO radius_get_attr(3), radius_get_tagged_attr_tag(3).
PHP Documentation Group RADIUS_GET_TAGGED_ATTR_DATA(3)
Check Out this Related Man Page
RADIUS_GET_VENDOR_ATTR(3) 1 RADIUS_GET_VENDOR_ATTR(3)radius_get_vendor_attr - Extracts a vendor specific attributeSYNOPSIS
array radius_get_vendor_attr (string $data)
DESCRIPTION
If radius_get_attr(3) returns RADIUS_VENDOR_SPECIFIC, radius_get_vendor_attr(3) may be called to determine the vendor.
RETURN VALUES
Returns an associative array containing the attribute-type, vendor and the data, or FALSE on error.
EXAMPLES
Example #1
radius_get_vendor_attr(3) example
<?php
while ($resa = radius_get_attr($res)) {
if (!is_array($resa)) {
printf ("Error getting attribute: %s
", radius_strerror($res));
exit;
}
$attr = $resa['attr'];
$data = $resa['data'];
printf("Got Attr:%d %d Bytes %s
", $attr, strlen($data), bin2hex($data));
if ($attr == RADIUS_VENDOR_SPECIFIC) {
$resv = radius_get_vendor_attr($data);
if (is_array($resv)) {
$vendor = $resv['vendor'];
$attrv = $resv['attr'];
$datav = $resv['data'];
printf("Got Vendor Attr:%d %d Bytes %s
", $attrv, strlen($datav), bin2hex($datav));
}
}
}
?>
SEE ALSO radius_get_attr(3), radius_put_vendor_attr(3).
PHP Documentation Group RADIUS_GET_VENDOR_ATTR(3)
Hello,
I am testing some data to get line number at cursor position 9 and found some problem, the code is below.Assume we got 3 attribute. At second attribute, there are some data(eg.A41/A6) missing like at the fourth and six line
11006 A41 1888
11006 ... (7 Replies)
Hello,
Here is my question. I have a file which contains the html values. I have to find the decimal number from it. It is tagged around >68.74<. Please help me on it..
alt='' ><\/td>\n\t\t<td align=\"right\" class='data_table_text data_table_conv_averages_text' \
style='padding-right:... (1 Reply)
I'm using xml_grep command to get the value of different tags in a xml-file.
No i also need the value of an attribute in a tag.
Can I use xml_grep for this? Does anybody know how?
ex. :
<Name xmlns:xsi="http://www.w3.org/2001/XMLinst" xsi:spaceSchema="Name_5879.xsd">
...
</Name>
I... (1 Reply)
Dear all,
I have a large tagged training file in Hindi for Parts of Speech. When I tagged the file, I inadvertently classified Pronouns and Adjectives as one single category. This has resulted in ambiguity.
An example from English will make this clear.
This is his.
This is his book.
The... (2 Replies)