Bug #16209 Updated: FDF does not work when using session_start()
| From: | hholzgra@php.net | Date: | Thu, 21 Mar 2002 19:32:18 +0000 |
| Subject: | Bug #16209 Updated: FDF does not work when using session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3079@lists.php.net to get a copy of this message | ||
ID: 16209
Updated by: hholzgra@php.net
Reported By: tnguyen@scpie.com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: windows NT sp6
PHP Version: 4.0.6
New Comment:
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
Previous Comments:
------------------------------------------------------------------------
[2002-03-21 14:27:14] tnguyen@scpie.com
It seems that the following script will not work properly with the
session_start();
<?php
session_start();
//path to pdf file
$url="http://www.some_url.com/form.pdf";
$values=$HTTP_POST_VARS;
$fdfdata = "%FDF-1.2\n%\n";
$fdfdata .= "1 0 obj \n<< /FDF ";
$fdfdata .= "<< /Fields [\n";
//loop that adds the field names and values
foreach($values as $key=>$val)
{
$fdfdata.="<< /V ($val)/T ($key) >> ";
}
$fdfdata .= "]\n";
$fdfdata .= "/F ($url) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0
R\n>>\n";
$fdfdata .= "%%EOF";
/*** Now we display the FDF data which causes Acrobat to start ***/
header ("Content-Type: application/vnd.fdf");
print $fdfdata;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16209&edit=1