Re: RFC: Apache::Reload

2000-08-15 Thread Ask Bjoern Hansen
On Fri, 11 Aug 2000, Matt Sergeant wrote: > sub handler { > my $r = shift; > my $do_undef = ref($r) && > (lc($r->dir_config("UndefOnReload") || '') eq > 'on'); Would be neat to have this as an import parameter. I don't know why I never got it into StatINC, but

Re: DIR_MERGE and .htaccess

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Doug MacEachern wrote: > On Tue, 4 Jul 2000, Matt Sergeant wrote: > > > Shouldn't DIR_MERGE be called when .htaccess files are found at different > > levels, e.g: > > > > /axkit/.htaccess > > and > > /axkit/test/.htaccess > > > > I ask for /axkit/test/test.xsp > > > > I w

RE: Question about $sth->finish;

2000-08-15 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); > $

RE: Question about $sth->finish;

2000-08-15 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 Pe

Re: [OT]SegFaults, not PerlFreshRestart or module related

2000-08-15 Thread Doug MacEachern
On Mon, 19 Jun 2000, Paul wrote: > I'm running out of ideas. > > PerlFreshRestart was completely unused, then explicitly set Off. > I have two handlers, which seem to work well. My logs report nothing > amiss aside from the stream of segmentation faults killing off my > server children, usually

Re: Seg fault (11) backtrace (long email) - was RE: does anyone havea fix for this?

2000-08-15 Thread Doug MacEachern
On Thu, 3 Aug 2000, Jamie Krasnoo wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x8086ef0 in perl_handler_ismethod () yes, cvs should fix this, here's the diff: --- mod_perl.c 2000/05/25 18:06:23 1.121 +++ mod_perl.c 2000/06/02 17:23:07 1.122 @@ -1222,7 +1222,7 @@

Re: Apache::Include requires ExecCGI on doc root?

2000-08-15 Thread Doug MacEachern
On Tue, 27 Jun 2000, Theo Petersen wrote: > I was experimenting with Apache::Include and found something odd. First > I tried a document in htdocs that used a virtual include like so: > > > > This works fine, and hello-mod_perl.pl runs via Apache::Registry. > > But when I changed the include

Re: .htacess security

2000-08-15 Thread Doug MacEachern
On Thu, 3 Aug 2000, Rob Giseburt wrote: > Are .htaccess files secure? I don't want users to be able to use > ... sections or any other mod_perl constructs (setting scripts > to run via the Registry, for example) in .htaccess files. However, I need > .htaccess files turned on so users can passwo

Re: does anyone have a fix for this?

2000-08-15 Thread Doug MacEachern
On Wed, 2 Aug 2000, Jamie Krasnoo wrote: > Hello all, > > I'm new to the list and I'm hoping that someone could help me and explain > what I'm doing wrong or how to fix this > > > I recently compiled mod_perl-1.24 and it can run modules that I program. > However I get a segmentation fault (11)

Re: Client filehandle?

2000-08-15 Thread Doug MacEachern
On Wed, 2 Aug 2000, Todd Caine wrote: > > STDOUT is where $r->print goes under mod_perl; you should be OK. > > The data that is printed out via $r->print is on the file descriptor that the > http request is set up on. If the HTTP request came in on file descriptor 3 > then $r->print('foo') prin

Re: Customized Module For Logging In Transfer Log

2000-08-15 Thread Alan E. Derhaag
Saurabh Goyal <[EMAIL PROTECTED]> writes: > Hi, > > I am new to apche and mod_perl. I am trying to write apache module to write > some additional parameters to transfer log (access.log). Is anybody have an > idea, how can we write additional stuff to access.log including the > defaults. Any help

Re: Severe problem with $r->log_error

2000-08-15 Thread Doug MacEachern
On Tue, 11 Jul 2000, Axel Wagner wrote: > Hi, > > I have a serious problem with the logging facility of MOD_PERL. > Something that once worked perfectly well suddenly turned quite. > > I have tried all the logging statements from the eagle book, but > my error log file refuses to show any trace

Re: crash in modperl-1.24

2000-08-15 Thread Mark D. Anderson
(not sure whose email got delayed since i posted this question some time ago -- thanks for the tip though on how to get more meaningful modperl crash info). The problem was the symbol conflict between XML::Parser and apache when built with expat. This has been apparently known for over a year, bu

Re: (Fwd) Problem with Authen::Krb4 under mod_perl (fwd)

2000-08-15 Thread Doug MacEachern
On Wed, 2 Aug 2000, Jeff Horwitz wrote: > [forwarded just in case anyone else is having similar problems] > > -- Forwarded message -- > Date: Wed, 2 Aug 2000 10:45:35 -0400 (EDT) > From: Jeff Horwitz <[EMAIL PROTECTED]> > To: Dave Edsall - The Tauminator <[EMAIL PROTECTED]> > Sub

Re: RRDs::graph and mod_perl

2000-08-15 Thread Doug MacEachern
On Tue, 1 Aug 2000, Todd Caine wrote: > I have Apache 1.3.12 installed on Solaris 2.7 running with > mod_perl 1.24. I have a simple mod_perl script, it actually > uses Apache::Registry, that uses a Perl module called RRDs > that can generate images/graphs from a round robin > database. If you p

Re: User directive

2000-08-15 Thread Doug MacEachern
On Tue, 1 Aug 2000, Rob Giseburt wrote: > I want to modify the User cofiguration directive in a perl handler ... for > example in a PerlTransHandler. I'm trying to use mod_perl to implement Named > Virtual Hosting, and I have everything I need done except User and Group > mapping so that SuEXEC w

Re: Unexpected pnotes() behavior

2000-08-15 Thread Doug MacEachern
pnotes() expects a reference, it probably should croak if it's passed something else. it just increments the reference count of the sv, it does not make a copy. if you don't want to use a reference, you can copy it yourself: $r->pnotes(key => "$string")

Re: Aborting Apache startup during PerlInitHandler

2000-08-15 Thread Doug MacEachern
On Sun, 23 Jul 2000, Thomas Klausner wrote: > Hi! > > I have got a PerlInitHandler that does some config parsing etc. > > I would like Apache to stop starting up and to print out some error > message ("Config Directive blabla missing" or something like that) if > an error occures during config

Re: segmentation fault with CGI::Application

2000-08-15 Thread Doug MacEachern
On Wed, 19 Jul 2000, Michael J Schout wrote: > I have been trying to get CGI::Application to work under mod_perl today. So > far with no success. > > Finally I removed everything except CGI::Application from the config files, and > the server dumps core on startup. > > I have a very stripped

Re: Why can't I use a package name under Apache::Registry

2000-08-15 Thread Doug MacEachern
On Tue, 11 Jul 2000, bill chmura wrote: > > Hello, > > I have a problem with using apache::Registry and have not been able > find an answer in the eagle book or the mod_perl site, so i am missing > something here. > > If I take the following script and run it under apache::registry it > r

Re: crash in modperl-1.24

2000-08-15 Thread Doug MacEachern
On Mon, 10 Jul 2000, Mark D. Anderson wrote: > environment: linux redhat 2.2.12-20, modperl 1.24, apache 1.3.12 > > i've tried it with both perl 5.6 and with 5.005-03. > in both cases, i get a segv crash almost immediately the first time i issue > a request for a url using a perl handler (static

Re: mod per compilation problem

2000-08-15 Thread Doug MacEachern
On Wed, 5 Jul 2000, Kailashnath V Rampure wrote: > This is with reference to ur mail on mod_perl APXS error w/ apache/raven to > modperl mailing list. > I have a problem same problem with mod_perl. I just removed the the -Wl, -E > option from the flags of Make file for mod_perl but unable to comp

Re: DIR_MERGE and .htaccess

2000-08-15 Thread Doug MacEachern
On Tue, 4 Jul 2000, Matt Sergeant wrote: > Shouldn't DIR_MERGE be called when .htaccess files are found at different > levels, e.g: > > /axkit/.htaccess > and > /axkit/test/.htaccess > > I ask for /axkit/test/test.xsp > > I would have expected it to ask for both .htaccess files and try and mer

Re: Undefined subroutine &Apache::RegistryNG->handler::handler

2000-08-15 Thread Doug MacEachern
On Sun, 2 Jul 2000, Bill Moseley wrote: > This question has come up before (and I've asked it before) and I'm still > not sure of a solution. It's been a while, so maybe someone else has seen > (and solved) it? > > I get about 20 or so of these errors every day out of say 10,000 request > for t

Re: recursion in Apache::Constants::AUTOLOAD?

2000-08-15 Thread Jim Winstead
On Aug 15, Doug MacEachern wrote: > On Mon, 26 Jun 2000, Jim Winstead wrote: > > > We were seeing some servers spin out of control (allocating memory > > slowly) in Apace::Constants::AUTOLOAD (which apparently has been > > reported in the mailing list before). > > > > The attached patch fixes th

Re: Apache 2 opportunity

2000-08-15 Thread Doug MacEachern
On Sun, 2 Jul 2000, Francesco Pasqualini wrote: > I think in the current version of modperl there is an important feature > missing. > At this time is not possible to share resources between apache childs and so > we can not use "really" persistent DBI coneection. > What I intend is the possibili

Re: Cryptic Apache::Registry read() behavior

2000-08-15 Thread Doug MacEachern
if anybody wants to confirm that this won't break anything (e.g. CGI.pm), this patch will clear the buffer before appending to it. --- Apache/Apache.pm2000/08/15 04:35:13 1.52 +++ Apache/Apache.pm2000/08/16 04:36:30 @@ -65,7 +65,7 @@ my($nrd, $buf, $total); $nrd = $total = 0

Re: Cryptic Apache::Registry read() behavior

2000-08-15 Thread Doug MacEachern
On Fri, 30 Jun 2000, Cyrus Rahman wrote: > Hmm, I was just adapting a large application I wrote some years ago to work > with mod_perl. Much to my amazement, despite its complexity and the fact that > it was largely written before mod_perl, it worked without modification! Well, > almost. There

Re: SIGPIPE errors

2000-08-15 Thread Doug MacEachern
On Thu, 29 Jun 2000, Brent Meshier wrote: > Occasionaly, during a GET/POST, the request will be > dropped and netscape/IE returns "Document Contains No > Data". The errors logs report: > > [modperl] caught SIGPIPE in process 18311 hint: may be a > client (browser) hit STOP? > [modperl] process

Re: getting data posted to site

2000-08-15 Thread Doug MacEachern
On Thu, 29 Jun 2000, Scott Alexander wrote: > I'm trying to get the data that is posted from the browser durring a > request. > > if ($r->method ne 'GET') > { > $r->read($buffer,$r->header_in('Content-Length')); > #proccess data... > } > > The $r->read() hangs the request completel

Re: does __END__ at the end save memory?

2000-08-15 Thread Doug MacEachern
On Thu, 29 Jun 2000, Vladislav Safronov wrote: > Hi, > > Does __END__ directive at the end of every mod_perl script > reduce memory used by httpd ? in a module, no. in an Apache::Registry script, __END__ blocks are not supported. if they were, __END__ would consume more memory to maintain th

Re: CHECK blocks under mod_perl?

2000-08-15 Thread Doug MacEachern
On Wed, 28 Jun 2000, Michael J Schout wrote: > Hi. > > I would like to use a CHECK { } block under mod_perl, but have so far not had > any luck. It seems like mod_perl does not know how to deal with CHECK { } > blocks. Is this true? If so, can it be remedied? I cant use a BEGIN block > for

Re: Apache::Config module

2000-08-15 Thread Doug MacEachern
On Tue, 27 Jun 2000, Nathan Wiger wrote: > Hi all- > > I've written a module that can parse the Apache httpd.conf config file > (and in fact any Apache-like config file). It will take a set of > directive like: > > ServerName www.mydomain.com > UseCanonicalName Off > > And

Re: recursion in Apache::Constants::AUTOLOAD?

2000-08-15 Thread Doug MacEachern
On Mon, 26 Jun 2000, Jim Winstead wrote: > We were seeing some servers spin out of control (allocating memory > slowly) in Apace::Constants::AUTOLOAD (which apparently has been > reported in the mailing list before). > > The attached patch fixes the problems for us. Could someone who > understan

RE: set_handlers() bug?

2000-08-15 Thread Doug MacEachern
On Mon, 26 Jun 2000, Geoffrey Young wrote: > IIRC, Doug agreed to take a look at get/set handlers issues 'soonish' :) i guess this is later than 'soonish', sorry ;-/

Re: -DDL_UNLOAD_ALL_AT_EXIT ?

2000-08-15 Thread Doug MacEachern
On Mon, 26 Jun 2000, Mikhail Zabaluev wrote: > Hello, > > I'm interested to know, does the DL_UNLOAD_ALL_AT_EXIT compilation flag > for Perl 5.6.0 affect mod_perl's behaviour in any way? 'man perldelta' > says that it might. no, it was designed to, but mod_perl implements the feature in it's ow

Re: Segfault in perl_handler_ismethod

2000-08-15 Thread Doug MacEachern
On Mon, 26 Jun 2000, Rich Williams wrote: > > Hi, > > Linux 2.2.14, Apache 1.3.12, Perl 5.6.0, mod_perl 1.24. > > On the first request, I get a segfault after perl_handler_ismethod > is called. > > #0 0x40280fdc in mod_perl_register_cleanup (r=0x92ba3fc, sv=0x1) at mod_perl.c:1242 > #1 0x40

Re: Group authorization information in a downstream chained handler

2000-08-15 Thread Doug MacEachern
On Thu, 22 Jun 2000, Christian Gilmore wrote: > I'm trying to create a cache for group authorization. I'm wondering if > there's any way I can alter the requires information during the initial > authorization so that the cache building code can just pick from that which > group this person matche

Re: Apache::Util problem

2000-08-15 Thread Doug MacEachern
On Wed, 21 Jun 2000, Joel Bremson wrote: > All of a sudden I'm getting an error when > I use Apache::Util. It was working fine, > and then stopped. I've isolated the > module from my code and still get the error. > > Apache is 1.3.6 and perl is 5.00503. what version of mod_perl? > > This is

Re: Multiple module configuration directive problem

2000-08-15 Thread Doug MacEachern
On Wed, 21 Jun 2000, Rob Tanner wrote: > Solved my own problem -- read other modules config with: > >Apache::ModuleConfig->get($r, 'Apache::other_module') > > Since that means each module has to figure out whether it's reading it's > own directives or it's neighbors, this mechanism in this

Re: Pages stopping and not loading completely...

2000-08-15 Thread Doug MacEachern
On Mon, 19 Jun 2000, Matt Sergeant wrote: > On Mon, 19 Jun 2000, Farley, Scott wrote: > > > I'm running an application Apache + mod_perl that connects to an MySQL > > database and the pages every so often decide not fully load. You can even > > see the the HTML printed to the screen sometimes b

Re: Segfault Apache1.3.12/mod_perl1.24/Solaris2.6

2000-08-15 Thread Doug MacEachern
On Mon, 19 Jun 2000, G.W. Haywood wrote: > Hi Eric, > > > > [Fri Jun 16 17:20:21 2000] [notice] \ > > > child pid 22310 exit signal Segmentation Fault (11) > > On Mon, 19 Jun 2000, Eric Cholet wrote: > > > backtrace. > > (gdb) bt > #0 0x2b444 in perl_handler_ismethod () > #1 0x2c43c in perl

Re: Can anybody explain this?

2000-08-15 Thread Doug MacEachern
On Sat, 17 Jun 2000, Rob Tanner wrote: > Here's the scenario: > > I have a modperl program I've been working on for a while (my first, so I'm > a newbie). I was having problem getting php to run and discovered that if > modperl was configured, it ran fine. But it wasn't my immediate priority

RE: Apache children hanging

2000-08-15 Thread Doug MacEachern
On Tue, 13 Jun 2000, Paul G. Weiss wrote: > Yes, that much I knew, however when you do that you > can't use curinfo from .gdbinit, because the process > is not running. > > % gdb httpd core that's worked with curinfo for me in the past.

Re: Big pages and gzip

2000-08-15 Thread Doug MacEachern
On Sat, 10 Jun 2000, Ken Williams wrote: > Darn. Or perhaps: cool. Is it possible for me to usurp this module? > The Apache::Gzip module I've been working on has the same goals and same > purpose as the one in the eagle, but a bit of a different interface and > a very different implementation i

Re: $r->set_handlers behavior?

2000-08-15 Thread Doug MacEachern
On Wed, 26 Apr 2000, Geoffrey Young wrote: > good morning... > > I'm a bit confused about $r->set_handlers and $r->push_handlers behavior. > Both are listed in the eagle book as being per-request methods, but man > Apache lists them both as server configuration directives. I think, though, > th

Re: $r->get_handlers bug/oversight?

2000-08-15 Thread Doug MacEachern
On Tue, 25 Apr 2000, Geoffrey Young wrote: > Hi all... > > I've noticed that get_handlers() will return the enabled handlers > for a PerlPostReadRequestHandler, but not when it is specified as a > PerlInitHandler (either by calling > $r->get_handlers('PerlPostReadRequestHandler') or

Re: Totally trivial patch

2000-08-15 Thread Doug MacEachern
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: > Hi Doug, > > I was trying to figure out how to hide part of the URL of an > $r->custom_response from the user and I found this... > > It's real trivial, does that matter? not at all, more than welcome, thanks. > I assume that if (*string == '

Re: Pinning down panic: POPSTACK

2000-08-15 Thread Doug MacEachern
On Wed, 28 Jun 2000 [EMAIL PROTECTED] wrote: > The modperl archives are pretty clear that > panic: POPSTACK errors > caused by dies called in a eval is a perl bug. > > The archives are also clear that this is often a result > of an interaction with Apache::Session, which I *was* > getting, but

Re: [OT] mod_proxy tuning info?

2000-08-15 Thread Perrin Harkins
Hi Ed, > * What affect does CacheGcInterval have on performance? You might find it useful to split GC out into a separate process, especially if you are sharing the cache directory over NFS. > * How does performance scale with 1GB, 2GB, or 4GB of memory? Your filesystem performance should impr

Memory Leak

2000-08-15 Thread vegan.star
I have some mod_perl modules. I suspect that it has a memory leak. I'm running that in a Sun Solaris 2.6 machine with apache 1.3.9. I read that exists Apache::Leak to test for leaks. How it works? I have some packages and I put into them like this: package package_name; use Apache::Leak;

Re: [OT] mod_proxy tuning info?

2000-08-15 Thread Edward Moon
Yes, I have read that part of the mod_perl guide. I'm looking for a more detailed discussion on mod_proxy configuration and performance. But it doesn't answer the questions I have regarding the use of mod_proxy: * What affect does CacheGcInterval have on performance? * Does setting CacheDirLevels

Filter::decrypt under mod_perl??

2000-08-15 Thread Leonardo Madrigal
Hi! Does any body knows if Filter::decrypt works under mod_perl.. i only get "unrecognized character" on the log files, but on the commmand line they work... thanx --Leo.

Re: Yet more on set_handlers() and new-found problems with lookup_uri()

2000-08-15 Thread Doug MacEachern
i think the jist of the problem(s), is that set_handlers() modifies the configuration structure (the one created at startup from httpd.conf), so any subrequests will end up with the modified structure (which is not reset until the end of the request). this patch implements {get,set}_handlers in t

Re: Persistent db connectivity

2000-08-15 Thread Jie Gao
On Tue, 15 Aug 2000, Pramod Sokke wrote: > I mentioned that I'm using Apache::Sybase::CTlib and not Apache::DBI for > persistent connectivity. Moreover, if the module is not declared and I try > to connect in the startup file, the server won't even start. So that's > obviously taken care of. > My

Re: Persistent db connectivity

2000-08-15 Thread Pramod Sokke
I mentioned that I'm using Apache::Sybase::CTlib and not Apache::DBI for persistent connectivity. Moreover, if the module is not declared and I try to connect in the startup file, the server won't even start. So that's obviously taken care of. My question is more of, how do I know for sure that my

Persistent db connectivity

2000-08-15 Thread Pramod Sokke
Hi, I'm using Apache::Sybase::CTlib to establish persistent db connectivity in an effort to move our quite old and extremely dirty scripts from Netscape onto Apache with mod_perl. I'm establishing this connection on server startup and I haven't changed anything in my scripts. The above-mentioned

Re: [OT] mod_proxy tuning info?

2000-08-15 Thread ___cliff rayman___
have u read this yet? http://perl.apache.org/guide/scenario.html#mod_proxy Edward Moon wrote: > I'm looking for docs or white papers on tuning apache/mod_proxy for > optimum performance when acting as a reverse proxy for a web farm. > > Can anyone point me to a URL or a book that's a good refere

[OT] mod_proxy tuning info?

2000-08-15 Thread Edward Moon
I'm looking for docs or white papers on tuning apache/mod_proxy for optimum performance when acting as a reverse proxy for a web farm. Can anyone point me to a URL or a book that's a good reference? Thanks,

Solaris 2.6, mod_perl 1.24, DBD::Oracle 1.06, Oracle 8.1.6

2000-08-15 Thread Larry Mulcahy
ARGGGHHH. I'm trying to get the above combination working. DBD::Oracle was a very tough build. I am afflicted with the 'You must install a Solaris patch to run this version of the Java runtime' bug. Using the solution described at http://x55.deja.com/[ST_rn=ps]/getdoc.xp?AN=611626288&CONTEXT=96

Re: Session manager(s)-how to set an outbound session ?

2000-08-15 Thread Bill Moseley
At 11:24 PM 08/14/00 +, Greg Cope wrote: >I'm writing a Session-Manager (transhandler) i.e deals with getting a >session id from cookies, uri, or query args, and sets one and redirects >if neccessary. This is meant to compliment Apache::Session - in that >you use Apache::Session to store you

Seg fault with mod_perl and mysql

2000-08-15 Thread Mike Szydlo
Hello all, I'm new to mysql, like it, but I and have experienced seg faults using DBI->connect() under mod_perl registry. My script runs fine under straight CGI. I have found some reference to this on-line, but no solution. For example, http://www.mail-archive.com/modperl@apache.org/msg04900.h

Los Angeles, CA - Software Developer

2000-08-15 Thread Erica Scott
My client, a professional services company that integrates the building and marketing of digital businesses, is backed by one of the largest Interactive, Public Relations, and Advertising groups in the world. They are ranked by Adweek as one of the top 20 largest Interactive Services companies in

Re: Looking for info/docs

2000-08-15 Thread ___cliff rayman___
Derek Simkowiak wrote: > 2) One webpage I've read says that mod_perl "compiles" (interprets) each > Perl script only once, and then retains the compiled code in memory. Is > that something that was custom-made for mod_perl, or is that a feature of > using an embedded Perl interpreter? Can you p

Re: Apache::Upload buffering issues?

2000-08-15 Thread ___cliff rayman___
Ian Mahuron wrote: > What is the proper way to take the filehandle provided by $upload->fh and write the >file to disk? I seem to be having buffering > issues w/ the following (file is truncated): > > if (open(OUTFILE, ">$u_fullpath")) { > print OUTFILE $buffer while read($fh, $buffer,

Looking for info/docs

2000-08-15 Thread Derek Simkowiak
Hello, I need to write a (new) Apache module that uses embedded Perl in a high-load server environment. While this is not directly related to the use of mod_perl, I have many questions which the mod_perl team can probably answer. In particular, 1) Are there any issues rel

Re: Apache::Upload buffering issues?

2000-08-15 Thread Ken Y. Clark
On Tue, 15 Aug 2000, Ian Mahuron wrote: > What is the proper way to take the filehandle provided by $upload->fh and write the >file to disk? I seem to be having buffering > issues w/ the following (file is truncated): > > if (open(OUTFILE, ">$u_fullpath")) { > print OUTFILE $buffer while

Apache::Upload buffering issues?

2000-08-15 Thread Ian Mahuron
What is the proper way to take the filehandle provided by $upload->fh and write the file to disk? I seem to be having buffering issues w/ the following (file is truncated): if (open(OUTFILE, ">$u_fullpath")) { print OUTFILE $buffer while read($fh, $buffer, 8*1024); } else { ...

RE: Question about $sth->finish;

2000-08-15 Thread Jay Jacobs
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": "You should still call finish() at the end of e

RE: Question about $sth->finish;

2000-08-15 Thread Tom Mornini
On Tue, 15 Aug 2000, Vladislav Safronov wrote: > Ok. I think, the answers clear the problem, but I have yet more question. > > What can you say about this code? is it ok (overwriting previous handle)? > > == > sub foo { > my $dbh = shift; > > my $sql1 = "select *... > my $sql

RE: Question about $sth->finish;

2000-08-15 Thread Michael Peppler
Matt Sergeant writes: > On Tue, 15 Aug 2000, Michael Peppler wrote: > > > Matt Sergeant writes: > > > On Tue, 15 Aug 2000, Vladislav Safronov wrote: > > > > > > > Ok. I think, the answers clear the problem, but I have yet more question. > > > > > > > > What can you say about this c

RE: Question about $sth->finish;

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Michael Peppler wrote: > Matt Sergeant writes: > > On Tue, 15 Aug 2000, Vladislav Safronov wrote: > > > > > Ok. I think, the answers clear the problem, but I have yet more question. > > > > > > What can you say about this code? is it ok (overwriting previous handle)? >

RE: Question about $sth->finish;

2000-08-15 Thread Michael Peppler
Matt Sergeant writes: > On Tue, 15 Aug 2000, Vladislav Safronov wrote: > > > Ok. I think, the answers clear the problem, but I have yet more question. > > > > What can you say about this code? is it ok (overwriting previous handle)? > > [snip] > > Well it depends on the DBMS. For exam

Re: Question about $sth->finish;

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Keith G. Murphy wrote: > (Boggle) Really? 'My' variables going out of scope don't always get > freed up? Or is this strictly an object thing with DESTROY? Well why would you care if my $str = "hello world" didn't get freed via this bug? It only matters for objects that do

Re: Question about $sth->finish;

2000-08-15 Thread Keith G. Murphy
Matt Sergeant wrote: > > 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->execut

RE: Question about $sth->finish;

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Vladislav Safronov wrote: > Ok. I think, the answers clear the problem, but I have yet more question. > > What can you say about this code? is it ok (overwriting previous handle)? [snip] Well it depends on the DBMS. For example Sybase might not like it if you haven't read

RE: env in background process

2000-08-15 Thread Niraj Sheth
Follow up on this. script1.pl(set FOO1 env) === #!/usr/local/bin/perl print "Content-type: text/html\n\n"; print "PID = $$\n"; print "SCRIPT1 with FOO1\n"; #local %ENV = %ENV; $ENV{FOO1} = "foo1"; print map { "$_ = $ENV{$_}\n"; } sort keys %ENV; $command = "dump_env"; print `$command &`;

RE: Question about $sth->finish;

2000-08-15 Thread Vladislav Safronov
Ok. I think, the answers clear the problem, but I have yet more question. 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);

Tainted @INC

2000-08-15 Thread Dave Jenkins
Hi, I'd appreciate some help with a nasty little intermittent problem. I'm running... Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.9 OpenSSL/0.9.4 on a SuSE 6.2 box (2.2.10 kernel) Mostly everything is fine, but now and then the following error appears. When it does, it occurs every few reques

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

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 5

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; > >

RE: Bug in Apache::ASP XMLSubs when an argument includes '>'-characte rs?

2000-08-15 Thread Matt Sergeant
On Tue, 15 Aug 2000, Henrik Tougaard wrote: > > XML attributes can't contain "<" or "&" characters, or the > > same quote that > > they are surrounded by. The following are the encodings you can use > > (and XMLSubsMatch needs to unravel): > > > > < => "<" > > > => ">" > > & => "&" > >

RE: Bug in Apache::ASP XMLSubs when an argument includes '>'-characte rs?

2000-08-15 Thread Henrik Tougaard
> From: Matt Sergeant [mailto:[EMAIL PROTECTED]] > On Fri, 11 Aug 2000, Henrik Tougaard wrote: > > With this simple .asp page I get an error: > > > > > > [My XMLSubMatch is set to Fiks:\w+ - the name of the > subroutine doesn't > > matter] > > > > It seems as if the '>' in the '' argumen

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 > s

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 alway

RE: Question about $sth->finish;

2000-08-15 Thread Kenneth Lee
as written in the manpage, this is rarely used, it will be called for you when the handle is going out of scope, but if something is still left in the buffer some warnings will be generated. -Original Message- From: Vladislav Safronov To: [EMAIL PROTECTED] Sent: 8/15/00 7:26 PM Subject:

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

Content negotiation Was: Re: HTML Template Comparison Sheet ETA

2000-08-15 Thread David Hodgkinson
Whilst we're on the subject of templates, would anyone care to comment on how they fit with content-negotiated documents? I'm looking at a document for multiple language using Apache MultiViews. (index.html.es, index.html.jp etc). Does this even work with SSI or Apache::SSI? TIA, Dave -- Dav