• PHP Video Tutorials

PHP - FDF Open Module



The fdf_open() function can open a FDF document.

Syntax

resource fdf_open( string $filename )

The fdf_open() function can open a file with form data. This file must contain the data as returned from a PDF form or created using the fdf_create() and fdf_save() functions.

The fdf_open() function can return a FDF document handle, or false on error.

Example

<?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);
?>
php_function_reference.htm
Advertisements