Header Sending Bug?

2000-05-14 Thread David E. Weekly
Hello all. I've looked in various mod_perl FAQs but haven't seen the answer to what seems to be a (minor) bug in Apache::Registry. It seems that when PerlSendHeader is On if I haven't yet done a print "Content-type: text/html\n\n" but I want to print a comment into the weblog by doing a print

Re: [TOOT]: Dyslectics untie!

2000-05-14 Thread Alex Farber
Tobias Hoellrich wrote: For one of our web services we ask people for a valid email-address to access the service. Once the address passes an initial RFC822 check we send a message to the user which contains an activation link. Once the user receives the message and clicks on the link we

Re: [OT] Great book!

2000-05-14 Thread Randal L. Schwartz
"Alex" == Alex Farber [EMAIL PROTECTED] writes: Alex Clayton Cottingham aka DrFrog wrote: another great one ive yet to purchase is object oriented perl there is some sample chapters online somewhere Alex http://www.effectiveperl.com/toc.html That would be sample chapters for EPP, not

an idea for a PerlFixupHandler

2000-05-14 Thread Randal L. Schwartz
It always bugged me that for a PerlHandler, I needed to set *two* things... both the SetHandler and the PerlHandler. I have this idea that a good generic PerlFixupHandler would fix that. Instead of setting the mime-type to "text/html", we'd set the mime-type to "text/html;Apache::Registry" for

Re: Virtual servers mixing up required scripts

2000-05-14 Thread G.W. Haywood
Hi all, On Sun, 14 May 2000, Uri Bernstein wrote: Geoffrey Young wrote: http://perl.apache.org/guide/control.html#Starting_a_Personal_Server_for_E Ged Haywood wrote: You shold use one real server per developer. Make them listen on different ports (1024). You won't lose much on memory.

Re: Header Sending Bug?

2000-05-14 Thread Jeff Beard
I don't see a problem with this but maybe I'm missing your point. :) If PerlSendHeader is set to "On", you don't have to send a header in your program. If you want to retain control of when the header is sent, set PerlSendHeader to "Off" and do it yourself. --Jeff At 12:53 AM 5/14/00,

Re: Apache::DBI-connect_on_init in BEGIN?

2000-05-14 Thread Jeff Beard
I guess I don't know enough about your specific case. :) On the systems I work on, I use "PerlRequire startup.pl" prior to loading anything else so that I can use the connection in subsequent code. Seems to work out fine for what I'm doing. --Jeff At 05:30 PM 5/14/00, svante sörmark wrote:

Re: Apache::DBI-connect_on_init in BEGIN?

2000-05-14 Thread svante sörmark
yeah, i know about startup.pl, and i have been using it until now, but the goal here was to avoid having to put the same configuration in two different files :). Jeff Beard wrote: Checkout the sample startup.pl that comes with Apache::DBI. --Jeff At 05:08 PM 5/14/00, svante sörmark

Re: an idea for a PerlFixupHandler

2000-05-14 Thread Matt Sergeant
On 14 May 2000, (Randal L. Schwartz) wrote: It always bugged me that for a PerlHandler, I needed to set *two* things... both the SetHandler and the PerlHandler. I have this idea that a good generic PerlFixupHandler would fix that. Instead of setting the mime-type to "text/html", we'd set

Re: mod_perl and ssi

2000-05-14 Thread Ken Williams
[EMAIL PROTECTED] (Joshua Chamas) wrote: Kenneth Lee wrote: which handler comes first? PerlHandler or mod_include? i want to have my PerlHandler generate a SSI skeleton and then pass it the mod_include's parser to insert some existing static HTMLs. push_handler() and set_handler() doesn't

Apache::DBI-connect_on_init in BEGIN?

2000-05-14 Thread svante sörmark
hi all, what i'd like to do is "pre-initialize" my DBI connections from whithin my PerlHandler's BEGIN block. something like this: BEGIN { if ( Apache-dir_config('CONNECT_ON_INIT') { Apache::DBI-connect_on_init(Apache-dir_config('DBI_INFO'); } } but of course

Re: [OT] Great book!

2000-05-14 Thread Alex Farber
Clayton Cottingham aka DrFrog wrote: another great one ive yet to purchase is object oriented perl there is some sample chapters online somewhere http://www.effectiveperl.com/toc.html "Effective Perl Programming" by Hall w/ Schwartz. /Alex

Re: Virtual servers mixing up required scripts

2000-05-14 Thread Uri Bernstein
Geoffrey Young wrote: -Original Message- From: Ged Haywood [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 11, 2000 12:26 PM To: [EMAIL PROTECTED] Subject: Re: Virtual servers mixing up "require"d scripts Hi there, On Thu, 11 May 2000, Uri Bernstein wrote: Hi,

Re: mod_perl and ssi

2000-05-14 Thread Vivek Khera
"JC" == Joshua Chamas [EMAIL PROTECTED] writes: JC Kenneth Lee wrote: i want to have my PerlHandler generate a SSI skeleton and then pass it the mod_include's parser to insert some existing static HTMLs. push_handler() and set_handler() doesn't work for me. JC To my knowledge, there are

Re: Problem with @INC

2000-05-14 Thread Gunther Birznieks
Yeah but that doesn't help him entirely with a solution to his problem -- which is that he wants to load something at runtime later on -- not at compile time. And in fact, it is a must to be able to do this in some cases. eg he correctly points out that LWP uses the factory design pattern to