Re: Support for PDF Forms ready, but....
| From: | Stig Bakken | Date: | Mon, 23 Nov 1998 11:09:50 +0000 |
| Subject: | Re: Support for PDF Forms ready, but.... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-2551@lists.php.net to get a copy of this message | ||
Uwe Steinmann wrote:
>
> 1. Problem
> PHP3 doesn't recognize the content type, so I made it aware of it.
>
> 2. Problem
> The fdf format cannot be processed by PHP3. Making HTTP_POST_VARS
> from it doesn't work, so I introduced a new variable name
> HTTP_POST_DATA which contains the unprocessed post data.
What MIME type is it using? I guess adding a variable like HTTP_POST_DATA
would be correct if it's not application/x-www-form-urlencoded. The other
alternative would be to make PHP "parse" the application-specific data like it
would parse the normal POST data and make a variable like HTTP_FDF_DATA.
HTTP_POST_DATA can be useful anyway, I have at least one application where it
would have made my life easier. My only worry is memory use for huge file
uploads and such.
> The intergration of the module itself is fairly easy except for some
> small problems due to my inexperience.
>
> One of them is:
> The FDF Tookit requires on Unix systems to call FDFInitialize() and
> FDFFinalize() before and after any other functions from the toolkit
> can be called. Are the functions which are called when the module is
> loaded and unloaded the proper place to do that?
In your module entry structure, there is room for startup/shutdown functions
for the module as well as each request. Example:
php3_module_entry xml_module_entry = {
"XML", /* extension name */
xml_functions, /* extension function list */
php3_minit_xml, /* extension-wide startup function */
php3_mshutdown_xml, /* extension-wide shutdown function */
php3_rinit_xml, /* per-request startup function */
php3_rshutdown_xml, /* per-request shutdown function */
php3_info_xml, /* information function */
STANDARD_MODULE_PROPERTIES
};
You can look at almost any extension for examples.
- Stig
--
Stig S. Bakken Guardian Networks AS -
mailto:ssb@guardian.no Trondheim, Norway
http://www.pvv.org/~ssb/ http://www.guardian.no/
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net