note 31164 added to function.fdf-save

From: Date: Fri, 11 Apr 2003 15:18:58 +0000
Subject: note 31164 added to function.fdf-save
Groups: php.notes 
Request: Send a blank email to php-notes+get-46509@lists.php.net to get a copy of this message
The doc says that an empty file name will cause PHP to output the FDF to 'stdout'. I had no success on this (with PHP 4.2.3 and fdftk v5): no string, an empty string and null all returned a message complaining about 'wrong parameter count'. So I used the way (saving to a file and using passthru) given as an example on the page describing fdf_create(), and added a uniqid(rand(),1) to the filename to avoid clashes. This worked well. -- http://www.php.net/manual/en/function.fdf-save.php http://master.php.net/manage/user-notes.php?action=edit+31164 http://master.php.net/manage/user-notes.php?action=delete+31164 http://master.php.net/manage/user-notes.php?action=reject+31164

« previous php.notes (#46509) next »