language?
TIA!
David
--
David E. Wheeler
Software Engineer
Salon Internet ICQ: 15726394
[EMAIL PROTECTED] AIM: dwTheory
"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
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
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
';
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.
{
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
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
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
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
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
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
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
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
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.
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
15 matches
Mail list logo