Localized ht_time?

2000-10-19 Thread David E. Wheeler
language? TIA! David -- David E. Wheeler Software Engineer Salon Internet ICQ: 15726394 [EMAIL PROTECTED] AIM: dwTheory

Re: Localized ht_time?

2000-10-19 Thread David E. Wheeler
"David E. Wheeler" wrote: Hi All, Does anyone know if there is a way to get Apache::Util::ht_time() to correctly format times based on the time zone in $ENV{TZ}... It does. Duh! Please ignore my spam. David

Re: ht_time vs. strftime

2000-10-17 Thread David E. Wheeler
zone and doesn't add in DST stuff. Is that doable in Time::Object, or are you using Perl's gmtime() there? http://src.openresources.com/debian/src/web/HTML/S/ncsa_1.4.2.orig%20ncsa-1.4.2.orig%20src%20util.c.html#117 David -- David E. Wheeler Phone: (415) 645

Re: ht_time vs. strftime

2000-10-17 Thread David E. Wheeler
Matt Sergeant wrote: Its doable - I could add in the code for ht_time almost verbatim, although I *am* using Perl's gmtime. Could you not use the same gmtime that ht_time uses? D -- David E. Wheeler Software Engineer Salon Internet ICQ: 15726394

ht_time vs. strftime

2000-10-16 Thread David E. Wheeler
'; my $t = ht_time; print "$t\n"; # prints "Mon, 16 Oct 2000 20:33:42 GMT" use POSIX 'strftime'; my $a = strftime("%a, %d %b %Y %T %Z", gmtime); print "$a\n"; # prints Mon, 16 Oct 2000 21:33:42 PDT Thanks! David -- David E.

Re: ht_time vs. strftime

2000-10-16 Thread David E. Wheeler
{ POSIX::strftime($_[1] || "%a, %d %b %Y %T %Z", $_[0] ? localtime($_[0]) : gmtime); }; } } Thanks, David -- David E. Wheeler Phone: (415) 645-9365 Software Engineer Fax: (415) 645-9204 Salo

Re: ht_time vs. strftime

2000-10-16 Thread David E. Wheeler
Matt Sergeant wrote: On Mon, 16 Oct 2000, David E. Wheeler wrote: I'm confused. Why are you using gmtime then? Because if no time is supplied, I want it to default to GMT. I'm setting up an app in which the database will store date/time in GMT only, but will serve it out to users

Re: Wild Proposal :)

2000-10-12 Thread David E. Wheeler
yourself with more connections than you can handle. And that's why connection pooling makes sense in some cases. David -- David E. Wheeler Software Engineer Salon Internet ICQ: 15726394 [EMAIL PROTECTED] AIM: dwTheory

Forking in mod_perl?

2000-10-04 Thread David E. Wheeler
the extra processing at its leisure. Is this doable? Is forking a good idea in a mod_perl environment? Might there be another way to do it? TIA for the help! David -- David E. Wheeler Software Engineer Salon Internet ICQ: 15726394 [EMAIL PROTECTED

Re: Forking in mod_perl?

2000-10-04 Thread David E. Wheeler
ed phillips wrote: Hi David, Check out the guide at http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subprocess The Eagle book also covers the C API subprocess details on page 622-631. Let us know if the guide is unclear to you, so we can improve it. Yeah, it's

Re: Forking in mod_perl?

2000-10-04 Thread David E. Wheeler
ed phillips wrote: I hope it is clear that you don't want fork the whole server! Mod_cgi goes to great pains to effectively fork a subprocess, and was the major impetus I believe for the development of the C subprocess API. It (the source code for mod_cgi) is a great place to learn some

Re: Forking in mod_perl?

2000-10-04 Thread David E. Wheeler
Billy Donahue wrote: Now you are faced with a trade off. Is it more expensive to detach a subprocess, or use the child cleanup phase to do some extra processing? I'd have to know more specifics to answer that with any modicum of confidence. He might try a daemon coprocesses using

Re: Dissappearing Lexicals

2000-08-31 Thread David E. Wheeler
Matt Sergeant wrote: On Wed, 30 Aug 2000, mgraham wrote: [snip] Personally, I've given up on package-scoped lexicals entirely, and moved everything into "use vars". It's a pain, because you lose the encapsulation and you have to declare and assign the variables separately. But it

Dissappearing Lexicals

2000-08-29 Thread David E. Wheeler
Hi All, I've encounted a strange problem with our mod_perl installation. I have a library for handling DBI stuff, and store the $dbh in a package-level lexical. The $dbh is not populated until the first time a DBI call is made - which is during a request and therefore always after Apache forks.

Can't Locate Apache::File

2000-08-29 Thread David E. Wheeler
Hi All, I've just installed the latest version of Lincoln Stein's Apache::MP3 (nice job, Doc!), which offers support for caching MP3 ICY info. It uses Apache::File to do so. This the first time I've used Apache::File on this server, but was still surprised to find that it failed to load: [Wed