Re: print print "Hello" - returns different values when executed from shell and mod-perl

2004-11-18 Thread Stas Bekman
Rathna N wrote: Hi, I'm new to Apache/mod-perl. I hope I'm asking this question in the right forum. When I executed a script having " print print "Hello"; " at shell, it returns "Hello1", but when I executed thru mod-perl it returns "Hello5". CODE SNIPPET: print "Content-type: text/html\n\n"; prin

Re: print rflush sendfile

2004-11-18 Thread Robert Ferney
Paint me purple and color me an idiot, nevermind, I found my problem. thanks yall anyway. On Thu, 18 Nov 2004 20:13:19 -0700, Robert Ferney <[EMAIL PROTECTED]> wrote: > I am experancing the following undesirable behavior. > > My code looks somethign like this.. > > $r->print("Some htmlish bits"

print print "Hello" - returns different values when executed from shell and mod-perl

2004-11-18 Thread Rathna N
Hi, I'm new to Apache/mod-perl. I hope I'm asking this question in the right forum. When I executed a script having " print print "Hello"; " at shell, it returns "Hello1", but when I executed thru mod-perl it returns "Hello5". CODE SNIPPET: print "Content-type: text/html\n\n"; print (print "hell

print rflush sendfile

2004-11-18 Thread Robert Ferney
I am experancing the following undesirable behavior. My code looks somethign like this.. $r->print("Some htmlish bits"); $r->rflush; $r->sendfile("/path/to/somefile"); $r->print("Some more htmlish bits"); $r->rflush; $r->sendfile("/path/to/someotherfile"); which I do twice before I finish the r

Apache::Session delete error

2004-11-18 Thread Bart Simpson
HI. I've been working on this for over a day now. Truth is i don't really understand the nature of the problem. Google give many old results for setgid problems. If some wise perl programmer could help, i'd be much obliged. I'm getting this error when I call tied(%session)->delete. -e: Insecur

Re: PerlRequire script starts two times - how to avoid this

2004-11-18 Thread Perrin Harkins
On Thu, 2004-11-18 at 11:55, John Wittkoski wrote: > The code is _always_ called twice (i.e. when I do a start OR restart) > and $Apache::Server::Starting is always true the first time it's called > but not the second and $Apache::Server::ReStarting is always false. > > That is, when starting th

Re: PerlRequire script starts two times - how to avoid this

2004-11-18 Thread John Wittkoski
Stas Bekman wrote on 11/17/04, 10:34 PM: > Marcin Kosewski wrote: > > Hi Gurus, > > > > I'm using Apache 1.3.33 with mod_perl 1.29. In Apache httpd.conf > file I'm > > loading external perl directives using: > > PerlRequire startup.pl > > > > I've checked, that during apache startup

Re: Internal Server Error on perl.apache.org

2004-11-18 Thread Stas Bekman
Stas Bekman wrote: Arshavir Grigorian wrote: Hello list, I just tried searching for 'path_info' in the 2.0 docs and got an internal server error(500). http://perl.apache.org/search/swish.cgi?query=path_info&sbm=SecI&submit=search The /x1/log/www/error_log says: [Wed Nov 17 15:01:50 2004] [error

Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27

2004-11-18 Thread Stas Bekman
Raphael Ferguson wrote: Thank you much for the quick response. I tried setting the TMPDIR in startup.pl and in httpd.conf to no avail. I was talking about CGI.pm when suggesting to set TMPDIR. The "[libapreq] file upload forbidden" error message is almost certainly coming from ibapreq's apache_requ

Re: [mp2] Usage: Apache::Connection::remote_ip(obj) error

2004-11-18 Thread Tom Schindl
Sean T Allen wrote: Tom... I see a 'AuthenNTLM' patch. but nothing specific to remote ip... which patch am i looking for on that page? Tom Schindl wrote: Uups: http://gossamer-threads.com/lists/modperl/modperl/74104?search_string=Report%20on%20mp2%20accessors%20in%20apache_structures.map;#74104 is

Re: [mp2] Usage: Apache::Connection::remote_ip(obj) error

2004-11-18 Thread Tom Schindl
Sean T Allen wrote: apache 2.0.52 mod_perl 1.99_17 perl 5.8.0 code in question: package ProxyRemoteAddr; use Apache::Const qw(OK); use strict; sub handler { my $r = shift; return OK unless ( $r->connection->remote_ip eq '127.0.0.1' ) && $r->header_in( 'X-Forwarded-For' )

[mp2] Usage: Apache::Connection::remote_ip(obj) error

2004-11-18 Thread Sean T Allen
apache 2.0.52 mod_perl 1.99_17 perl 5.8.0 code in question: package ProxyRemoteAddr; use Apache::Const qw(OK); use strict; sub handler { my $r = shift; return OK unless ( $r->connection->remote_ip eq '127.0.0.1' ) && $r->header_in( 'X-Forwarded-For' ); if ( my ( $ip )