note 61324 added to function.fdf-set-file

From: Date: Tue, 31 Jan 2006 17:18:16 +0000
Subject: note 61324 added to function.fdf-set-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-102773@lists.php.net to get a copy of this message
The example code here has got three bugs hidden in it. If you want your first time fdf experience to be more exciting than mine, you'd rather use the following snippet: <?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); ?> That gets you going from the start! Cheers Norb ---- Server IP: 217.160.72.57 Probable Submitter: 217.70.206.2 ---- Manual Page -- http://www.php.net/manual/en/function.fdf-set-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61324 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61324&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61324&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102773) next »