Location Directives and Perl Handlers...
Hi folks, Another newbie question: Does it make sense to create a Location directive with a Perl Handler for each and every web transaction? I suppose more information about what the pages are doing would be helpful but I'm really just looking for some rules of thumb. I've created a site which uses a Location directive and a Handler for almost all transactions. Of course, all the pages are requesting information from a database and the pages are being generated from a simple templating scheme. I just wanted to get a feel whether or not there's other approaches to this architecture. Thanks for the replies in advance... K
Forking another process in Apache?
A newbie question here... I have a requirement to spin off a SQL loader process after a web page (a form which is qualified and accepted) has been submitted. Does it make sense, or more importantly, is it dangerous to apply a fork at the end of a module such as this: sub handler { # do some qualification stuff here and accept the form submission... if ($pid = fork) { # parent # ...whatever i need to accomplish to deliver return html code return OK } elsif { # child exec($sql_loader); } else { # ...whatever i ned to do to recover errors return DECLINED } } Are there any dangers in doing something like this? Or is there a more efficient way to accomplish the same thing? Thanks for the advice, Kirk
RE: [ANNOUNCE] Apache::UploadMeter-0.15
So if I have two different html forms that perform uploads, can I define two different forms in the httpd.conf file? -Original Message-From: Issac Goldstand [mailto:[EMAIL PROTECTED]]Sent: Monday, January 07, 2002 10:08 PMTo: [EMAIL PROTECTED]Subject: [ANNOUNCE] Apache::UploadMeter-0.15 Finally, after a month of being bogged down on [EMAIL PROTECTED], the barriers have being cleared and Apache::UploadMeter's hit CPAN! The URL http://telia.dl.sourceforge.net/apache-umeter/Apache-UploadMeter-0.15.tar.gzhas entered CPAN as file: $CPAN/authors/id/I/IS/ISAAC/Apache-UploadMeter-0.15.tar.gz size: 5781 bytes md5: 635457cab775fa4c169d74180b9219f6No action is required on your partRequest entered by: ISAAC (Isaac Goldstand)Request entered on: Tue, 08 Jan 2002 06:04:40 GMTRequest completed: Tue, 08 Jan 2002 06:05:08 GMT Issac
RE: file upload process
I've tried the HOOK routine but it doesn't appear to work too well. I'm most likely doing something wrong but would be interested in seeing your UploadMeter application. Care to share? Kirk -Original Message- From: Issac Goldstand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 8:07 AM To: Geoffrey Young; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: file upload process Also, I'm currently putting the finishing the final touches on a module called Apache::UploadMeter which automates this process pretty well... Help is more than welcome - at this point, the internals are really done. It's just an issue of making a configuration interface, a bit of documentation, and sending it to CPAN... Issac - Original Message - From: Geoffrey Young [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 17:54 Subject: RE: file upload process -Original Message- From: El Capitan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 10:46 AM To: [EMAIL PROTECTED] Subject: file upload process [snip] Is there some way to capture the download stream (when its actually downloading) and begin a display process back to the customer? I haven't used it, but recent versions of libapreq support the UPLOAD_HOOK parameter to Apache::Request-new(). see the Apache::Request manpage --Geoff