Re: [OT] Redirect w/ Netscape browser causing 'Document contains no data'

2001-08-23 Thread Joshua Chamas
Daniel Little wrote: > > I seem to have a strange problem here with Netscape displaying the error > 'Document contains no data' when I do $Response->Redirect($location). > > I'm using Apache 1.3.19, mod_perl 1.25, Apache::ASP v2.09, but I don't think > it's in Apache::ASP, as the redirect code i

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rodney Broom
From: Perrin Harkins <[EMAIL PROTECTED]> > Database handles are never shared between processes. If you missed this, > you should re-read the Apache::DBI docs. Uh, oh. You're right, I spoke too quickly. And I did it more than once, sorry. With separate processes, everything is new (mostly). In

Re: PerlModule Error

2001-08-23 Thread Ken Williams
[EMAIL PROTECTED] (Rasoul Hajikhani) wrote: >> > "use lib qw(...);". I have tried declaring: >> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same > >Here it is: > >Undefined subroutine &My::Perl::Control::WebAccess::handler called. Looks like you need to check the capitalizati

Re: PerlModule Error

2001-08-23 Thread Stas Bekman
On Thu, 23 Aug 2001, Rasoul Hajikhani wrote: > ___cliff rayman___ wrote: > > > > and what do the error logs say? > > > > Rasoul Hajikhani wrote: > > > > > I know this question will sound primitive to most of you, however, I > > > have this nagging error which won't go away. > > > In my httpsd.con

[OT] Redirect w/ Netscape browser causing 'Document contains no data'

2001-08-23 Thread Daniel Little
I seem to have a strange problem here with Netscape displaying the error 'Document contains no data' when I do $Response->Redirect($location). I'm using Apache 1.3.19, mod_perl 1.25, Apache::ASP v2.09, but I don't think it's in Apache::ASP, as the redirect code in there looks pretty much the sam

Re: getting a normal html-page

2001-08-23 Thread ___cliff rayman___
mac osX might also have the following mac like command: lsof -nPi TCP | grep httpd | less this should list something like: httpd27212 root 16u IPv4 2043928 TCP *:80 (LISTEN) httpd27213 root 16u IPv4 2043928 TCP *:80 (LISTEN) httpd27214 root 16u IPv4 2043928

Re: getting a normal html-page

2001-08-23 Thread alastair
On Fri, Aug 24, 2001 at 01:12:09AM +0200, allan wrote: > how come i cant even get a straigt html-page? So what port is apache listening on then? Are you sure it's port 80? Check httpd.conf. Cheers, -- Alastair| [EMAIL PROTECTED] | http://www.calliope.demon.co

Re: getting a normal html-page

2001-08-23 Thread ___cliff rayman___
two things: try ps auxww|less do you see a few httpd processes? then, try getting the page with the name of the server: http://www.domain.com/ or with the ip address of the server. perhaps the server is not listening at lo. i have never played with mac osX. allan wrote: > i have finally in

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Perrin Harkins
>> Apache::DBI doesn't have a problem with transactions. > > Ah, OK. What about when a shared connection is rolled back in one process, > will it effect other running processes with the same handle? Database handles are never shared between processes. If you missed this, you should re-read the A

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rodney Broom
From: Perrin Harkins <[EMAIL PROTECTED]> > Apache::DBI doesn't have a problem with transactions. Ah, OK. What about when a shared connection is rolled back in one process, will it effect other running processes with the same handle? --- Rodney Broom Programmer: Desert.Net

getting a normal html-page

2001-08-23 Thread allan
i have finally installed mod_perl (on mac osX) i can telnet to the sever and the error_log says: [Fri Aug 24 00:53:40 2001] [notice] Apache/1.3.20 (Darwin) mod_perl/1.25 configured -- resuming normal operations so im quite sure im pretty close ... my first major problem now is that i get a norm

RE: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Geoffrey Young
> >BT> By using the magic 6th arg ($connect_meth in the DBI::connect >source) to >BT> DBI::connect. In my DB wrapper I have a connect method that >internally calls > >Duh... the source! What a concept ;-) it's actually even documented (from DBI 1.18+ IIRC :) The "dbi_connect_method" attribute c

Re: PerlModule Error

2001-08-23 Thread Rasoul Hajikhani
___cliff rayman___ wrote: > > and what do the error logs say? > > Rasoul Hajikhani wrote: > > > I know this question will sound primitive to most of you, however, I > > have this nagging error which won't go away. > > In my httpsd.conf, I have declared "PerlModule > > MY::Perl::Control::WebAcce

Re: PerlModule Error

2001-08-23 Thread ___cliff rayman___
and what do the error logs say? Rasoul Hajikhani wrote: > I know this question will sound primitive to most of you, however, I > have this nagging error which won't go away. > In my httpsd.conf, I have declared "PerlModule > MY::Perl::Control::WebAccess" which I know is where it is supposed to >

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Tim Bunce
On Thu, Aug 23, 2001 at 11:19:22AM -0700, Kyle Oppenheim wrote: > 3. Apache::DBI intercepts the connect(), looks in it's hash and sees that it > already has a connection. It pings the handle, fails, and deletes the entry > from the hash. That's the last refcount on the dbh, so DESTROY gets call

PerlModule Error

2001-08-23 Thread Rasoul Hajikhani
I know this question will sound primitive to most of you, however, I have this nagging error which won't go away. In my httpsd.conf, I have declared "PerlModule MY::Perl::Control::WebAccess" which I know is where it is supposed to be. My @INC does not include the path to that directory, however,

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Perrin Harkins
> Nope, you've got it. If you don't have transactions (anything else?) to worry about, I'd say to use > Apache::DBI. Apache::DBI doesn't have a problem with transactions. If you're doing strange things like changing isolation levels on particular requests you can get into trouble, but that's an

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Benjamin Trott
>>> PH> Don't open a connection during startup. >>> PH> Open a connection in the child process instead. >> > BT > I will second this. I've done this (unintentionally) when using MySQL, > and > BT > you get a lot of weird errors about statement handles being active, etc. > > I haven't read the en

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Vivek Khera
> "BT" == Benjamin Trott <[EMAIL PROTECTED]> writes: >> that all clients also use? That is, how can I force Apache::DBI to >> close that handle prior to the forking of children? BT> By using the magic 6th arg ($connect_meth in the DBI::connect source) to BT> DBI::connect. In my DB wrapper I

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread darren chamberlain
Rodney Broom <[EMAIL PROTECTED]> said something to this effect on 08/23/2001: > From: Rasoul Hajikhani <[EMAIL PROTECTED]> > > I am sorry but this topic is confusing me... Are you saying that > > persistent DB connection objects are bad? > > It sounds like that, doesn't it? This is only when one

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rodney Broom
From: Benjamin Trott <[EMAIL PROTECTED]> > > PH> Don't open a connection during startup. > > PH> Open a connection in the child process instead. > BT > I will second this. I've done this (unintentionally) when using MySQL, and BT > you get a lot of weird errors about statement handles being act

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rasoul Hajikhani
Benjamin Trott wrote: > > > PH> Don't open a connection during startup. If you do, it will be shared when > > PH> Apache forks, and sharing a database handle is bad for the same reasons > > PH> sharig a file handle is. Open a connection in the child process instead. > > I will second this. I'v

[PING] Testing new list memborship, please ignore

2001-08-23 Thread Rodney Broom
Thank you. --- Rodney Broom Programmer: Desert.Net

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Benjamin Trott
> PH> Don't open a connection during startup. If you do, it will be shared when > PH> Apache forks, and sharing a database handle is bad for the same reasons > PH> sharig a file handle is. Open a connection in the child process instead. I will second this. I've done this (unintentionally) when

RE: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Kyle Oppenheim
We've seen this happen before. Unfortunately, I don't have a fix for you but I here's where we left off our chase... 1. ORA-03113: end-of-file on communication channel (for unknown reason, maybe a network blip?) 2. We have some code that will catch this error and call DBI->connect again. 3. Ap

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Ken Williams
[EMAIL PROTECTED] (Vivek Khera) wrote: >> "PH" == Perrin Harkins <[EMAIL PROTECTED]> writes: >PH> Don't open a connection during startup. If you do, it will be shared when >PH> Apache forks, and sharing a database handle is bad for the same reasons >PH> sharig a file handle is. Open a connec

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Vivek Khera
> "PH" == Perrin Harkins <[EMAIL PROTECTED]> writes: PH> Don't open a connection during startup. If you do, it will be shared when PH> Apache forks, and sharing a database handle is bad for the same reasons PH> sharig a file handle is. Open a connection in the child process instead. Speaki

RE: Trouble with LWP::UserAgent respons header.

2001-08-23 Thread Geoffrey Young
> -Original Message- > From: Erik Andersson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 11:28 AM > To: [EMAIL PROTECTED] > Subject: Trouble with LWP::UserAgent respons header. > [snip] > > This confuses me a lot. I really want to access every > available data in the

Trouble with LWP::UserAgent respons header.

2001-08-23 Thread Erik Andersson
I am new to the LWP::UserAgent module and also in fact to object programming. I am currently writing a simple HTTP client. I am using the LWP::UserAgent module and everything works fine apart from that I do not manage to access the headers of the respons message: The page I access include a re

Re: embedding perl code to html

2001-08-23 Thread David Young
http://perl.apache.org/features/tmpl-cmp.html - Original Message - From: "Mike V. Andreev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 11:28 AM Subject: embedding perl code to html > > Hi! > > I have a tree of static html files and perl cgi-scripts. But s

embedding perl code to html

2001-08-23 Thread Mike V. Andreev
Hi! I have a tree of static html files and perl cgi-scripts. But sometimes I want to include some simple functionality in html-file. The best solution, I think, is including perl code to html file. I found several tools on the Net. The best i liked is Embperl (http://perl.apache.org/embperl/) &

emboerl && mod_perl && apache compile

2001-08-23 Thread Jaak
Hi, I have a compile error while compiling embperl & mod_perl. On several machines I have succeeded, but on that machine not :-( Maybe You can help me... I added error messages: [Wed Aug 22 18:09:53 2001] [error] Can't locate loadable object for module Apache::Constants in @INC (@INC co

Re: Subroutine xxxx redefined

2001-08-23 Thread Stas Bekman
On Thu, 23 Aug 2001, Jeremy Howard wrote: > Stas Bekman wrote: > > On Thu, 23 Aug 2001, Jeremy Howard wrote: > > > > > Stas Bekman wrote: > > > > Something forces the reload of your files. I'd suggest putting > something > > > > like: > > > > > > > > use Carp; > > > > cluck("I was loaded"); > > >

Re: Re: Do virtual hosts need their own servers?

2001-08-23 Thread Stas Bekman
On Tue, 21 Aug 2001, Andy Turner wrote: > On Tue, Aug 21, 2001 at 01:17:05PM +0800, Stas Bekman wrote: > > > Ahh, I was assuming a DBI handle lexically scoped to the handler subroutine, > > > sorry about the confusion. > > > > it can be lexically scoped, but it doesn't prevent you from reading fr