FDF_OPEN(3) 1 FDF_OPEN(3)
fdf_open - Open a FDF document
SYNOPSIS
resource fdf_open (string $filename)
DESCRIPTION
Opens a file with form data.
You can also use fdf_open_string(3) to process the results of a PDF form POST request.
PARAMETERS
o $filename
- Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create(3) and
fdf_save(3).
RETURN VALUES
Returns a FDF document handle, or FALSE on error.
EXAMPLES
Example #1
Accessing the form data
<?php
// Save the FDF data into a temp file
$fdffp = fopen("test.fdf", "w");
fwrite($fdffp, $HTTP_FDF_DATA, strlen($HTTP_FDF_DATA));
fclose($fdffp);
// Open temp file and evaluate data
$fdf = fdf_open("test.fdf");
/* ... */
fdf_close($fdf);
?>
SEE ALSO
fdf_open_string(3), fdf_close(3), fdf_create(3), fdf_save(3).
PHP Documentation Group FDF_OPEN(3)