LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2004, 02:12 PM   #1
elgolferisto
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9.0
Posts: 10

Rep: Reputation: 0
$HTTP_FDF_DATA missing in PHP 4.3.7


I'm trying to set up a simple PDF form that passes FDF data to the server to create an FDF file. I have been unable to do this, so I thought I would try just passing the data and printing it out to make sure the data was there. When I tried this, nothing was returned. Here is the simple code I was using:

<?php
print_r($HTTP_FDF_DATA);
?>

I have tried this on another machine and everything is working fine, i.e. the FDF data is printed. Is this an issue with the FDF toolkit, or a PHP setting, or something else entirely? The machine with the problem is running mandrake 8.2 I think. The other machine has redhat 9.

Thanks in advance
 
Old 08-30-2004, 11:48 AM   #2
sockerguy07
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Same trouble

I'm having the same problem. On mine, the actual fdftk functions are working fine, but the $HTTP_FDF_DATA aren't being set for some reason. Registered globals are On. Now, before I loaded fdftk, i upgraded php from the original mandrake's php and installed it to another directory...not the default directory. I made sure that I uninstalled the initial php before upgrading php. Also, similarly to elgolferisto, i loaded everything on another machine with the fdftk, and it worked fine. If anyone knows what the deal is or why HTTP_FDF_DATA isn't being set, I would like to hear your input.
 
Old 02-15-2007, 09:15 AM   #3
ou_soccerguy
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
$http_fdf_data

I have found a couple ways around this.

1. Use $HTTP_RAW_POST_DATA instead. Your php.ini must have the entry "always_populate_raw_post_data=on". Then you will be able to use $HTTP_RAW_POST_DATA in a similar manner as $HTTP_FDF_DATA.

2. Use php's php://input method. This is probably the preferred way of doing it since its faster and doesn't require the $HTTP_RAW_POST_DATA to get filled. A couple ways to use this is:
a. $fp = fopen("php://input",...) - to be used like a file
b. $string = file_get_contents("php://input") - puts the entire post stream as one string.
 
Old 02-15-2007, 09:22 AM   #4
ou_soccerguy
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
$http_fdf_data

Not unless you really enjoy compiling FDFToolkit with PHP, you could change the type of Adobe submitted output from fdf to xfdf. The only small advantage of using fdf, is that they are a little smaller in size, but not much. PHP has an xml parser which can parse the stream from php://input. If you go about using the xfdf method, then you will not have to worry about compiling FDFToolkit with PHP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & FDF: $HTTP_FDF_DATA is empty elgolferisto Linux - Software 1 02-15-2007 09:11 AM
php $_SERVER value missing dinges Programming 6 12-23-2004 02:09 PM
Am I missing something? PHP, MySQL, Apache agallant Programming 13 06-08-2004 10:57 AM
Php manual missing benjaminrtz Linux - Newbie 2 04-29-2003 10:56 AM
Apache / PHP - OK, what setting am I missing? bkeating Linux - Software 1 12-10-2002 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration