in reply to Re: Re: Re: Creating downloadable files on the fly
in thread Creating downloadable files on the fly

OK, I do have mod_perl installed. I have now installed libapreq and the demo works. Thanks. I had to change the makefile and hard code the paths to the includes and libs MyConfig wasn't picking them up!!. So now I can generate Excel files on the fly from a handler, but I don't want to write a new handler for every file. How do I pass values onto the handler so that it can acces the correct database and dataset? I've never played with handlers before so this is completely new territory for me.
  • Comment on Re: Creating downloadable files on the fly

Replies are listed 'Best First'.
Re: Re: Creating downloadable files on the fly
by jj808 (Hermit) on Oct 10, 2002 at 16:54 UTC
    Like this:
    use Apache::Request; sub handler { my $r = Apache::Request->new(shift); my $test = $r->param('test'); # your code here... }
    The $r->param method handles both GET and POST requests, similar to using CGI.pm.

    I would recommend you get a copy of The Eagle Book - this will tell you everything you need to know.

    JJ

      OK, I have now picked up a copy of the Eagle book and the mod_perl developers cookbook. Thanks for all your help, it's really appreciated. S'monkey