Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdf_set_value(3) [php man page]

FDF_SET_VALUE(3)							 1							  FDF_SET_VALUE(3)

fdf_set_value - Set the value of a field

SYNOPSIS
bool fdf_set_value (resource $fdf_document, string $fieldname, mixed $value, [int $isName]) DESCRIPTION
Sets the $value for the given field. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $fieldname - Name of the FDF field, as a string. o $value - This parameter will be stored as a string unless it is an array. In this case all array elements will be stored as a value array. o $isName - Note In older versions of the FDF toolkit last parameter determined if the field value was to be converted to a PDF Name (= 1) or set to a PDF String (= 0). The value is no longer used in the current toolkit version 5.0. For compatibility reasons it is still supported as an optional parameter beginning with PHP 4.3, but ignored internally. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.0 | | | | | | | Support for arrays in the $value parameter was | | | added. | | | | +--------+---------------------------------------------------+ SEE ALSO
fdf_get_value(3), fdf_remove_item(3). PHP Documentation Group FDF_SET_VALUE(3)

Check Out this Related Man Page

FDF_GET_ATTACHMENT(3)							 1						     FDF_GET_ATTACHMENT(3)

fdf_get_attachment - Extracts uploaded file embedded in the FDF

SYNOPSIS
array fdf_get_attachment (resource $fdf_document, string $fieldname, string $savepath) DESCRIPTION
Extracts a file uploaded by means of the "file selection" field $fieldname and stores it under $savepath. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $fieldname - o $savepath - May be the name of a plain file or an existing directory in which the file is to be created under its original name. Any exist- ing file under the same name will be overwritten. Note There seems to be no other way to find out the original filename but to store the file using a directory as $savepath and check for the basename it was stored under. RETURN VALUES
The returned array contains the following fields: o$path - path were the file got stored o$size - size of the stored file in bytes o$type - mimetype if given in the FDF EXAMPLES
Example #1 Storing an uploaded file <?php $fdf = fdf_open_string($HTTP_FDF_DATA); $data = fdf_get_attachment($fdf, "filename", "/tmpdir"); echo "The uploaded file is stored in $data[path]"; ?> PHP Documentation Group FDF_GET_ATTACHMENT(3)
Man Page