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_SET_FILE(3) 							 1							   FDF_SET_FILE(3)

fdf_set_file - Set PDF document to display FDF data in

SYNOPSIS
bool fdf_set_file (resource $fdf_document, string $url, [string $target_frame]) DESCRIPTION
Selects a different PDF document to display the form results in then the form it originated from. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $url - Should be given as an absolute URL. o $target_frame - Use this parameter to specify the frame in which the document will be displayed. You can also set the default value for this parameter using fdf_set_target_frame(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Passing FDF data to a second form <?php /* set content type for Adobe FDF */ fdf_header(); /* start new fdf */ $fdf = fdf_create(); /* set field "foo" to value "bar" */ fdf_set_value($fdf, "foo", "bar"); /* tell client to display FDF data using "fdf_form.pdf" */ fdf_set_file($fdf, "http://www.example.com/fdf_form.pdf"); /* output fdf */ fdf_save($fdf); /* clean up */ fdf_close($fdf); ?> SEE ALSO
fdf_get_file(3), fdf_set_target_frame(3). PHP Documentation Group FDF_SET_FILE(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