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: On Mon, Jul 21, 2003 at 01:05:58AM +0200

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] 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-user doesnt seem

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 Basic

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 does his job well, but

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::ePerl does not

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

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

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

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 does

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

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

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:

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

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

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

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

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

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

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

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 ERROR

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;

[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: [OT] RE: Question about Work Wanted ads

2002-06-20 Thread wsheldah
], [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 idea about AU's laws though). You can not claim donated services

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
thing you were referring to? :) -- Ryan Parr - 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! /me is in smartass mode today

Re: Question...

2002-02-13 Thread Ryan Parr
[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 all, I need to know how to clear the $ENV variables. For example, I use a .htaccess file for specific

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 you don't

Re: Question...

2002-02-13 Thread Jon Robison
: Tuesday, February 12, 2002 12:28 PM Subject: Re: Question... 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

Re: Question...

2002-02-13 Thread Steve Piner
: [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 all, I need to know how to clear the $ENV variables. For example, I use a .htaccess file for specific directories which

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 how

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 to

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

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 file

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 well

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 /en/course

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

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

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

Re: question on installing mod_perl to activePerl on win98

2001-06-25 Thread ychen56
to 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:35 PM Subject: Re: question

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 I

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

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

Re: Question

2000-11-22 Thread Les Mikesell
. 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 How could they not? Since the files are execu

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

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

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

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

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

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

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 the x-ns1 and x-ns2

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

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

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

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:

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 to

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

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 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 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-execute; $sth-finish;

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

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)? [snip]

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 code? is it ok

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 each

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 $sql2 =

Re: question - can asp be run as cgi???

2000-05-19 Thread Joshua Chamas
Charles Dalsass wrote: Hey dudes, new poster here. I've got a project which the client has said 'no mod perl' but only cgi and perl. They've got a really powerful machine, but are 'afraid' of using mod_perl (because of memory issues, administration etc). Performance should not be an

Re: Question about SendFile.pm from Eagle book

2000-02-12 Thread Frank Wiles
On Sat, 12 Feb 2000 [EMAIL PROTECTED] wrote: As a beginner in Mod_perl, I have to get the file from the remote host (Mod_perl enabled Apache) if not in the local host, so I am currently modifying SendFile.pm in Eagle book at unless(-e $r-finfo) { ... instead of giving the

Re: Question about error log message and PERL_SSI

2000-02-06 Thread Stas Bekman
I successfully installed mod_perl under Apache/1.3.6 (Unix). However, when attempting to run some Web pages I have that use #perl sub I get an error log message, "unknown directive 'perl' in parsed doc." I installed mod_perl right from CPAN and assumed that mean EVERYTHING=1 would be the

Re: Question about error log message and PERL_SSI

2000-02-06 Thread gnielson
Replies below: On Sun, 6 Feb 2000, Stas Bekman wrote: Date: Sun, 6 Feb 2000 23:20:49 +0200 (IST) From: Stas Bekman [EMAIL PROTECTED] To: gnielson [EMAIL PROTECTED] Cc: "ModPerl Mailing List (E-mail)" [EMAIL PROTECTED] Subject: Re: Question about error log message and PERL

Re: correction! Re: Question about error log message and PERL_SSI

2000-02-06 Thread Ask Bjoern Hansen
On Sun, 6 Feb 2000, Stas Bekman wrote: [...] EVERYTHING=1 should install PerlSSI as well. Configure perl-status to work (see 'perldoc Apache::Status') then do: http://localhost/perl-status?hooks to check the enabled hooks. Thanks for that information. That showed me that

Re: correction! Re: Question about error log message and PERL_SSI

2000-02-06 Thread Stas Bekman
correction! Re: Question about error log message and PERL_SSI Ooops, I was wrong, you need to use ALL_HOOKS=1 to enable all handlers or just PERL_SSI=1 for PerlSSI. (I thought EVERYTHING=1 installs it all :) So I guess I need to rebuild it manually, eh, with ALL_HOOKS=1?

Re: question, blessing objects, modifying them

2000-01-27 Thread Jeff Beard
Check out "perldoc perltoot" under Class interface. Cheers, Jeff At 01:43 PM 1/27/00 -0800, Etienne Pelaprat wrote: hi all, i'm starting out doing some Object Oriented programming with mod_perl and I define one object like this: sub new { my $self = shift; my $type =

Re: question, blessing objects, modifying them

2000-01-27 Thread Stas Bekman
Etienne, We all love the OO hype letters, but first it's the offtopic question, second it's the FAQ question. You can hunt for luck at the perl newsgroup or other perl generic list. But save your time and frustration -- read some books, for example 'Object Oriented Perl' by Domian and 'Perl

  1   2   >