100求pdf问题
Warning: fdf_get_value() expects parameter 1 to be resource, boolean given in D:\phpweb\index.php on line 8
The volume field has the value ''
Warning: fdf_get_value() expects parameter 1 to be resource, boolean given in D:\phpweb\index.php on line 11
The date field has the value ''
Warning: fdf_get_value() expects parameter 1 to be resource, boolean given in D:\phpweb\index.php on line 14
The comment field has the value ''
Warning: fdf_get_value() expects parameter 1 to be resource, boolean given in D:\phpweb\index.php on line 17
Publisher shall not be shown.
Warning: fdf_get_value() expects parameter 1 to be resource, boolean given in D:\phpweb\index.php on line 23
Preparer shall not be shown.
Warning: fdf_close(): supplied argument is not a valid fdf resource in D:\phpweb\index.php on line 28
这不知什么原因,pdlib.dll也已经配置好了。
php.ini
extension=php_pdf.dll;
extension=php_fdf.dll;
---------------------
源程序
<?php
$fdffp = fopen("test.fdf", "w");
fwrite($fdffp, $HTTP_RAW_POST_DATA, strlen($HTTP_RAW_POST_DATA));
fclose($fdffp);
$fdf = fdf_open("test.fdf");
$volume = fdf_get_value($fdf, "volume");
echo "The volume field has the value '<B>$volume</B>'<BR>";
$date = fdf_get_value($fdf, "date"A;
echo "The date field has the value '<B>$date</B>'<BR>";
$comment = fdf_get_value($fdf, "comment");
echo "The comment field has the value '<B>$comment</B>'<BR>";
if(fdf_get_value($fdf, "show_publisher") == "On") {
$publisher = fdf_get_value($fdf, "publisher");
echo "The publisher field has the value '<B>$publisher</B>'<BR>";
} else
echo "Publisher shall not be shown.<BR>";
if(fdf_get_value($fdf, "show_preparer") == "On") {
$preparer = fdf_get_value($fdf, "preparer");
echo "The preparer field has the value '<B>$preparer</B>'<BR>";
} else
echo "Preparer shall not be shown.<BR>";
fdf_close($fdf);
?>