Re: [fpc-pascal] freepascal and apache

2009-10-08 Thread Alexey Voychehovich
hi again build line on ubuntu fpc -dFPCAPACHE_2_2 mod_hello.pp and got this error on load module in apache -- apache2: Syntax error on line 284 of /etc/apache2/apache2.conf: API module structure 'test_module' in file /etc/apache2/modules/mod_hello.dll is garbled - expected signature 41503232 but sa

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Alexey Voytsehovich
Hello Michael, Wednesday, October 7, 2009, 1:58:50 PM, you wrote: >> >> >>> Correct, because the function is called apr_table_get (note the r), >>> and is located in unit apr, not in httpd. >> >> >> and please help also >> function ap_hard_timeout. not found in httpd22 directory. then i find >>

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Michael Van Canneyt
On Wed, 7 Oct 2009, Alexey Voytsehovich wrote: Hello Michael, Wednesday, October 7, 2009, 10:31:26 AM, you wrote: Correct, because the function is called apr_table_get (note the r), and is located in unit apr, not in httpd. and please help also function ap_hard_timeout. not found in ht

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Alexey Voytsehovich
Hello Michael, Wednesday, October 7, 2009, 10:31:26 AM, you wrote: > Correct, because the function is called apr_table_get (note the r), > and is located in unit apr, not in httpd. and please help also function ap_hard_timeout. not found in httpd22 directory. then i find this function or rep

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Alexey Voytsehovich
Hello Michael, Wednesday, October 7, 2009, 10:31:26 AM, you wrote: > Correct, because the function is called apr_table_get (note the r), > and is located in unit apr, not in httpd. nice. it`s working. thanks -- Best regards, Alexey Voytsehovichmailto:iron...@gma

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Michael Van Canneyt
On Wed, 7 Oct 2009, Alexey Voytsehovich wrote: Hello Michael, Wednesday, October 7, 2009, 10:13:08 AM, you wrote: On the command-line, define one of FPCAPACHE_2_0 or FPCAPACHE_2_2 (as in -dFPCAPACHE_2_0) (or delete the units in units/httpd-1.3) build string fpc -dFPCAPACHE_2_2 mod_hello

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Alexey Voytsehovich
Hello Michael, Wednesday, October 7, 2009, 10:13:08 AM, you wrote: > On the command-line, define one of FPCAPACHE_2_0 or FPCAPACHE_2_2 (as in > -dFPCAPACHE_2_0) > (or delete the units in units/httpd-1.3) build string fpc -dFPCAPACHE_2_2 mod_hello.pp all unit code -- library mod_hello; {$ifdef

Re: [fpc-pascal] freepascal and apache

2009-10-07 Thread Michael Van Canneyt
On Wed, 7 Oct 2009, Alexey Voytsehovich wrote: hi. this code -- uses SysUtils, httpd; function read_Post(r: Prequest_rec; data: string): boolean; var types: string; begin Result := True; if (r^.method_number <> M_POST) then Exit; ap_set_content_type(r, 'text/html'); types := ap_tabl

[fpc-pascal] freepascal and apache

2009-10-07 Thread Alexey Voytsehovich
hi. this code -- uses SysUtils, httpd; function read_Post(r: Prequest_rec; data: string): boolean; var types: string; begin Result := True; if (r^.method_number <> M_POST) then Exit; ap_set_content_type(r, 'text/html'); types := ap_table_get(r^.headers_in, 'Content-Type'); end; --