略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fdf_open

2024-11-14

fdf_open

(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)

fdf_openOpen a FDF document

说明

fdf_open(string $filename): resource

Opens a file with form data.

You can also use fdf_open_string() to process the results of a PDF form POST request.

参数

filename

Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create() and fdf_save().

返回值

Returns a FDF document handle, or false on error.

范例

示例 #1 Accessing the form data

<?php
// Save the FDF data into a temp file
$fdffp fopen("test.fdf""w");
fwrite($fdffp$HTTP_FDF_DATAstrlen($HTTP_FDF_DATA));
fclose($fdffp);

// Open temp file and evaluate data
$fdf fdf_open("test.fdf");
/* ... */
fdf_close($fdf);
?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.fdf-open.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3