Date: 11/23/98
- Next message: Jouni Ahto: "[PHP-DEV] Re: Bug #934 Updated: cann't compile php & informix"
- Previous message: ulrich.steinkopf <email protected>: "[PHP-DEV] Bug #943: Library problem"
- In reply to: Uwe Steinmann: "[PHP-DEV] Support for PDF Forms ready, but...."
- Next in thread: Uwe Steinmann: "Re: [PHP-DEV] Support for PDF Forms ready, but...."
- Reply: Uwe Steinmann: "Re: [PHP-DEV] Support for PDF Forms ready, but...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> 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 <email protected> For help: php-dev-help <email protected>
- Next message: Jouni Ahto: "[PHP-DEV] Re: Bug #934 Updated: cann't compile php & informix"
- Previous message: ulrich.steinkopf <email protected>: "[PHP-DEV] Bug #943: Library problem"
- In reply to: Uwe Steinmann: "[PHP-DEV] Support for PDF Forms ready, but...."
- Next in thread: Uwe Steinmann: "Re: [PHP-DEV] Support for PDF Forms ready, but...."
- Reply: Uwe Steinmann: "Re: [PHP-DEV] Support for PDF Forms ready, but...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

