Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.