Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

radius_get_tagged_attr_tag(3) [php man page]

RADIUS_GET_TAGGED_ATTR_TAG(3)						 1					     RADIUS_GET_TAGGED_ATTR_TAG(3)

radius_get_tagged_attr_tag - Extracts the tag from a tagged attribute

SYNOPSIS
integer radius_get_tagged_attr_tag (string $data) DESCRIPTION
If a tagged attribute has been returned from radius_get_attr(3), radius_get_tagged_attr_data(3) will return the tag from the attribute. PARAMETERS
o $data - The tagged attribute to be decoded. RETURN VALUES
Returns the tag from the tagged attribute or FALSE on failure. EXAMPLES
Example #1 radius_get_tagged_attr_tag(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_data(3). PHP Documentation Group RADIUS_GET_TAGGED_ATTR_TAG(3)

Check Out this Related Man Page

RADIUS_PUT_INT(3)							 1							 RADIUS_PUT_INT(3)

radius_put_int - Attaches an integer attribute

SYNOPSIS
bool radius_put_int (resource $radius_handle, int $type, int $value, [int $options], [int $tag]) DESCRIPTION
Attaches an integer attribute to the current RADIUS request. Note A request must be created via radius_create_request(3) before this function can be called. PARAMETERS
o $radius_handle -The RADIUS resource. o $type -The attribute type. o $value - The attribute value. o $options -A bitmask of the attribute options. The available options include RADIUS_OPTION_TAGGED and RADIUS_OPTION_SALT. o $tag -The attribute tag. This parameter is ignored unless the RADIUS_OPTION_TAGGED option is set. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+------------------+-----------------------------------------------+ | Version | | | | | | | Description | | | | +------------------+-----------------------------------------------+ |PECL radius 1.3.0 | | | | | | | The $options and $tag parameters were added. | | | | +------------------+-----------------------------------------------+ EXAMPLES
Example #1 radius_put_int(3) example <?php if (!radius_put_int($res, RAD_FRAMED_PROTOCOL, RAD_PPP)) { echo 'RadiusError:' . radius_strerror($res). " <br />"; exit; } ?> SEE ALSO
radius_put_string(3), radius_put_vendor_int(3), radius_put_vendor_string(3). PHP Documentation Group RADIUS_PUT_INT(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help on finding a number

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)
Discussion started by: sathyaonnuix
1 Replies

2. UNIX for Dummies Questions & Answers

How to use xml_grep to get the value of an attribute?

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)
Discussion started by: pistach
1 Replies

3. Shell Programming and Scripting

Contextual search and replace in a tagged file

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)
Discussion started by: gimley
2 Replies

4. Shell Programming and Scripting

Extracting data between two tag pairs

In a huge log file (43MB, 43k lines) I am trying to extract data between two tag pairs on same line and export it to a file so I can pull it into Excel for a report. One Pair is <Text>data I need</Text> Other pair follows on same line and is <TimeStamp>more data I need</TimeStamp> I would need... (2 Replies)
Discussion started by: NanookArctic
2 Replies