Bug #16209 Updated: FDF does not work when using session_start()

From: Date: Thu, 21 Mar 2002 23:24:11 +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-3107@lists.php.net to get a copy of this message
ID: 16209 Updated by: rasmus@php.net Reported By: tnguyen@scpie.com Status: Bogus Bug Type: Session related Operating System: windows NT sp6 PHP Version: 4.0.6 New Comment: I bet you are using IE. Use a browser that actually works and you will see that your PDF comes up just fine. Previous Comments: ------------------------------------------------------------------------ [2002-03-21 14:43:44] tnguyen@scpie.com This is not a support issue. I know how to get the fdf to work properly. It doesn't seem correct that I just add session_start() to my script and it stops working. ------------------------------------------------------------------------ [2002-03-21 14:32:17] hholzgra@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#3107) next »