Re: Question about mod_perl startup script

2003-08-14 Thread Thomas Klausner
Hi! On Wed, Aug 13, 2003 at 09:28:37AM -0700, Wes Plate wrote: > I am getting up and running a server that wants mod_perl. The instructions > talks about a startup script. I'm very new, so I don't know how I'm > supposed to get this step completed. See here for some infos on startup.pl; http:

Re: [QUESTION] Can't read out verified username (auth)

2003-07-23 Thread Martin Wickman
On Wed, Jul 23, 2003 at 02:37:30PM +0200, Fatih Gey wrote: > From: "Martin Wickman" <[EMAIL PROTECTED]> [...] > > Nope. When the browser gets a 401 response from the server, it > > will (most likely) pop up a dialog asking the user for name and > > password. These credentials gets mangled into an

Re: [QUESTION] Can't read out verified username (auth)

2003-07-23 Thread Fatih Gey
- Original Message - From: "Martin Wickman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 21, 2003 4:41 PM Subject: Re: [QUESTION] Can't read out verified username (auth) > On Mon, Jul 21, 2003 at 12:36:55PM +0200, Fatih Gey wrote: >

Re: Question to mod_perl gurus. Take 1 minute. Just choose rightanswer from list!

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 07:31, Влад Сафронов wrote: > so the question: > which sub "main_deck" will be executed? > > 1. Hi, it's SCRIPT_1! > 2. Bye, it was SCRIPT_2! I think #2, because it was the last one eval'ed, and you can only have one sub with a given name in one package namespace. Apache::e

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 12:36:55PM +0200, Fatih Gey wrote: > > On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: > > > > > > i was writing my own AuthHandler with modperl v2 (v1.99_09). > > > > [...] > > > > > After having entered user/pass via html-form, this authentification > > > doe

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Thomas Klausner
Hi! On Mon, Jul 21, 2003 at 12:36:55 +0200, Fatih Gey wrote: > I supposed the browser to resend always an unique "bowser session id", which > is used by apache to save certain values, like $ENV{'REMOTE_USER'} > (similiar to a session-cookie with uid and serverbased $vars) .. > Isn't this the way

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Fatih Gey
> On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: > > > > i was writing my own AuthHandler with modperl v2 (v1.99_09). > > [...] > > > After having entered user/pass via html-form, this authentification > > does his job well, but on the following request (on same browser) > > $obj->us

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: > > i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] > After having entered user/pass via html-form, this authentification > does his job well, but on the following request (on same browser) > $obj->user doesnt seem to

Re: Question about Apache::Request and query strings

2003-07-14 Thread Stas Bekman
Tom Gazzini wrote: I have a perl function which, amongst other things, needs to redirect the request to another page. It also needs to pass all the query parameters of the original request (both GET and POST) to the redirected page, and also add one parameter of it's own (an error message). Sounds

Re: Question about Apache::Request and query strings

2003-06-26 Thread Swen Schillig
Tom Where's @params coming from ? Are you sure it's not empty ? Swen |-+> | | "Tom Gazzini"| | | <[EMAIL PROTECTED]| | | uk> | | || | |

Re: [Question] Handler executing twice!?!

2003-03-31 Thread Vince Veselosky
AHA! That's the culprit! mod_dir implements this at the fix-up stage to allow the directive in .htaccess files, hence my confusion. Thank you Stas! It all makes sense now. -Vince Stas Bekman wrote: Vince Veselosky wrote: [...] The thing that triggered it was the fact that the url was an "inde

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Stas Bekman
Vince Veselosky wrote: [...] The thing that triggered it was the fact that the url was an "index.pl" file. When called as "example.com/index.pl", everything worked as expected, but when called as "example.com/", apache (or something) generated a subrequest for index.pl. NOW my question is, why

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Vince Veselosky
Whew, okay, I have an answer, but I also still have a question. The short explanation: The "bug" in my code was the fact that I forgot that a request might also be a subrequest, so now I check if the request is_initial_req and short circuit if not. (And a tiny bug in my trace code caused my deb

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Stas Bekman
Vince Veselosky wrote: [...] Now here is the thing. The PerlHeaderParserHandler executes TWICE for every request. The second time through is apparently a different Apache Could it be that something in your code pushes the handler on the stack again? I'd suggest debugging with Apache::ShowReque

Re: [Question] Prototype Mismatch for Base64 under RunPerl

2003-02-17 Thread Stas Bekman
[EMAIL PROTECTED] wrote: OS: Windows2000 Apache: 1.3.27 ModPerl: 1.27_01-dev I have a script that ran perfectly well when not run under ModPerl but have recently tried to run it under modperl using the RunPerl module. It still seems to run OK, however my error log now seems to being filled wi

Re: Question from a newbie regarding apache and mod_perl

2003-01-06 Thread Ken Y. Clark
On Mon, 6 Jan 2003, sireesha vudatha wrote: > Date: Mon, 6 Jan 2003 16:25:04 -0800 (PST) > From: sireesha vudatha <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Question from a newbie regarding apache and mod_perl > > > Hi all, > > I am a beginner and am doing a course project for which I

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-03 Thread Terra Info
That was it. I redefined Sig{__WARN__} to drop all STDERR output and my script output everything it was supposed to and exited cleanly. Now there is another bug that undoubtedly came from my trying to track down the original issue... Thanks. That saved me a ton of time. Tom Terra Info wrote: U

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Terra Info
Ugh! I checked the users list archives but I never checked the dev archives. I liked p5p back in the day because it was all one in the same. Chaos, but oddly efficient. Thanks for the pointer. As for the docs, I freely admit I missed it. I was not looking for PerlRun stuff when I went through th

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Stas Bekman
OK, now it's clear, thanks for the explanation. FWIW, there were discussions of possible pipes read/write deadlocks in the current mod_cgi implementation in Apache 2.0, so you may experience just that. Check the httpd-dev list archives. [...] * Given that, I noticed PerlRun was no longer pro

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Terra Info
Stas Bekman wrote: I still don't understand you. When do you see the problem? When you run the script under mod_cgi or mod_perl? I don't understand why do you keep referring to mod_cgi. And we are talking about Apache/mod_perl 2.0 here, right? No. I am talking about mod_cgi when I say mod_cgi.

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Stas Bekman
Terra Info wrote: The threads issue is my bag. I know better but was busy and distracted, hence I just did a reply to all and trimmed out the excess. No prob. the comment was addressed to all subscribers. Anyhow, I think you may have misunderstood my question. Although I have a specific issu

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Terra Info
The threads issue is my bag. I know better but was busy and distracted, hence I just did a reply to all and trimmed out the excess. Anyhow, I think you may have misunderstood my question. Although I have a specific issue at hand, my question was more generic. My questions are more related to th

Re: Question on possible effects of mod_perl on mod_cgi

2003-01-02 Thread Stas Bekman
[When starting a new thread, please remember to create a new mail, rather than doing a reply to one of the threads. If you don't do that, your mail software attaches reference ids to the original thread and your post gets folded into the thread you've replied to. people may delete the whole thr

Re: question about using a proxy with mod_perl

2002-10-18 Thread Lyle Brooks
I believe that the Rewrite rule matches only the document root portion of the URL. So for a request http://a.blah.com/mypath/mypage.html All you will get to match on is this much /mypath/mypage.html To do what you are trying to do, I believe you'll need to use some Rewri

Re: question about using a proxy with mod_perl

2002-10-18 Thread Charlie Garrison
Good afternoon, On 17/10/02 at 2:46 PM, Lyle Brooks <[EMAIL PROTECTED]> wrote: >To do what you are trying to do, I believe you'll need to use some RewriteCond >directives, something like (read: I'm just doing this from memory, you'll >need to test)... > >RewriteCond %{HTTP_HOST} ^b >RewriteRule ^

Re: QUESTION - Apache::AuthenCache

2002-07-08 Thread darren chamberlain
* JOSE SOLE <[EMAIL PROTECTED]> [2002-07-08 14:24]: > I am trying to use Apache::AuthenCache as my authentication handler > for my server. I keep getting a FORBIDDEN error each time I try to > access the index.html page by only typing the URL up to the directory. > > Example: > > //FORBIDDEN ER

Re: Question about Work Wanted ads

2002-06-21 Thread Ask Bjoern Hansen
On Wed, 19 Jun 2002, southernstar wrote: > I was aware that on occasion individuals are welcome to post work > wanted ads, but I have some specific questions about how I can > actually get some short contract work here and there, since: [...] Get involved with some of the open source projects; t

Re: [OT] RE: Question about Work Wanted ads

2002-06-20 Thread wsheldah
arc Spitzer'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc:(bcc: Wesley Sheldahl/Lex/Lexmark) Subject: [OT] RE: Question about Work Wanted ads Marc Spitzer [mailto:[EMAIL PROTECTED]] wrote: > 3: you maybe able to deduct your volunteer work from your > taxes( I have no ide

[OT] RE: Question about Work Wanted ads

2002-06-20 Thread David Harris
Marc Spitzer [mailto:[EMAIL PROTECTED]] wrote: > 3: you maybe able to deduct your volunteer work from your > taxes( I have no idea about AU's laws though). You can not claim donated services as a tax deduction in the US. (Probably not other places too, I'd guess.) The theory is this: you'd have

Re: Question about Work Wanted ads

2002-06-20 Thread Marc Spitzer
Well if you have some time available, do some volunteer work to build up your resume. This helps you in at least 2 ways: 1: you get experience 2: your "happy clients" may know people who want to be "happy clients" and have a budget. 3: you maybe able to deduct your volunteer work from your taxes(

Re: question on apache::asp

2002-05-05 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: > > So can I use this module to run asp.net on apache(installed on windows)? > > I need to run asp.net on apache(windows). > No. Apache::ASP supports perl scripting for ASP v2.0 model. ASP.net is not supported, nor C#, VBScript, etc. -- Josh _

Re: [QUESTION][BUG] apache dies with SIGSEGV

2002-02-26 Thread Mark P. Fister
On Tue, Feb 26, 2002 at 11:36:39AM +0100, gaston wrote: > Hi list > > I wrote a small perl module using perl/Expat for parsing XML-files. > With apache 1.3.19 and perl 5.6.0 and Expat 2.27 it works fine. > In my new configuration (apache 1.3.20, perl 5.6.1 and Expat 2.30) > apache dies with an

Re: Question...

2002-02-14 Thread Rodney Hampton
o re-login only if they've closed that browser > > instance. > > > > Is there someway to expire cookies on page leave, or is this the smartass > > thing you were referring to? :) > > > > -- Ryan Parr > > > > - Original Message - > > Fro

Re: Question...

2002-02-13 Thread Steve Piner
- Original Message - > From: "Jon Robison" <[EMAIL PROTECTED]> > To: "Ron Beck" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, February 12, 2002 12:28 PM > Subject: Re: Question... > > > Cookies! > > > >

Re: Question...

2002-02-13 Thread Jon Robison
t; From: "Jon Robison" <[EMAIL PROTECTED]> > To: "Ron Beck" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, February 12, 2002 12:28 PM > Subject: Re: Question... > > > Cookies! > > > > /me is in smartass mode toda

RE: Question...

2002-02-13 Thread Burak Gürsoy
; Ron Beck Cc: [EMAIL PROTECTED] Subject: Re: Question... I think I'm missing something... If you set a session cookie (i.e. one with no expiry time) then the cookie will be deleted immediately upon browser close, forcing the user to login again if they've closed their browser instance. If

Re: Question...

2002-02-13 Thread Ryan Parr
;[EMAIL PROTECTED]> To: "Ron Beck" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 12:28 PM Subject: Re: Question... > Cookies! > > /me is in smartass mode today. > > --Jon > > Ron Beck wrote: > > > > Hello a

Re: Question...

2002-02-12 Thread Jon Robison
Cookies! /me is in smartass mode today. --Jon Ron Beck wrote: > > Hello all, > I need to know how to clear the $ENV variables. For example, I use a > .htaccess file for specific directories which requires the user to enter > userID and password. When they exit the page, I want them to have t

Re: Question...

2002-02-12 Thread Uwe Voelker
> I need to know how to clear the $ENV variables. For example, I use a > .htaccess file for specific directories which requires the user to enter > userID and password. When they exit the page, I want them to have to > re-enter userID and passwd if they enter the page again. Does anyone > know

Re: QUESTION

2002-02-06 Thread Tim Tompkins
if ($redirect = $shortnames->get($fname, WAIT, 1)) { if ($redirect !~ /$r->server()->server_hostname/) { $r->content_type('text/html'); $r->header_out ( Location => $redirect ); $log->debug($redirect); $r->send_http_header; return REDIRECT; } Regards, Ti

RE: [QUESTION]PerlHandler and PerlLogHandler Phase

2002-02-01 Thread Mod Perl
Thanks Rob for your reply. --- Rob Bloodgood <[EMAIL PROTECTED]> wrote: Question: > > 2.If the answer to the above question is YES? The > > Handler will add headers,footers for everything. > >What do I need to do to apply the handler logic > >justto the requested page and return the remaining >

Re: [QUESTION]PerlHandler and PerlLogHandler Phase

2002-02-01 Thread Mod Perl
Thanks Thomas, Question: > > Here are the problems/Questions that I face: > > 1. Since in this case each requests for a html > >file has multiple files that need to be downloaded > > the client. Am I right to assume that the handler > >will act on each and every file requested file > >below my /

RE: [QUESTION]PerlHandler and PerlLogHandler Phase

2002-02-01 Thread Rob Bloodgood
> 2.If the answer to the above question is YES? The > Handler will add headers,footers for everything. What > do I need to do to apply the handler logic just to the > requested page and return the remaining files that are > needed to complete the requested page as they are? In the Eagle book (as

Re: [QUESTION]PerlHandler and PerlLogHandler Phase

2002-02-01 Thread Thomas Klausner
Hi! On Fri, Feb 01, 2002 at 10:24:24AM -0800, Mod Perl wrote: > Here are the problems/Questions that I face: > 1. Since in this case each requests for a html file > has multiple files that need to be downloaded by the > client. Am I right to assume that the handler will act > on each and every fi

Re: QUESTION: how to debug segfault apache1.3.22/mod_perl1.26/HTML::Mason

2002-01-21 Thread Ged Haywood
Hi there, On Wed, 16 Jan 2002, Chris Hutchinson wrote: > I've recently built apache 1.3.22/mod_perl 1.26, statically with perl > 5.6.1 on linux RH 7.0. > [snip] > ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.0)', At the risk of sounding like a broken record, have you tried com

Re: question on installing mod_perl to activePerl on win98

2001-06-25 Thread Randy Kobes
On Mon, 25 Jun 2001, ychen56 wrote: > Thanks, I have installed mod_perl successfully by setting the repository to > http://theoryx5.uwinnipeg.ca/ppmpackages/. > I have one more question. The version of mod_perl is 1.25 which is written > for apache 1.3.20, my apache version is 1.3.14, > I think

Re: question on installing mod_perl to activePerl on win98

2001-06-25 Thread ychen56
apachemodperl.dll, right? What else I need to do? Or I have to use apache 1.3.20 instead of 1.3.14? Best Regards Ye - Original Message - From: Randy Kobes <[EMAIL PROTECTED]> To: ychen56 <[EMAIL PROTECTED]> Cc: Mod Perl List <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 4

Re: question on installing mod_perl to activePerl on win98

2001-06-25 Thread Randy Kobes
On Mon, 25 Jun 2001, ychen56 wrote: > Hi: > >From your website http://perl.apache.org/distributions.html, I got > message( see following) > > Win32 ActivePerl mod_perl ppms - suitable for builds 6xx. You can install > this by, within the ppm shell, setting the repository to > http://theoryx5.uwin

Re: Question and problem with graphics and Apache:ASP running.

2001-04-06 Thread Joshua Chamas
Steve Hurley wrote: > > When I turn on Apache:ASP and try to load a few html files it messes up the graphics >at the top. > > Now if I turn off the ASP, graphics load fine... > Page with banner graphics split up: http://www.clark.cc.oh.us/asp/student.html > page with one banner graphic...

Re: Question

2000-11-22 Thread Les Mikesell
proxy. Les Mikesell [EMAIL PROTECTED] - Original Message - From: "Peiper,Richard" <[EMAIL PROTECTED]> To: "'Jonathan Tweed'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 22, 2000 8:20 AM Subject: RE: Question > >

RE: Question

2000-11-22 Thread Peiper,Richard
How could they not? Since the files are executable by any process, then all processes must have the mod_perl code in it. You could if you really wanted to run 2 versions of Apache, one with mod_perl and one without. You could then call all CGI's through a different IP and then run mod_per

Re: Question

2000-11-22 Thread Matthew Byng-Maddick
On Wed, 22 Nov 2000, Jonathan Tweed wrote: > I would be grateful if someone could answer this question: > Even if you tell Apache only to execute files in a certain directory under > mod_perl do all processes still include the mod_perl code? If I understand your question correctly, yes. MBM --

Re: question on DBIx::Recordset PrevNextForm

2000-11-13 Thread Gerald Richter
> Is there any way to hide the form data that the DBIx::Recordset > PrevNextForm function generates? i just noticed that if someone does a > "view source," the user can view your db connection, username, password, > etc. That doesn't seem very secure even though this is a pretty cool > subroutin

Re: Question on Apache::Compress

2000-10-02 Thread kevin montuori
>>> Ben Cottrell writes: bc> This fixes static html completely! It's compressed, and also bc> comes through as text/html. Thanks very much!! no problem. i've been doing a lot of this myself lately. bc> perl scripts are still coming through as compressed (which is bc> good) tex

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

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 op

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, > > a

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 id

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 PerlSe

Re: question: using Apache for non-HTML messages

2000-09-25 Thread David Alan Pisoni
Really all you need to do is send your response back like you would any response, just without the HTML formatting. If you wanted to be a bit more "correct", you could change the content-type of the respose so that it is not 'text/html'. (In your case, you might just make one up like 'applica

Re: question: using Apache for non-HTML messages

2000-09-25 Thread B. Burke
Here is an example of what I'm looking to do. GET /perl/app.pl?MODE=search&CITY=Dallas&STATE=TX&ID=195302 HTTP/1.0 Accept: text/html User-Agent: MyTestClient1.0 From: nowhere.com I want to replace the HTML request above with something like this: |MODE=search|CITY=Dallas|STATE=TX|ID=195302| I

Re: question: using Apache for non-HTML messages

2000-09-25 Thread Matt Sergeant
On Mon, 25 Sep 2000, B. Burke wrote: > > I'm using Apache/1.3.11 with mod_perl/1.22 on an AIX platform to serve > as an application server, with persistent ties into a MySQL database. > > My company is using an in-house socket API for data transfers. The > request messages in our API are somew

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 on installation and location of httd.conf file.

2000-09-12 Thread Joshua Chamas
What Victor said is right. In general, you need to know how to run your OS, and admin apache to set up mod_perl + Apache::ASP. Using this environment requires a bit of a learning curve on the various underlying technologies. That said, I don't know if you will be able to run your Hyperseek pr

Re: Question on installation and location of httd.conf file.

2000-09-12 Thread Victor Michael D. Blancas
Mike On Tue, 12 Sep 2000, Jason wrote: > 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 t

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 t

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: 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 Fre

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 Matt Sergeant
On Mon, 11 Sep 2000, Stas Bekman wrote: > On Mon, 11 Sep 2000, Matt Sergeant wrote: > > > 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 > > > > >

Re: Question

2000-09-11 Thread Stas Bekman
On Mon, 11 Sep 2000, Matt Sergeant wrote: > 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

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 ke

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

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 check

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: 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 conark
>Hmmm. How busy is the site or is still in testing phase? Testing phase. >Are you saying your connection is getting dropped and then you get an error,or that you get dropped and then it has to reconnect? Here's a sample of errors that I'm getting the error_log file: [Tue Aug 29 20:15:52 2000

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 Arti

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

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

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 Ap

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

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

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

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

  1   2   >