Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
That only solves half the problem. Since it is a virtual directory, how will Apache::Registry know where 'cgifile' really exists so it can run it? For example: http://www.mydoamin.com/dirA/dirB/cgifile dirA and dirB don't really exist. If 'cgifile' is stored somewhere else how will

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
Thanks. It seems like I would want to write a PerlTransHandler. However I don't want to change the filename until after the authorization phase. Can I change the uri to filename mapping at the end of the authorization phase but before the content handler phase? Thanks. -Todd On Mon, 9 Oct

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Perrin Harkins
On Mon, 9 Oct 2000, Todd Chapman wrote: That only solves half the problem. Since it is a virtual directory, how will Apache::Registry know where 'cgifile' really exists so it can run it? Either put it under your docroot or use the standard Alias stuff: Alias /perl/ /home/httpd/perl/

PerlHandler configuration question.

2000-10-08 Thread Todd Chapman
I am servicing requests from a virtual document tree. Most of the time I want the request to be serviced by a PerlHandler module I wrote. However, if the requested filename is 'cgifile' I would rather have Apache::Registry handle the request, but since this is a virtual document tree the CGI

Re: $r-header_only question (feeling a newbie!)

2000-10-03 Thread martin langhoff
martin, check out: http://www.ora.com/catalog/wrapmod/errata/wrapmod.699 Well, I guess fair is fair, the correction for page 146 (unless = if) was there, I should've done my research better ... anyway I do seem to be needing 'use Apache::Constants qw(:common);' to run under strict

Re: $r-header_only question (feeling a newbie!)

2000-10-03 Thread Vivek Khera
"DT" == Drew Taylor [EMAIL PROTECTED] writes: DT after changing "unless" to "if". Can anyone check what Apache defaults DT to if no status code is returned? I'm guessing it's "OK". In perl, if you have no explicit return statement, the last value computed (or returned from another sub call)

Question on Apache::Compress

2000-10-02 Thread Ben Cottrell
Hi, This is in regards to Ken Williams' Apache::Compress module (announced here on August 22). I've installed it, along with zlib, Compress::Zlib, and Apache::Filter, and am having a couple of issues getting it running -- wondering if anyone has any clues. perl is version 5.004_04, apache is

Re: Question on Apache::Compress

2000-10-02 Thread Ben Cottrell
On Mon, 2 Oct 2000 15:28:09 -0400 (EDT), kevin montuori wrote: bc Static .html files aren't compressed at all (but do come through bc as text/html). do you have SetHandler perl-script in there somewhere? Kevin, This fixes static html completely! It's

$r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
hi, I've been developing with mod_perl for a while, but, thanks to Richter's Embperl module and the excellent backwards compatibility (regarding CGI.pm) I had never got anywhere near Apache::Request -- for production, that is. Now I have this very silly question, that I've

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Drew Taylor
this very silly question, that I've boiled down to this little snippet of code (which carries a remakable resemblance to the example found in page 146 of the Eagle Book): -- #!/usr/bin/perl -w use strict; use Apache::Constants qw(:common); my $r = Apache-request; $r

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Tim Tompkins
hanks, Tim Tompkins -- Programmer / Staff Engineer http://www.arttoday.com/ -- - Original Message - From: "martin langhoff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 02, 2000 1:37 PM Subject: $r

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
... it made no difference ... :( Drew Taylor wrote: I believe all you need to add is "return OK;" after your print statement. Without that, Apache doesn't know what the status of the request should be.

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Drew Taylor
martin langhoff wrote: ... it made no difference ... :( Drew Taylor wrote: I believe all you need to add is "return OK;" after your print statement. Without that, Apache doesn't know what the status of the request should be. Doh. I missed what Tim caught. I believe Apache will assume

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Doug MacEachern
On Mon, 2 Oct 2000, martin langhoff wrote: Now shouldn't it be an 'if' instead of an 'unless'? yes, it should be an `if'. your script works fine for me with that change.

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
Thanks Tim and all, my gathering is that the sample script on page 146 of the Eagle: - needed a 'use Apache::Constants(:common);' line - needed a 'return OK;' line at EOF - had an 'unless' that should've been an 'if'. for-the-record, I did check

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread ___cliff rayman___
doug, lincoln, looks like www.modperl.com needs a link to errata. martin, check out: http://www.ora.com/catalog/wrapmod/errata/wrapmod.699 martin langhoff wrote: Thanks Tim and all, for-the-record, I did check www.modperl.com looking for an errata. marks down for O'Reilly

Re: OOP and mod_perl question

2000-09-29 Thread Greg Cope
experts that the following is allowed in Perl OO modules and does not conflict with mod_perl. The question belongs to the constructor. I have $self as a class reference on the brandnew object. Now in the rest of my constructor I do some Querys on a MySQL database to get information about

Re: OOP and mod_perl question

2000-09-29 Thread Sean D. Cook
from some experts that the following is allowed in Perl OO modules and does not conflict with mod_perl. The question belongs to the constructor. I have $self as a class reference on the brandnew object. Now in the rest of my constructor I do some Querys on a MySQL database to get

[OT] C question - message size in hex

2000-09-29 Thread B. Burke
Does anyone know where in Apache's code it prints the outbound response message size in hex? Example (the size is 112 on this particular message): HTTP/1.1 404 Not Found Date: Fri, 29 Sep 2000 13:58:56 GMT Server: Apache/1.3.6 (Unix) Keep-Alive: timeout=15, max=100 Connection: Keep-Alive

iconv/LD_PRELOAD question

2000-09-28 Thread Rajit Singh
To Whom It May Concern, I have a question with regards using LD_PRELOAD (or something more appropriate) to load libiconv_plug.so and override any other iconv implementation. (Would be grateful is someone can help). I'm running Apache with mod_perl 1.24 on Solaris 2.6. I'm using XML

Re: iconv/LD_PRELOAD question

2000-09-28 Thread Doug MacEachern
how about using mod_so's LoadFile directive? On Thu, 28 Sep 2000, Rajit Singh wrote: To Whom It May Concern, I have a question with regards using LD_PRELOAD (or something more appropriate) to load libiconv_plug.so and override any other iconv implementation. (Would be grateful is someone

OOP and mod_perl question

2000-09-28 Thread Andreas Grupp
that the following is allowed in Perl OO modules and does not conflict with mod_perl. The question belongs to the constructor. I have $self as a class reference on the brandnew object. Now in the rest of my constructor I do some Querys on a MySQL database to get information about the authenticated user

Re: PerlSendHeader Off socket persistence (was Re: question: usingApache for non-HTML messages)

2000-09-28 Thread Doug MacEachern
On Wed, 27 Sep 2000, B. Burke wrote: When I set PerlSendHeader to Off in my perl.conf it doesn't send headers, which is good. The bad part is that it seems to break socket persistence for some reason. When I have PerlSendHeader set to On, I can open a socket with my test client, and

Update: Re: PerlSendHeader Off socket persistence (was Re: question: usingApache for non-HTML messages)

2000-09-28 Thread B. Burke
what is your test client? I wrote a command line client that just sends/receives basic messages for testing. I have been opening a socket and sending this: GET /perl/myscript HTTP/1.1 Connection: Keep-Alive Host: myhost.mydomain.com\n\n It worked as expected - I was able to keep the socket

PerlSendHeader Off socket persistence (was Re: question: using Apache for non-HTML messages)

2000-09-27 Thread B. Burke
When I set PerlSendHeader to Off in my perl.conf it doesn't send headers, which is good. The bad part is that it seems to break socket persistence for some reason. When I have PerlSendHeader set to On, I can open a socket with my test client, and make multiple queries on the same socket. Any

Re: question: using Apache for non-HTML messages

2000-09-26 Thread Doug MacEachern
On Mon, 25 Sep 2000, B. Burke wrote: I've been able to basically remove the response headers by removing the functionality of ap_sen_header_field() before compiling Apache, but it would be nice to you don't have to remove anything, just don't call $r-send_http_header and make sure

question: using Apache for non-HTML messages

2000-09-25 Thread B. Burke
use tagged, delimited fields (pipe delimited instead of delimited). I have written a socket server gateway to act as a protocol converter, to convert our API's requests into HTML GET's (and also convert the HTML output into our API's response format). My question is this. Is it possible using

Re: question: using Apache for non-HTML messages

2000-09-25 Thread David Alan Pisoni
nverter, to convert our API's requests into HTML GET's (and also convert the HTML output into our API's response format). My question is this. Is it possible using mod_perl for me to incorporate the protocol conversion into Apache itself? In other words, can I strip out the need for HTML

Re: Question

2000-09-17 Thread Yann Kerhervé
On Tue, Sep 12, 2000 at 04:34:28PM +0100, David Hodgkinson wrote: "Eric Cholet" [EMAIL PROTECTED] writes: well then we're a long shot away, and so are many French natives :) Nah, we won't be that demanding, lest we scare him away from the, erm, "most beautiful city in the world".

Re: Question

2000-09-12 Thread David Hodgkinson
"Eric Cholet" [EMAIL PROTECTED] writes: well then we're a long shot away, and so are many French natives :) Nah, we won't be that demanding, lest we scare him away from the, erm, "most beautiful city in the world". What? Bath? Dave // Found communication in Paris much improved with a

Question on installation and location of httd.conf file.

2000-09-12 Thread Jason
Hi .. I hope someone can help me with this problem. I've been assigned to install Apache::ASP and mod_perl so that one of our client's can use a program called Hyperseek. My biggest problem is that I'm not very familiar with the server or the Unix environment. Over the past few days, I've

Question

2000-09-11 Thread gsstark
Anyone know why a browser would send something like this? HTTP_ACCEPT_LANGUAGE=en-us,x-ns1MKtfdqbuNhQ;q=0.4,x-ns2r2e09OnmPe2 the x-ns1 and x-ns2 stuff look like base64 encoded 8-byte blocks, almost as if it's some kind of key exchange or key leaking mechanism. -- greg

Re: Question

2000-09-11 Thread Matt Sergeant
On 11 Sep 2000 [EMAIL PROTECTED] wrote: Anyone know why a browser would send something like this? HTTP_ACCEPT_LANGUAGE=en-us,x-ns1MKtfdqbuNhQ;q=0.4,x-ns2r2e09OnmPe2 the x-ns1 and x-ns2 stuff look like base64 encoded 8-byte blocks, almost as if it's some kind of key exchange or key

Re: Question

2000-09-11 Thread Stas Bekman
of headers. So if I send to your server this header: HTTP_ACCEPT_LANGUAGE=Stas_is_learning_french_please_speak_slowly;q=0.99,en-us;0.01 Will you also ask why Stas is learning french? :) :) :) I ask myself the same question

Re: Question

2000-09-11 Thread Matt Sergeant
alternate content in a language that isn't defined by the IANA list. Will you also ask why Stas is learning french? :) :) :) I ask myself the same question :) :-) -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email

Re: Question

2000-09-11 Thread G.W. Haywood
HI Stas, On Mon, 11 Sep 2000, Stas Bekman wrote: Will you also ask why Stas is learning French? Chercher la femme? [50 Jahre Musik mit Hazy Osterwald] 73, Ged.

Re: Question

2000-09-11 Thread Vivek Khera
"GWH" == G W Haywood [EMAIL PROTECTED] writes: GWH HI Stas, GWH On Mon, 11 Sep 2000, Stas Bekman wrote: Will you also ask why Stas is learning French? GWH Chercher la femme? Most likely because the people in Paris demand you speak to them in perfect French. High school level French is not

Re: Question

2000-09-11 Thread Eric Cholet
GWH HI Stas, GWH On Mon, 11 Sep 2000, Stas Bekman wrote: Will you also ask why Stas is learning French? GWH Chercher la femme? Most likely because the people in Paris demand you speak to them in perfect French. High school level French is not accepted ;-| well then we're a long

Broad Question re: custom response codes

2000-09-08 Thread David Veatch
Greetings all, This is an extremely broad question, but I was wondering if any of you knew, off the top of your head, of any circumstances in which the generation of custom response codes would be ignored. Say... A subroutine is called in the case of an error that logs the warning

Re: [OT] DNS question (slightly mod_perl related...)

2000-09-05 Thread Ask Bjoern Hansen
On Thu, 31 Aug 2000, martin langhoff wrote: ... As you may have imagined, it maybe trivial to do in Apache (I haven't done it yet, but I hope it is). I usually do it with mod_rewrite. Something like RewriteEngine on RewriteCond %{HTTP_HOST}!^www\.ek\.dk$

Re: StatINC Question

2000-09-05 Thread Ask Bjoern Hansen
On Mon, 4 Sep 2000, Warren D. Johnson wrote: Thank you for the followup. My original thought was that StatINC reloaded modules as appropriate and that each child should share a common cache of pre-compiled scripts. Since that is not the case, it makes developing larger applications in

Re: StatINC Question

2000-09-04 Thread Matt Sergeant
On Sun, 3 Sep 2000, Warren D. Johnson wrote: Here is my problem: StatINC seems to work fine several times after I restart the server but then at some point begins to act funky. I'll reload a page and either/or a source file will get reloaded every time (despite it's time not changing) or

Re: StatINC Question

2000-09-04 Thread Warren D. Johnson
Matt, Thank you for the followup. My original thought was that StatINC reloaded modules as appropriate and that each child should share a common cache of pre-compiled scripts. Since that is not the case, it makes developing larger applications in mod_perl a bit trickier. Trickier because now

Re: may be an offtopic question

2000-09-04 Thread Alexander Farber (EED)
Niral Trivedi wrote: I know that perl 5.6 does support to some extent utf8 and unicode.. but can somebody point to me some site or resources which has examples on that??? Because I couldn't find any useful information from the perldoc for utf8 or perlunicode..

StatINC Question

2000-09-03 Thread Warren D. Johnson
Regards all, I've installed mod_perl and latest version of apache. Everything seems to be working fine. I have set StatINC as the PerlInitHandler in my httpd.conf so as to stat() file and libraries which are are dependencies of scripts handled by the modperl handler. In addition, I have a

Re: Dynamic Directory Protection - An authorization related question.

2000-09-03 Thread Jonathan Leto
Problem: For Authentication and Group Authorization, changes in the database will be reflected without restarting Apache. Not so for the URI Directory part of it. I have thought about restarting Apache from time to time, but thinking there must be a "lazier" way with performance

Re: Dynamic Directory Protection - An authorization related question.

2000-09-03 Thread Michael Robinton
I am trying to implement a database driven solution for a small university website (300+ users) and quite happy with Authentication and Authorization packages provided by mod_perl. However, there doesn't seems to be a solution to dynamically protect a directory without restarting Apache.

Re: Dynamic Directory Protection - An authorization related question.

2000-09-03 Thread Simon Wei
Thanks guys! (Michael Hanisch, Michael Robinton, Jonathan Leto) I think the session key idea will work for me, just hoping there are a generic solution out there. This is a typical problem why people turn to LDAP, but LDAP is just so horrible to administer. Regards, Simon Wei Hi: ReHi

Re: Question about suggested AIX patch to perl.

2000-09-02 Thread Jens-Uwe Mager
On Fri, Sep 01, 2000 at 07:45:46PM -0400, Paul J. Reder wrote: I am working to update my instructions for getting mod_perl working as a DSO on AIX. I see that there is a recommended patch for dl_aix.xs to get XS working. I am currently testing on AIX 4.3.3, Apache 1.3.13-dev, and IBM's IHS

Re: question on code snippet in mod_perl guide

2000-09-01 Thread Stas Bekman
On Thu, 31 Aug 2000, Aaron Johnson wrote: I don't work on Oracle so I will speak from my experience with MySQL. MySQL servers time out after the 8 hour standard disconnect for inactivity (this can be adjusted in your my.conf file). To compensate for this we now run our own connect checks

Re: Apache::Session and performance question

2000-09-01 Thread Greg Cope
Perrin Harkins wrote: On Mon, 28 Aug 2000, Chris Brooks wrote: I went back through the documentation on Apache::Session, Apache::Session::DBIStore, and Apache::DBI, and I haven't found a problem in the way we have implemented this. Does anyone else have suggestions, or has anyone else

[OT] Language Question...

2000-09-01 Thread David Hajoglou
I would like to learn about the programming of mod_perl. While I am an ok perl programmer, I know very little of c code. Can somebody suggest a (or several) book that I can start to learn c from? Thanks, David

Re: [OT] Language Question...

2000-09-01 Thread David Hodgkinson
David Hajoglou [EMAIL PROTECTED] writes: I would like to learn about the programming of mod_perl. While I am an ok perl programmer, I know very little of c code. Can somebody suggest a (or several) book that I can start to learn c from? Why do you need C if you've got perl? -- Dave

Re: [OT] Language Question...

2000-09-01 Thread David Hajoglou
Well, if you must know, mod perl was programmed in c On 1 Sep 2000, David Hodgkinson wrote: David Hajoglou [EMAIL PROTECTED] writes: I would like to learn about the programming of mod_perl. While I am an ok perl programmer, I know very little of c code. Can somebody suggest a (or

Re: [OT] Language Question...

2000-09-01 Thread David Hodgkinson
David Hajoglou [EMAIL PROTECTED] writes: Well, if you must know, mod perl was programmed in c I knew this. So? -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL,

Re: [OT] Language Question...

2000-09-01 Thread David Hajoglou
I would like to be able to read the internals of mod_perl (the module that plugs into apache). I would like to understand how it works with apache and to do this I need c coding skills. So, regardless of my reason for wanting to learn c (though it does relate), does anybody have any suggestions

Re: [OT] Language Question...

2000-09-01 Thread David Hodgkinson
David Hajoglou [EMAIL PROTECTED] writes: I would like to be able to read the internals of mod_perl (the module that plugs into apache). I would like to understand how it works with apache and to do this I need c coding skills. So, regardless of my reason for wanting to learn c (though it

Re: [OT] Language Question...

2000-09-01 Thread Jeff Jones
I began teaching myself C using the following book: "A Book on C" by Al Kelley, Ira Pohl ISBN# 0201183994 It will turn up if you do a search at amazon. Hope this helps. Jeff Jones On Fri, 1 Sep 2000, David Hajoglou wrote: I would like to be able to read the internals of

[OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread martin langhoff
. Or is it? the question: Is it possible to tell BIND to catch *.domain.com and answer the same ip? the apologies: I know. I know. I'm way off topic. Delete my msg ... I'm not a BIND warrior, but a mod_perl developer bound to BIND woes ... martin

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread Matt Sergeant
into saying it knows as many domains as folders I want. Or is it? the question: Is it possible to tell BIND to catch *.domain.com and answer the same ip? Yes, I believe the entry is simply *.domain.com! Then use mod_rewrite to map the right folder. -- Matt/ Fastnet Software Ltd

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread David Hodgkinson
martin langhoff [EMAIL PROTECTED] writes: Is it possible to tell BIND to catch *.domain.com and answer the same ip? Plan A: Generate the zone files from the database. Plan B: Use the beta of Bind 9 which, I believe, has database bindings promised. I've hacked around with something

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread Jim Winstead
On Aug 31, David Hodgkinson wrote: martin langhoff [EMAIL PROTECTED] writes: Is it possible to tell BIND to catch *.domain.com and answer the same ip? Plan A: Generate the zone files from the database. Plan B: Use the beta of Bind 9 which, I believe, has database bindings

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread David Hodgkinson
Jim Winstead [EMAIL PROTECTED] writes: On Aug 31, David Hodgkinson wrote: martin langhoff [EMAIL PROTECTED] writes: Is it possible to tell BIND to catch *.domain.com and answer the same ip? Plan A: Generate the zone files from the database. Plan B: Use the beta of Bind

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread martin langhoff
Jim Winstead wrote: plan c: use a wildcard record and move on to real problems. :) Bummer! I had thought I actually had a real problem ... gotta move on to find one ! martin [who can't believe this list's so great]

question on code snippet in mod_perl guide

2000-08-31 Thread conark
In the section on optimizing the db and prepare statements (in the http://perl.apache.org/guide/performance.html url), the document discusses creating a subroutine called "connect" in a package called package My::DB; My question is if you have the my $dbh = My::DB-connect; statement

Re: question on code snippet in mod_perl guide

2000-08-31 Thread conark
back connect since it assumes that the connection is still present. Then at some random interval we get that error message from apache. I'm out of ideas of what's causing this. I guess I am missing the key to the question here :^) I have some suggestions that can help, but I need to know which

Re: question on code snippet in mod_perl guide

2000-08-31 Thread Perrin Harkins
On Thu, 31 Aug 2000 [EMAIL PROTECTED] wrote: What I think is going on is that the script gets killed by Oracle for being idle and tries to ping the connection, but the ping fails. It is supposed to reconnect when the ping fails. I've had problems getting reconnects to Oracle 8 working. The

Re: question on code snippet in mod_perl guide

2000-08-31 Thread Aaron Johnson
I don't work on Oracle so I will speak from my experience with MySQL. MySQL servers time out after the 8 hour standard disconnect for inactivity (this can be adjusted in your my.conf file). To compensate for this we now run our own connect checks for a valid dbh handle before it goes it all the

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread Barrie Slaymaker
Matt Sergeant wrote: Yes, I believe the entry is simply *.domain.com! Then use mod_rewrite to map the right folder. Yup. Beware though, there are certain issues you may need to think of if you're going to be sending/receiving mail from these domain names. One problem is the reverse name

Re: Question about Apache::DBI::DEBUG

2000-08-30 Thread Yann Neuhaus
Hi Sorry I don't really remember the mail, I think it was because of the DEBUG information that were missing in the Apache error_log. There were many reasons why my Apache wasn't working with Apache::DBI (not well compiled with mod_perl, http.conf not correctly set, .) I wrote a little

may be an offtopic question

2000-08-30 Thread Niral Trivedi
Hello All, Sorry for asking this question, but If you know any other mailing list to post this message, please give me the address... I know that perl 5.6 does support to some extent utf8 and unicode.. but can somebody point to me some site or resources which has examples on that??? Because I

semi/pseudo mod_perl question

2000-08-29 Thread Roderick A. Anderson
Not strickly mod_perl so I've put on my flame retardent suit. I've seen several references to Apache::ASP (and mod_perl) but haven't been able to figure out quite what it does/provides. The Apache::ASP pages says something to the effect 'Active Server Pages using perl'. My question is can I

Re: Apache::Session and performance question

2000-08-28 Thread Chris Brooks
, Chris Date: Tue, 22 Aug 2000 10:08:11 -0400 To: Perrin Harkins [EMAIL PROTECTED] From: Chris Brooks [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Apache::Session and performance question Message-ID: [EMAIL PROTECTED] Hi, thanks for the reply, Yes, we are calling the module from http.conf

Re: Apache::Session and performance question

2000-08-28 Thread Perrin Harkins
On Mon, 28 Aug 2000, Chris Brooks wrote: I went back through the documentation on Apache::Session, Apache::Session::DBIStore, and Apache::DBI, and I haven't found a problem in the way we have implemented this. Does anyone else have suggestions, or has anyone else experienced a similar

Re: Apache::Session and performance question

2000-08-28 Thread Chris Brooks
Perrin, Thanks for the replies. Adding an index made a significant improvement on performance -- it's still three or four times slower than without Apache::Session, but much faster than without the index. Thanks again, Chris Perrin Harkins wrote: On Mon, 28 Aug 2000, Chris Brooks wrote: I

modperl newbie: question about unable to load File.pm

2000-08-24 Thread Hoffman , Geoffrey
any extra setup for it, other than Use Apache::File ();, which is basically where it is choking. I checked, File.pm IS located down in the /usr/local/lib/perl5 directory, in the same directories as other modules that ARE working (like Constants). Hate to ask what may be an obvious question, but anyon

RE: modperl newbie: question about unable to load File.pm

2000-08-24 Thread Geoffrey Young
: modperl newbie: question about unable to load File.pm I am trying to learn mod_perl, and have been going through the O'Reilly book. Got to the "footer" example, where it just simply adds some HTML to the bottom of a page. not a big deal. when I try to run it, I get issues wit

RE: modperl newbie: question about unable to load File.pm - fixed

2000-08-24 Thread Hoffman , Geoffrey
, August 24, 2000 3:40 PM To: modperl Subject: modperl newbie: question about unable to load File.pm I am trying to learn mod_perl, and have been going through the O'Reilly book. Got to the "footer" example, where it just simply adds some HTML to the bottom of a page. not a big deal. when I

Simple question: httpd (apache) vs httpd (mod_perl)

2000-08-22 Thread Keith Bradnam
Hello, My understanding of perl is minimal, my understanding of mod_perl non-existant but I have a (simple) question that I can't find anywhere in the FAQ. Hopefully someone can help? I've just installed the apache web server (1.3.12) on our Tru64 Unix box. One of the applications we run (via

Re: Simple question: httpd (apache) vs httpd (mod_perl)

2000-08-22 Thread Rafael Caceres
able to use the new httpd instead of the previous (Apache only) httpd, the answer is an absolute yes! Regards, Rafael Caceres At 09:36 AM 8/22/00 +0100, you wrote: Hello, My understanding of perl is minimal, my understanding of mod_perl non-existant but I have a (simple) question that I can't

Apache::Session and performance question

2000-08-21 Thread Chris Brooks
Hi all, We have a fairly simple handler responsible for maintaining state on our web server. Unfortunately, when we activate it, server performance drops to about 1/10th of what it is without. After going through the handler and commenting out parts and benchmarking (rinse, repeat),

Re: Apache::Session and performance question

2000-08-21 Thread Perrin Harkins
On Mon, 21 Aug 2000, Chris Brooks wrote: We have a fairly simple handler responsible for maintaining state on our web server. Unfortunately, when we activate it, server performance drops to about 1/10th of what it is without. After going through the handler and commenting out parts and

Newbie question on Apache::Debug::dump

2000-08-19 Thread Jay Strauss
Sorry if this has been asked before but I have been unable to find the answer (not in perldoc, apache modules book, searching archives): I would like my perl compilation and process errors to be written to an HTML page if/when they occur, in the same way they are written to stdout when I run

Re: Newbie question on Apache::Debug::dump

2000-08-19 Thread Craig McLane
The request object is $r Craig On Sat, 19 Aug 2000, Jay Strauss wrote: Sorry if this has been asked before but I have been unable to find the answer (not in perldoc, apache modules book, searching archives): I would like my perl compilation and process errors to be written to an HTML

Re: new cgi mod_perl question

2000-08-17 Thread darren chamberlain
Alex Menendez ([EMAIL PROTECTED]) said something to this effect: does anyone know how to get the output of a standalone cgi script from a mod_perl module I have tried all the subrequest stuff but I can't get it to work. If all you are trying to do is get the raw output, use LWP and a

Re: Question about $sth-finish;

2000-08-17 Thread Tim Bunce
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I

Re: Question about $sth-finish;

2000-08-17 Thread Tim Bunce
On Tue, Aug 15, 2000 at 12:22:46PM -0500, Jay Jacobs wrote: On Tue, 15 Aug 2000, Tom Mornini wrote: It is my understanding of the DBI docs that you only need to call $sth-finish when you DON'T fetch all the rows that the $sth has ready to return. From "Writing Apache Modules

Re: Question about $sth-finish;

2000-08-17 Thread Tim Bunce
On Wed, Aug 16, 2000 at 08:26:09AM +0200, Henrik Tougaard wrote: From: Jay Jacobs [mailto:[EMAIL PROTECTED]] On Tue, 15 Aug 2000, Tom Mornini wrote: It is my understanding of the DBI docs that you only need to call $sth-finish when you DON'T fetch all the rows that the $sth has

RE: Question about $sth-finish;

2000-08-17 Thread Vladislav Safronov
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish

RE: Question about $sth-finish;

2000-08-16 Thread Henrik Tougaard
From: Jay Jacobs [mailto:[EMAIL PROTECTED]] On Tue, 15 Aug 2000, Tom Mornini wrote: It is my understanding of the DBI docs that you only need to call $sth-finish when you DON'T fetch all the rows that the $sth has ready to return. From "Writing Apache Modules with Perl and C":

RE: Question about $sth-finish;

2000-08-16 Thread Henrik Tougaard
From: Vladislav Safronov [mailto:[EMAIL PROTECTED]] What can you say about this code? is it ok (overwriting previous handle)? == sub foo { my $dbh = shift; my $sql1 = "select *... my $sql2 = "select *... my $sth = $dbh-prepare($sql1); $sth-execute;

RE: Question about $sth-finish;

2000-08-16 Thread Vladislav Safronov
Well, summarizing all the answers and assuming using Mysql 1. $sth-finish should be used if (and ONLY if) the the returned data (any SELECT, but not INSERT, UPDATE?) has not been fetched ALL and $sth is going to be overwritten.. 2. $sth (defined as 'my') should not call finish before

new cgi mod_perl question

2000-08-16 Thread Alex Menendez
does anyone know how to get the output of a standalone cgi script from a mod_perl module I have tried all the subrequest stuff but I can't get it to work. Apache seems to parse the cgi file once a handler has been called. simply writing a handler that returns DECLINED every time it is called

Question about $sth-finish;

2000-08-15 Thread Vladislav Safronov
Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need to call $sth-finish? Wouldn't it be automaticly called when sub

RE: Question about $sth-finish;

2000-08-15 Thread Kenneth Lee
: Question about $sth-finish; Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need to call $sth-finish? Wouldn't

Re: Question about $sth-finish;

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need to call

RE: Question about $sth-finish;

2000-08-15 Thread Henrik Tougaard
From: Vladislav Safronov [mailto:[EMAIL PROTECTED]] sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need to call $sth-finish? Wouldn't it be automaticly called when sub foo ends (when

RE: Question about $sth-finish;

2000-08-15 Thread Vladislav Safronov
On Tue, 15 Aug 2000, Vladislav Safronov wrote: Hi, Could you have a look at the lines and answer the question .. --- sub foo { my $dbh = shift; my $sql = ... my $sth = $dbh-prepare($sql); $sth-execute; $sth-finish; } === Do I always need

RE: Question about $sth-finish;

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Vladislav Safronov wrote: "my" (perl's my) variables doesn't always get destoyed, does it Perl's documentation say that "my" vars are the most safe since they get destroyed when they get out of scope ... I said this was a bug in Perl, although I don't think that

RE: Question about $sth-finish;

2000-08-15 Thread David Mitchell
Matt Sergeant [EMAIL PROTECTED] wrote: This can be demonstrated with a very simple object class with a DESTROY method. There's a message somewhere in the p5p archives about this from me. That's http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-03/msg00604.html to save anyone else

<    2   3   4   5   6   7   8   9   10   >