Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdf_get_attachment(3) [php 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)

Check Out this Related Man Page

FDF_GET_VALUE(3)							 1							  FDF_GET_VALUE(3)

fdf_get_value - Get the value of a field

SYNOPSIS
mixed fdf_get_value (resource $fdf_document, string $fieldname, [int $which = -1]) DESCRIPTION
Gets the value for the requested 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 $which - Elements of an array field can be retrieved by passing this optional parameter, starting at zero. For non-array fields, this parameter will be ignored. RETURN VALUES
Returns the field value. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.0 | | | | | | | Support for arrays and the $which parameter were | | | added. | | | | +--------+---------------------------------------------------+ SEE ALSO
fdf_set_value(3). PHP Documentation Group FDF_GET_VALUE(3)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Storing data of files

Hi, How to store datas of the file into a string? Thanks in advance.. (1 Reply)
Discussion started by: Fr0z3n999
1 Replies

2. UNIX for Dummies Questions & Answers

Storing the output into a variable

Hi unix gurus, I am trying to store the result of a command into a variable. But it is not getting stored. x='hello' y=echo $x | wc -c but it is giving the output as 0(zero) Pls help me its very urgent (7 Replies)
Discussion started by: ravi raj kumar
7 Replies

3. Shell Programming and Scripting

Get Files from ftp which are uploaded recent week

Hi All, Here is a brief scenario for my requirement .. There is a directory in FTP Server, where would files be uploaded on weekly basic. I need to get those files which are uploaded during this week and not the files which are uploaded the previous week and download them to locale... (1 Reply)
Discussion started by: narramadan
1 Replies

4. UNIX for Dummies Questions & Answers

Getting error

I'm trying to have a cgi script use a string from the window location in a template file. When I run the script I get Internal Server Error and when I go to my control panel error log it says Premature end of script headers. I was wondering if some experienced programmer would take a look at it and... (37 Replies)
Discussion started by: marringi
37 Replies

5. Linux

how I can find size of incoming or outgoing data

Hi, I'm using SLES10, I want to know the user size of the data that is downloaded or uploaded the data who connects to the server. In other words, a user utilization of my server in terms of size. Thanks, Kris (1 Reply)
Discussion started by: krisdasword
1 Replies

6. Shell Programming and Scripting

using find command

Hello All, How can I find the directories uploaded on a particular date using the find command. Example, look for the directories that were uploaded on the date 5/10/2009 Thanks, Chinmay (4 Replies)
Discussion started by: chinmay
4 Replies

7. Shell Programming and Scripting

sort command

i/p file o/p file (5 Replies)
Discussion started by: dvah
5 Replies

8. Cybersecurity

Web hosting security question

Hi, Recently my has been hacked. A .pl script has been uploaded in the root of the directory, which uploaded lot of unwanted files and changed their file permission to 777. I have no clue how did they upload that .pl file in my hosting. Website is in shared hosting. Could they access my web... (3 Replies)
Discussion started by: agriz
3 Replies

9. Windows & DOS: Issues & Discussions

Cygwin_openssh time stamps

I've installed cygwin_openssh on Windows 2012 R2 and it's working great. My issue is when a file is uploaded say from a different timezone, when it is uploaded, it doesnt pick up the sftp servers time.. Is there a way to fix that? i.e. When someone in PST uploads a file to this server in EST,... (0 Replies)
Discussion started by: MikeAdkins
0 Replies