Re: Getting/storing big text

1999-12-13 Thread Gidon Wise
[EMAIL PROTECTED] wrote: Hi, Can folks please tell me what's the best way to pass large-ish amounts of data between invocations of a CGI script. If you have HUGE amounts of data which is way more than 3K, then See CGI.pm and multipart/form-data. For a big form, just make sure you use

ANNOUNCE: Apache::VMonitor - 0.04

1999-12-13 Thread Stas Bekman
The uploaded file Apache-VMonitor-0.04.tar.gz has entered CPAN as file: $CPAN/authors/id/S/ST/STAS/Apache-VMonitor-0.04.tar.gz size: 16216 bytes md5: b72d8b7a1ba30da7601d26bfca657760 Please allow a few hours before trying to get it if using mirrors (6 hours?) BTW, Solaris fans,

Re: Getting/storing big text

1999-12-13 Thread Anthony Gardner
read the man pages for CGI.pm. There's some good advice about receiving lots of data which should hold you in good stead. From: Gidon Wise [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Getting/storing big text Date: Tue, 14 Dec 1999 04:13:37 -0500 [EMAIL PROTECTED] wrote: Hi,

Embperl, input type=image, and binary output

1999-12-13 Thread Pierre Etchemaite
Hello all, 2 Questions about Embperl (If it's not the right place to do so, please tell me; I didn't find anything more specifically related to Embperl...) First, it seems Embperl doesn't know about input type=image ... fields in forms; Browsers that find them generate "x" and "y"

RE: Embperl, input type=image, and binary output

1999-12-13 Thread Gerald Richter
Hello all, 2 Questions about Embperl (If it's not the right place to do so, please tell me; I didn't find anything more specifically related to Embperl...) the place is ok. First, it seems Embperl doesn't know about input type=image ... fields in forms; Browsers that find them

Embperl and fields delimiter

1999-12-13 Thread Jean-Philippe FAUVELLE
Actually, the sequence used as delimiter for CGI fields is "\t". I think this is not the best choice, cause having a tabulation into a field content is always possible (cut paste, file upload...). Why not allowing the user to choose the more appropriate delimiter, through a ENV var ? #

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-13 Thread Bill Marrs
At 10:14 AM 12/11/99 -0800, Cliff Rayman wrote: Stas Bekman wrote: On Sat, 11 Dec 1999, Bill Marrs wrote: Hi, I've been using mod_perl successfully albeit minimally for a couple months now. I'm trying to tune performance and memory usage by consolidating some common

RE: Embperl and fields delimiter

1999-12-13 Thread Gerald Richter
Actually, the sequence used as delimiter for CGI fields is "\t". I think this is not the best choice, cause having a tabulation into a field content is always possible (cut paste, file upload...). Why not allowing the user to choose the more appropriate delimiter, through a ENV var ? #

apache/mod_perl/dbi - problem

1999-12-13 Thread Volker Hess
Hi, I use to servers with nearly the same configuration: host 1: Embedded Perl version 5.00503 for Apache/1.3.9 (Unix) Debian/GNU AuthPostgreSQL/0.7.1 mod_perl/1.21 process 255, running since Mon Dec 13 10:57:03 1999 completely using debian packages host 2: Embedded Perl

Re: apache/mod_perl/dbi - problem

1999-12-13 Thread Stas Bekman
On Mon, 13 Dec 1999, Volker Hess wrote: Hi, I use to servers with nearly the same configuration: host 1: Embedded Perl version 5.00503 for Apache/1.3.9 (Unix) Debian/GNU AuthPostgreSQL/0.7.1 mod_perl/1.21 process 255, running since Mon Dec 13 10:57:03 1999 completely

Re: apache/mod_perl/dbi - problem

1999-12-13 Thread Volker Hess
Thanx Stas, Doesn't it print the reason for the failure? Is your code looking like: man DBI: $dbh = DBI-connect($data_source, $username, $password) || die $DBI::errstr; I mean, do you use $DBI::errstr? It can be a permission problem, your script is

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-13 Thread Cliff Rayman
are you sure that there are no other webservers currently running and on port 80? do the 'set args' gdb command with at least the -X parameter before executing run. when you start apache and it blows up, is apache using any other command line arguments such as -DSSL? if so, make sure you use

RE: How Embperl sub routine retun value?

1999-12-13 Thread Gerald Richter
Here is the code for Execute [- Execute ({ inputfile = '/mypath/mylibfile.lib', import = 1 }) -] [- TTEST($bb); -] p$bb is [+$bb+]/p and here is the code inside the lib file [$ sub TTEST $] [- $bb = shift; -] [- $aa = 3; -] p$aa is [+$aa+] [- $bb = $aa; -] [$ endsub

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-13 Thread Bill Marrs
I'm sure there are no other servers. I'm actually stopping my live server to try this. I stop it, change the config file and start it - and it doesn't come up and no server is running. So, I put it back and start it and its OK again. I tried "set args -X" in gdb, and the result was that

Parent Process Memory Space

1999-12-13 Thread Alex Menendez
Hello, All I currently have a caching module for dynamic pages that is loaded up upon server startup. However, when each child process uses this module they each create a copy of the modules caching hash. I would like to have 1 copy of the caching hash in the parent process that each child

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-13 Thread Cliff Rayman
I am using PerlRequire successfully on both: Server: Apache/1.3.3 (Unix) mod_perl/1.16 mod_ssl/2.1.2 SSLeay/0.9.0b AND Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4 both on linux Linux Redhat 5.2 - kernal - 2.0.36 perl, version 5.005_02 built for i686-linux Are perl and

Re: Parent Process Memory Space

1999-12-13 Thread Matt Sergeant
On Mon, 13 Dec 1999, Alex Menendez wrote: Hello, All I currently have a caching module for dynamic pages that is loaded up upon server startup. However, when each child process uses this module they each create a copy of the modules caching hash. I would like to have 1 copy of the

Best setting for KeepAliveTimeout with proxypass to modperl

1999-12-13 Thread Joseph R. Junkin
I was wondering what people have found to be the best setting for the 'KeepAliveTimeout' for a backend modperl server that is proxypassed from a front end. My hunch is: On the front end, keep the normal setting (15 or so) On the back end, set KeepAliveTimeout to 0 because above all, I do not

Re: Best setting for KeepAliveTimeout

1999-12-13 Thread Joseph R. Junkin
Perhaps I should have read the configuration first: KeepAlive Off This seems like the best setting? This makes sense to me. Does it make sense to others? [EMAIL PROTECTED] http://www.datacrawler.com

RE: How Embperl sub routine retun value?

1999-12-13 Thread Gerald Richter
It works, but I never thought i can use this way to pass parameter. Indeed i never read this in "Programming Perl" book. Perhaps it is at some where it the book You can find all the infomations in the Perl man pages. Read man perlsub for example and you will find this information. Also

RE: Embperl, input type=image, and binary output

1999-12-13 Thread Jech Bernard
For now the output functions of Embperl can't handle binary data. What you can do is, set optEarlyHttpHeader (must be set in your httpd.conf), so the headers are send, before the page is generated. Now you are able to use mod_perl's output function. You can simply use print (not [+ ... +]) to

Re: Embperl, input type=image, and binary output

1999-12-13 Thread Cliff Rayman
Jech Bernard wrote: For now the output functions of Embperl can't handle binary data. What you can do is, set optEarlyHttpHeader (must be set in your httpd.conf), so the headers are send, before the page is generated. Now you are able to use mod_perl's output function. You can simply

RE: Embperl, input type=image, and binary output

1999-12-13 Thread Gerald Richter
It looks like the output function stops at the first null character (C-style strings problem??). Yes, I use C-string with terminating null. I knew this problem already and it's on the todo list to change this. ePerl does not have a problem with outputing binaries either. Look at the

RE: Embperl, input type=image, and binary output

1999-12-13 Thread Jech Bernard
On Mon, 13 Dec 1999, Gerald Richter wrote: The problem came up the first time about 3 weeks ago (Embperl is already 3 years old :-). I will of course change this in a further release so this could also be done with Embperl, but that's not at the highest priority. I think the problem is much

Re: Best setting for KeepAliveTimeout

1999-12-13 Thread Joshua Chamas
"Joseph R. Junkin" wrote: Perhaps I should have read the configuration first: KeepAlive Off This seems like the best setting? Yes, this is what I do too. The front end proxy does not do keep alive requests anyway, but just to be safe, you ought to disable them. -- Joshua

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-13 Thread Stas Bekman
I'm using Red HAT rpms plus mod_perl built on top of that. Your theory about different compiler versions may be on the mark. Using the rpms was a real convenience, but maybe I'm paying for it a bit now. Grab one from http://perl.apache.org/distributions.html (you owe this one to David

Re: EmbPerl use HTML::Embperl failed ( just Win95 )

1999-12-13 Thread Rolf Ohnmacht
- Original Message - From: Gerald Richter [EMAIL PROTECTED] To: Rolf Ohnmacht [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 13, 1999 5:41 AM Subject: RE: EmbPerl use HTML::Embperl failed "nmake test" did (and does) not work correct !!! First nmake test must run

Win32+modperl+EmbPerl - some questions ...

1999-12-13 Thread Rolf Ohnmacht
Now mod_perl and EmbPerl work fine on my NT+Win95 - I'm daily impressed how fast it works! But there are many open questions: 1.) 'PerlModule' ( eg. srm.conf ) or 'use HTML::Embperl' ( startup.pl) both don't work! But if I leave it - no problem! Is this a special "Win32-behaviour"? I read some

Re: Win32+modperl+EmbPerl - some questions ...

1999-12-13 Thread Eric L. Brine
'use HTML::Embperl' ( startup.pl) both don't work! Is this a special "Win32-behaviour"? I might be wrong, but I thought Embperl should never be loaded in startup.pl, even in UNIX. ELB -- Eric L. Brine | Chicken: The egg's way of making more eggs. [EMAIL PROTECTED] | Do you always hit the

Re: Win32+modperl+EmbPerl - some questions ...

1999-12-13 Thread Cliff Rayman
I use it from linux without a problem. I think the problem had to do with dynamic libraries. It is probably in the faq. cliff rayman genwax.com "Eric L. Brine" wrote: 'use HTML::Embperl' ( startup.pl) both don't work! Is this a special "Win32-behaviour"? I might be wrong, but I thought

Re: Intermittent Insecure dependency error solution but ...

1999-12-13 Thread Craig Bullock
While debugging this error, I have found that if I preload all modules after "use strict" and carp in a startup file, I see additional errors when the modules compile. Sure I did see the errors, but why must I preload each module in such a manner when it's not necessary except to check for

Re: Win32+modperl+EmbPerl - some questions ...

1999-12-13 Thread Randy Kobes
On Mon, 13 Dec 1999, Rolf Ohnmacht wrote: Now mod_perl and EmbPerl work fine on my NT+Win95 - I'm daily impressed how fast it works! But there are many open questions: 1.) 'PerlModule' ( eg. srm.conf ) or 'use HTML::Embperl' ( startup.pl) both don't work! But if I leave it - no problem!

RE: Win32+modperl+EmbPerl - some questions ...

1999-12-13 Thread Gerald Richter
1.) 'PerlModule' ( eg. srm.conf ) or 'use HTML::Embperl' startup.pl) both don't work! But if I leave it - no problem! Is this a special "Win32-behaviour"? I read some mails from the archives that I'm not the only one who has had that problem. But why do I need it when everything runs

Re: Problems with dynamically-loaded perl modules under Solaris2.5.1

1999-12-13 Thread Doug MacEachern
are you still stuck on this? did you link mod_perl static or dso? if dso, try static. you can also try configuring Perl with -Dusemymalloc=n, but that comes with a large performance hit. I've never had a problem with solaris and any combo of mod_perl/Perl On Mon, 1 Nov 1999, Dan Rench wrote:

RE: no luck uploading

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, Tubbs, Derric L wrote: Well, I finally got it to work with Apache::Request. I had to do "$args = Apache::Request-new($r);" and "$file = $args-upload;" in the handler sub and then pass $args and $file to any other subs that needed it. Maybe this is normal but if so I was

Re: PerlFixupHandler vs. PerlHandler

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, James G Smith wrote: I have some code working, but I'm curious as to why it has to work in the way it does. The code: package My::TAMU; sub handler ($$) { my $class = shift; my $r = shift; if($r-current_callback eq "PerlHandler" || # this one makes sense

Re: setting cookies?

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, Robin Berjon wrote: At 11:44 01/11/1999 -0800, Doug MacEachern wrote: On Mon, 1 Nov 1999, Wyman Eric Miles wrote: The next question is, when the cookie expires 2 hours later, the initial SecurID user/password has long since expired. How do I cause the module to force

Re: suggestion about PerlRun

1999-12-13 Thread Doug MacEachern
thanks, I'll add this for 1.22. On Tue, 2 Nov 1999, Yasushi Nakajima wrote: Doug the handler() in Apache::PerlRun was not originally indended to be Doug subclassed. however, if somebody submits a patch to make is Doug subclass-able that doesn't break the way Apache::PerlRun currently works,

Re: referenced symbol not found error

1999-12-13 Thread Doug MacEachern
you need the cvs snapshot of mod_perl to use 5.005_62+, or wait for 1.22 On Tue, 2 Nov 1999, Arkadiy Goykhberg wrote: *This message was transferred with a trial version of CommuniGate(tm) Pro* Hello, I'm trying to compile mod_perl-1.21 as DSO module for apache version 1.3.9 on Solaris 2.6

Re: hostname fails under Apache::Registry, but not as CGI??

1999-12-13 Thread Doug MacEachern
try Apache-request-get_server_name instead of hostname() it's cheaper too, since Sys::Hostname::hostname forks, at least once per-process. not so bad if you call it in the parent though (in a PerlRequire script), then all children have the cached results On Wed, 3 Nov 1999, Nick Urbanik wrote:

Re: Problems building

1999-12-13 Thread Doug MacEachern
On 3 Nov 1999, Greg Stark wrote: I'm trying to update to 1.3.9+1.21 but I'm having various problems: 1) The makefile seems to try to run ../apaci even though perl is two levels deep, so it can't find ../apaci, it would have to be ../../apaci === src/modules/perl gcc -I.

Re: mod_perl on Apache 2.0

1999-12-13 Thread Doug MacEachern
On Wed, 3 Nov 1999, Jeffrey Baker wrote: There was a short discussion a while ago about getting mod_perl working with Apache 2.0. Since Apache 2.0 can actually be built and run on a few platforms now, I think it is worth taking a lot at this for real. I started to fiddle with 5.005_63 and

Re: make fails

1999-12-13 Thread Doug MacEachern
did you ever get this sorted out? looks like an rpm version of Perl maybe? have you tried configuring/build Perl from source? On Thu, 4 Nov 1999, Eva Neuberger wrote: Hallo, I'm trying to install mod_perl_1.21 with apache 1.36 perl 5.005_03 and Linux Kernel 2.2.10 I follow the

Re: Unresolved References

1999-12-13 Thread Doug MacEachern
On Mon, 8 Nov 1999, Brad Bonkoski wrote: This message was sent from Geocrawler.com by "Brad Bonkoski" [EMAIL PROTECTED] Be sure to reply to that address. Hello, I am trying to build mod_perl and PHP together with apache and this is a sample of what I am getting: ===

Re: My doesn't it start ?

1999-12-13 Thread Doug MacEachern
try adding: PerlModule Apache to your httpd.conf On Tue, 9 Nov 1999, Shay Mandel wrote: Hi all, It is my first time I am building the apache with the mod_perl enabled. I have installed it as static module. Then I compiled the apache (1.3.9). Everything passed ok (I skipped the make test

Re: mod_perl crash

1999-12-13 Thread Doug MacEachern
more details please, Makefile.PL options, etc. On Thu, 11 Nov 1999, Dominic A. V. Amann wrote: I am trying to build apache 1.3.9 (or 1.3.anything) with mod_perl. It builds fine without, on libc-2.0.7 platform, using gcc 2.7.2.3 I have tried many options in the APACI make process, all

Re: Apache::Registry and 304 status code in log file

1999-12-13 Thread Doug MacEachern
see Apache::RedirectLogFix On Thu, 11 Nov 1999, Bill Moseley wrote: In an Apache::Registry script I'm print()ing Status: 304 Not Modified when the client sends an If-Modified-Since: header. The 304 error is returned to the client properly, but the log file shows a 200 status. Can

Re: Seg fault on fork w/ PerlModule

1999-12-13 Thread Doug MacEachern
can you get a stacktrace with gdb? see the SUPPORT doc for hints. On Tue, 16 Nov 1999, Tony Demark wrote: I have compiled the following: Apache 1.3.9 mod_perl 1.21 (PERL_AUTHEN PERL_LOG PERL_STACKED_HANDLERS) on: Ultra 10 Solaris 7 with: gcc

Re: module Safe ?

1999-12-13 Thread Doug MacEachern
On Thu, 18 Nov 1999, Ekaterina Ivannikova wrote: Hi All! I should have mentioned that there is a Safe.pm 2.06 in perl5 directory tree. But after browsing modperl archive I was under the impression that a special Apache::Safe was needed due to some subtle problems. Is it not so ? It seems

Re: multipart POST problems

1999-12-13 Thread Doug MacEachern
On Thu, 18 Nov 1999, John S. Evans wrote: I've been attempting to write a perl module that handles POSTs of type multipart/form-data, and have been having a rough time. I'm using Apache::Request to process the request. I have dumped the content-type of the incoming request, and verified

Re: Apache::Cookie confusion

1999-12-13 Thread Doug MacEachern
On Fri, 19 Nov 1999, John Siracusa wrote: Apache::Cookie seems to have two different interfaces...or maybe there are two different distributions of Apache::Cookie? Whatever it is, the interface seems different on two machines here at work. One has 5.004 and one has 5.005, but that

Re: Access handlers for CGI's...

1999-12-13 Thread Doug MacEachern
why don't you just use a PerlAuthenHandler? see chapter 6 online at modperl.com On Tue, 23 Nov 1999, Trevor Phillips wrote: I've written an Authentication Handler using the Access phase, where someone must validate themselves before accessing a resource. The way I've done it, if the client

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-13 Thread Doug MacEachern
My CPU-based limiter is working quite nicely. It lets oodles of static pages be served, but if someone starts doing CPU intensive stuff, they get booted for hogging my server machine. The nice thing is that I return a standard "503" error including a "retry-after", so if it is a legitimate

Re: VelociGen for Perl, Competetive Analysis?

1999-12-13 Thread Doug MacEachern
Here's a snip from an email that I just receved from one of your co-workers, Alex Shah [EMAIL PROTECTED] in response to this same email: ---begin quote Why the comparison with mod_perl? This was part of the agreement we made with Sun in order to bundle our product with their web

Re: Altering handler not working...

1999-12-13 Thread Doug MacEachern
the TypeHandler phase will override your changes, I think. try setting $r-handler with a PerlTypeHandler, apache stops after the first one returns OK, so mod_mime won't stomp your $r-handler settings in that case. On Thu, 25 Nov 1999, Trevor Phillips wrote: I'm trying to write an access

Re: Release for 1.22?

1999-12-13 Thread Doug MacEachern
On Fri, 26 Nov 1999, Ken Williams wrote: Hi, I've got an ISP running Apache/1.3.4 mod_perl/1.18, and I'm trying to get them to fix some of the broken functionality therein by upgrading to the latest versions. I really need the latest CVS snapshot so that Perl sections work correctly,

Re: Eagle Book - mod_hello.c, hello.pl :)

1999-12-13 Thread Doug MacEachern
On Mon, 29 Nov 1999, Michael Dearman wrote: ... When looking at http_config.h at the handler_rec structure, the elements don't seem to match the way they're used in the example in the book. Going to the book site, the src's for the examples are NOT available. *shrug* all of the book source

Re: PerlLogHandler - bytes always zero for proxy requests

1999-12-13 Thread Doug MacEachern
On Thu, 2 Dec 1999, Brian S. Craigie wrote: Hi Doug, Thanks and sorry if I looked impatient :-) nah, sorry if I looked like I thought you looked impatient ;-) I'm glad that this was spotted. I thought I was doing something wrong. I'm assuming you are referring to the cvs snapshot of