Re: Cookies and redirects

2002-03-13 Thread Enrico Sorcinelli
On Tue, 12 Mar 2002 16:23:57 +0100 Axel Andersson [EMAIL PROTECTED] wrote: Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. If I do the following

Re: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Ged Haywood
Hi there, On Wed, 13 Mar 2002, Marcus Claesson wrote: How do I succesfully preserve the column order (''$fields'= $joined_col') in my array-of-hashes generated using DBIx::Recordset? Check out a Perl tutorial or the Camel book. Perl's hashes do their own thing with ordering, so unless you

Re: Blank Pages ( Revisited ) [Semi-OT]

2002-03-13 Thread Ged Haywood
Hi there, On Wed, 13 Mar 2002 [EMAIL PROTECTED] wrote: However, when I do a random query I get some blank pages. I traced this to the DBI Log using the DBH-Trace(2, /tmp/DBI.log). I found that sometimes the execute() returns 0E0. Does anybody knows why?? It probably means zero multiplied

Re: Serious bug, mixing mod-perl content

2002-03-13 Thread Miroslav Madzarevic
Stas: I have 1.24 ver. of mod-perl and as I see current Apache Registry sets $Apache::Registry::NameWithVirtualHost explicitly to 1 if it's not defined (I've seen the sources). These are apache's startup messages: [Fri Mar 1 11:47:28 2002] [notice] Apache-AdvancedExtranetServer/1.3.14

Re: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Marcus Claesson
Perl's hashes do their own thing with ordering, so unless you do something like (sort keys %hash) you will get what you get. Yes, but tieing the hash while creating it, in my case with Tie::IxHash, should preserve the inesertion order. That works with for example tie %hash, 'Tie::IxHash'; %hash

Memory query

2002-03-13 Thread Andrew Green
Morning all, Forgive the naivete, but I'm having trouble wrapping my mind around the memory implications of using tied hashes, and I haven't found anything in the Camel book or the Guide to clarify the situation for me. A fair amount of my Registry scripts need to use code not unlike the

RE: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Jeff
Obviously sorting the hash keys wont give you the columns in the select statement order. After doing something like: my $sth = $dbh-execute(@params) or die... You can get back the lower case column names in the select statement order using: my @names = @{$sth-{NAME_lc}}; Note that

Re: Blank Pages ( Revisited ) [Semi-OT]

2002-03-13 Thread Ron Savage
On Wed, 13 Mar 2002 10:29:51 + (GMT), Ged Haywood wrote: Hi there, On Wed, 13 Mar 2002 [EMAIL PROTECTED] wrote: However, when I do a random query I get some blank pages. I traced this to the DBI Log using the DBH-Trace(2, /tmp/DBI.log). I found that sometimes the execute() returns 0E0. Does

ANNOUNCE: Embperl 2.0b6

2002-03-13 Thread Gerald Richter
The URL ftp://ftp.dev.ecos.de/pub/perl/embperl/Embperl-2.0b6.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GR/GRICHTER/Embperl-2.0b6.tar.gz size: 623200 bytes md5: 966e109d700fb76e6df18316c1cf16a1 Embperl is a system for building dynamic websites with Perl. See

Re: Serious bug, mixing mod-perl content

2002-03-13 Thread Ernest Lergon
Miroslav Madzarevic wrote: Ernest: I don't use server aliases but I'm going to fix that. I wish that the problem is so simple. Actually the two virt. hosts are beta.domain.com and www.domain.com So the httpd.conf should read: VirtualHost * ServerName www.domain.com

Re: loss of shared memory in parent httpd

2002-03-13 Thread Bill Marrs
I just wanted to mention that the theory that my loss of shared memory in the parent is related to swapping seems to be correct. When the lack of sharing occurs, it is correlated with my httpd processes showing a SWAP (from top/ps) of 7.5MB, which is roughly equal to the amount of sharing

query

2002-03-13 Thread Parag R Naik
The we are not able to bring the site up and running on linux version 6.2 with perl 5.005 , mod_perl 1.21 , I think the problem is the version of the perl that we are using . We have installed perl 5.6 but we are not able to figure out how to instruct apache to use that version of perl(5.6)

Re: query

2002-03-13 Thread Perrin Harkins
Parag R Naik wrote: We have installed perl 5.6 but we are not able to figure out how to instruct apache to use that version of perl(5.6 You have to re-compile mod_perl. Is the our directive used in some of files new to perl 5.6 because we could not find that directive in the most of

Re: Memory query

2002-03-13 Thread Perrin Harkins
Andrew Green wrote: In particular, I'm looking for reassurance that passing a reference to a hash doesn't copy the hash itself into memory in any way, and that the memory overhead is only as large as the largest $item. That's basically correct, but some dbm implementations will use their

Re: Blank Pages ( Revisited ) [Semi-OT]

2002-03-13 Thread Andy Lester
However, when I do a random query I get some blank pages. I traced this to the DBI Log using the DBH-Trace(2, /tmp/DBI.log). I found that sometimes the execute() returns 0E0. Does anybody knows why?? It probably means zero multiplied by ten to the power zero, or to put it another way,

Re: performance testing - emulating real world use

2002-03-13 Thread Perrin Harkins
Jauder Ho wrote: Another application (commercial) is Mercury Interactive's LoadRunner. My experience with commercial load-testing apps is that they are outrageously expensive, a pain to program, don't really scale all that well, and mostly have to run on Windows with someone sitting at the

Apache-print Timeout

2002-03-13 Thread Stathy G. Touloumis
Does anyone know how to set the time out value for Apache::print to a higher value if possible or how to avoid a timeout?? I am performing an import into a database that can vary in time (1min - 10min) and I would need to be able to handle this situation. Would it be better to spawn a

Re: Apache-print Timeout

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Does anyone know how to set the time out value for Apache::print to a higher value if possible or how to avoid a timeout?? I am performing an import into a database that can vary in time (1min - 10min) and I would need to be able to handle this situation. Would

RE: Apache-print Timeout

2002-03-13 Thread Stathy G. Touloumis
Thanks for the response, Do you know if this setting taken from the Apache conf directive 'Timeout'? Thanks , -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 10:41 AM To: Stathy G. Touloumis Cc: [EMAIL PROTECTED] Subject: Re:

Re: Apache-print Timeout

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Thanks for the response, Do you know if this setting taken from the Apache conf directive 'Timeout'? $r-server-timeout directly gets/sets the value for the httpd.conf Timeout directive for the server in question - see Chapter 4 in the cookbook ;) I don't have a

[JOB] mod_perl programmer

2002-03-13 Thread Robin Berjon
Hi all, due to a recent series of events, I find myself looking for a job. I'm open to all sorts of jobs: contracts, telecommute, or full-time. I'm presently living in Paris and would prefer to stay, but don't hesitate to offer jobs in other places as I'm not afraid of moving and could very

Re: Serious bug, mixing mod-perl content

2002-03-13 Thread Perrin Harkins
Could you describe the actual nature of the error? How can you tell that the response you're getting is from the wrong virtual host and what is different about the virtual hosts' setup that causes the difference in responses? - Perrin

Re: Apache-print Timeout

2002-03-13 Thread Perrin Harkins
Geoffrey Young wrote: I don't have a copy of the Eagle book in front of me The API chapter is online and it talks about print() and timeouts: http://modperl.com:9000/book/chapters/ch9.html - Perrin

RE: Apache-print Timeout

2002-03-13 Thread Stathy G. Touloumis
Yeah that's what the Eagle book says. I was surprised initially because our timeout's are set to 10min. and the process seemed to end prematurely (before 10min). Thanks, Do you know if this setting taken from the Apache conf directive 'Timeout'? $r-server-timeout directly gets/sets the

Re: File upload example

2002-03-13 Thread John Saylor
Hi On Tue, 12 Mar 2002, John Saylor wrote: I have found that some browsers put the file in the value matching the parameter name instead of putting a file upload object there. ( 02.03.12 18:36 -0500 ) Rich Bowen: That's not really necessary, as Apache::Request does that for you. Maybe I

open3 and mod_perl

2002-03-13 Thread Rasoul Hajikhani
Hello folks, I am writing a web interface for the GPGP module that would allow users to create a new public and private key and adds them to the corporate key ring. I will be useing IPC::Open3 and IO::Select to control stdin and stdout of GPGP. Are there any issues that I should be aware w/ these

Problems migrating from Apache::OutputChain to Apache::Filter

2002-03-13 Thread Colin Kuskie
I've been using Apache::OutputChain for stacking output handlers, and recently needed the caching feature of Apache::Filter, so I've been switching my modules over to using it instead. The system is a little convuluted. Each URI on the site depends on 3 files, a .html file which contains

Re: File upload example

2002-03-13 Thread Rich Bowen
On Wed, 13 Mar 2002, John Saylor wrote: Hi On Tue, 12 Mar 2002, John Saylor wrote: I have found that some browsers put the file in the value matching the parameter name instead of putting a file upload object there. ( 02.03.12 18:36 -0500 ) Rich Bowen: That's not really necessary,

Re: query

2002-03-13 Thread Ged Haywood
Hi there, On Wed, 13 Mar 2002, Parag R Naik wrote: We have installed perl 5.6 Make sure you get 5.6.1 not 5.6.0 which is buggy. 73, Ged.

Mapping files

2002-03-13 Thread Stathy G. Touloumis
Hi, I am trying to map a uri to a file based on certain factors. I would like to have this done after the 'Trans' phase when certain information is available. I noticed when the original file mapping does not exist (what apache maps in it's 'Trans' phase) the 'content_type' method does not

RE: loss of shared memory in parent httpd

2002-03-13 Thread Narins, Josh
It's copy-on-write. The swap is a write-to-disk. There's no such thing as sharing memory between one process on disk(/swap) and another in memory. You'll also want to look into tuning your paging algorithm. This will hold swapping at bay longer. The paging algorithm USED to be configurable with

If mod_perl module loaded from within httpd.conf

2002-03-13 Thread George Sanderson
What is the best way to check from within the httpd.conf file if a mod_perl module is loaded. For C modules, I can use: IfModule mod_perl.c ... /IfModule to conditionally load it's directives. Is there a similar conditional syntax for the mod_perl script modules? I only want a module's

RE: Mapping files

2002-03-13 Thread Narins, Josh
Dumb first try suggestion... Write your own super-short Trans handlers that stores the pre-mapped value in pnotes. -Original Message- From: Stathy G. Touloumis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 6:53 PM To: mod_perl List Subject: Mapping files Hi, I am trying

RE: Mapping files

2002-03-13 Thread Stathy G. Touloumis
Dumb first try suggestion... : ) Write your own super-short Trans handlers that stores the pre-mapped value in pnotes. I actually found an initial answer after digging through the docs. After mapping the file I can create a new sub-request via lookup_file($filename) and take appropriate

Re: Mapping files

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Hi, I am trying to map a uri to a file based on certain factors. I would like to have this done after the 'Trans' phase when certain information is available. I noticed when the original file mapping does not exist (what apache maps in it's 'Trans' phase)

[OT] File Upload Applet

2002-03-13 Thread Michael A Nachbaur
Hey all, sorry for the semi-off-topic post, but this seemed like the most appropriate place. I've developed a web-based content management system, and am now starting to improve it's usability features. Users can upload documents (XSL, PDF, Images, etc), but the standard HTML Upload form field

Re: If mod_perl module loaded from within httpd.conf

2002-03-13 Thread Geoffrey Young
George Sanderson wrote: What is the best way to check from within the httpd.conf file if a mod_perl module is loaded. For C modules, I can use: IfModule mod_perl.c ... /IfModule to conditionally load it's directives. Is there a similar conditional syntax for the mod_perl script modules?

RE: Mapping files

2002-03-13 Thread Stathy G. Touloumis
Well, I was able to do it nicely with a sub-request after calling 'lookup_filename'. I will still be picking up a copy of the cookbook though : ) I am trying to map a uri to a file based on certain factors. I would like to have this done after the 'Trans' phase when certain information is

Re: open3 and mod_perl

2002-03-13 Thread Geoffrey Young
Rasoul Hajikhani wrote: Hello folks, I am writing a web interface for the GPGP module that would allow users to create a new public and private key and adds them to the corporate key ring. I will be useing IPC::Open3 and IO::Select to control stdin and stdout of GPGP. Are there any

Exiting a script, or how do you do exit?

2002-03-13 Thread Brian Lavender
I developing some code, which I am running under Apache::Registry I seem to recall that you don't want to put exit; in a script, because the script continues to run. I have some code, where I may send a redirect, and then I am done. Is there a pseudo exit, or return command? brian -- Brian

Re: Exiting a script, or how do you do exit?

2002-03-13 Thread Stas Bekman
Brian Lavender wrote: Found the FAQ's. Seems that I can put in goto END; and then put an end block in the code. END: { 1; } no, you use exit() as is with Registry and Apache::exit with handlers. see: http://perl.apache.org/guide/porting.html#Terminating_requests_and_process On

Re: Exiting a script, or how do you do exit?

2002-03-13 Thread Brian Lavender
Found the FAQ's. Seems that I can put in goto END; and then put an end block in the code. END: { 1; } On Wed, Mar 13, 2002 at 07:07:18PM -0800, Brian Lavender wrote: I developing some code, which I am running under Apache::Registry I seem to recall that you don't want to put

Re: Blank Pages ( Revisited )

2002-03-13 Thread William R. Mussatto
On Wed, 13 Mar 2002 [EMAIL PROTECTED] wrote: Date: Wed, 13 Mar 2002 06:07:01 GMT From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Blank Pages ( Revisited ) In the past someone posted a problem with mod_perl and DbI giving blank pages from a SQL query. I did

Re: Blank Pages ( Revisited )

2002-03-13 Thread Henry McGuinness
However, when I do a random query I get some blank pages. I traced this to the DBI Log using the DBH-Trace(2, /tmp/DBI.log). I found that sometimes the execute() returns 0E0. Does anybody knows why?? If I remember rightly 0E0, in DBI, means Success ie : your query worked, but no rows

Re: Blank Pages ( Revisited )

2002-03-13 Thread Ronald J Kimball
On Wed, Mar 13, 2002 at 06:07:01AM +, [EMAIL PROTECTED] wrote: In the past someone posted a problem with mod_perl and DbI giving blank pages from a SQL query. I did some digging around and found some info but I need someone to fill in the holes for me a little. I created a DB Table

[ANNOUNCE] Apache::GTopLimit v1.01

2002-03-13 Thread Stas Bekman
The uploaded file Apache-GTopLimit-1.01.tar.gz has entered CPAN as file: $CPAN/authors/id/S/ST/STAS/Apache-GTopLimit-1.01.tar.gz size: 5689 bytes md5: b2a6fc6b0ea01c6310b8e41480705486 Changes: =head1 ver 1.01 Thu Mar 14 13:53:16 SGT 2002 * add an unshared memory threshold,

Re: loss of shared memory in parent httpd

2002-03-13 Thread Stas Bekman
Stas Bekman wrote: Bill Marrs wrote: One more piece of advice: I find it easier to tune memory control with a single parameter. Setting up a maximum size and a minumum shared size is not as effective as setting up a maximum *UNSHARED* size. After all, it's the amount of real memory

cvs commit: modperl-2.0 Makefile.PL

2002-03-13 Thread stas
stas02/03/13 08:01:02 Modified:.Makefile.PL Log: do yourself a favor, don't use perl v5.6.0 Revision ChangesPath 1.59 +5 -0 modperl-2.0/Makefile.PL Index: Makefile.PL === RCS

cvs commit: modperl-2.0/src/modules/perl modperl_log.h

2002-03-13 Thread dougm
dougm 02/03/13 09:21:53 Modified:src/modules/perl modperl_log.h Log: Submitted by: Philippe M. Chiasson [EMAIL PROTECTED] Reviewed by: dougm fix MP_FUNC for gcc3 Revision ChangesPath 1.7 +9 -4 modperl-2.0/src/modules/perl/modperl_log.h Index:

cvs commit: modperl/lib/Apache SizeLimit.pm

2002-03-13 Thread stas
stas02/03/13 21:27:44 Modified:lib/Apache SizeLimit.pm Log: - the parent process doesn't get killed if it's big, so correct the note not to say exiting... Revision ChangesPath 1.9 +1 -1 modperl/lib/Apache/SizeLimit.pm Index: SizeLimit.pm