[fpc-pascal] CGI upload app

Burkhard Carstens fpc at bcsoft.de
Wed Jun 6 19:11:38 CEST 2007


Am Mittwoch, 6. Juni 2007 18:07 schrieb Michael Van Canneyt:
> On Wed, 6 Jun 2007, Burkhard Carstens wrote:
> > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt:
> > > On Tue, 5 Jun 2007, Darius Blaszijk wrote:
> > > > Hi I would like to upload a file through a web page. How can I
> > > > do this using FPC? Is there any example available?
> > >
> > > The fpweb or cgiapp components can do this for you.
> >
> > The README.TXT in lazarus/components/fpweb/ states:
> > "fpWeb does not work with fpc 2.0.4.
> > It needs at least 2.3.x."
> >
> > Is 2.3.x still minimum, or could it work with 2.1.4/2.1.5, too?
>
> It could, except the apache support.

:-) Ok, then I'll skip the apache support for now and start playing with 
the cgi stuff. seems to be easy portable later.

> > I've been able to install the weblaz package in lazarus with
> > fpc-2.1.5, but I can't compile an apache module due to missing
> > fpApache unit.
> >
> > fpApache seems to be missing in packages/fcl-web/Makefile.fpc in
> > fixes_2_2 as well as in trunk.
> > Simply adding fpApache to the Makefile.fpc (and doing the fpcmake
> > -Tall) doesn't solve it: "can't find unit httpd used by fpApache".
> > Here I'm loosing it. From the buildlog I can see, that there is no
> > -Fu{fpcsrc}/packages/base/httpd/ when compiling fpApache, even
> > though httpd-1.3 -2.0 and 2.2 are compiled before.
> >
> > any hints?
>
> Hm. As far as I know, it should build - it builds here.
> The problem may be that your fpcmake is outdated. I think peter or me
> did some fixes in fpcmake.

fpcmake -V says 2.0.0 from today. It's from fixes_2_2 svnrev 7559.
I didn't experiment with fpc-trunk, cause currently it seems too "hot". 
However, I checked it out and searched all Makefiles as well as *.fpc 
and there is absolutely no appearance of "fpapache" .. so I don't 
understand why/how it should be compiled.

regards
  Burkhard





More information about the fpc-pascal mailing list