Hi Andrew,
thanx for the idea to have a look at Apache::ASP. I took that look
meanwhile and to me that seems to be an overhead. Maybe I'm naive,
because it wasn't much more than a glance, but the code copes with
things a server page *never* has to worry about, things like session
handling an
On Sun, Apr 28, 2002 at 05:18:24PM +0200, Ernest Lergon wrote:
> Hi,
>
> in a mod_perl package I load a CSV file on apache startup into a simple
> hash as read-only class data to be shared by all childs.
>
> A loading routine reads the file line by line and uses one numeric field
> as hash entry
On Mon, Apr 29, 2002 at 12:39:32AM +1000, Ken Williams wrote:
> I sent a message earlier today saying that this patch seems to help
> things, but I just noticed something disturbing. After hand-applying
> this patch to my CWD.pm from 5.6.1, I ran a 'perl Makefile.PL' for a
> different module (
On Sunday, April 28, 2002, at 04:48 PM, Stas Bekman wrote:
> Ken Williams wrote:
>> On Sunday, April 28, 2002, at 01:47 PM, Stas Bekman wrote:
>>> Ken, CWD.pm, has always suffered from taint problems. This problem
>>> has been fixed in the bleadperl, try this patch:
>>>
>>> --- /tmp/Cwd.pmSu
On 29 Apr 2002 09:16:42 +1000
simran <[EMAIL PROTECTED]> wrote:
: Have a look at the HTML::FillInForm module as well...
Yeah, thank you, I'll give it a try. I guess this is a natural candidate
for an output chain, the HTML generated by two or three Apache modules
will need that post-process, so
Have a look at the HTML::FillInForm module as well...
it works wonders for me...
On Sat, 2002-04-27 at 04:43, darren chamberlain wrote:
> * Ken Clark <[EMAIL PROTECTED]> [2002-04-26 14:33]:
> > I'll throw my technique into the ring, too. I use Template Toolkit
> > most of the time, and I pass
[Sun Apr 28 18:05:42 2002] [error] [client 192.168.1.100]
File does not exist: /moc/ticketLogin
There is the Apache errlog entry for the request I am
making. I am just trying to do the TicketTool, etc example from Chapter 6
of the Eagle mod_perl book but I am getting that error.
He
On Mon, 29 Apr 2002 01:11:59 +0200
"F.Xavier Noria" <[EMAIL PROTECTED]> wrote:
: If I understand it correctly, Apache::Session::Oracle uses a table
: called "sessions" with at least two columns, one called "id", of type
: "varchar2(32)", and another called "a_session", of type "long".
I am sorr
If I understand it correctly, Apache::Session::Oracle uses a table
called "sessions" with at least two columns, one called "id", of type
"varchar2(32)", and another called "a_session", of type "long".
Say I want to store a pair of things in sessions: a reference to an
object of type User (which
At 22:50 28.04.2002, Richard Clarke wrote:
>Can someone tell me why the Apache::UTIL escape_uri() function doesnt
>escape the '+' character.
>I need to pass a base64 string as a query string but I can't do this
>unless + is changed to %2B.
>Should I just translate it manually...are there any oth
Can someone tell me why the Apache::UTIL
escape_uri() function doesnt escape the '+' character.
I need to pass a base64 string as a query string
but I can't do this unless + is changed to %2B.
Should I just translate it manually...are there any
other chars I should be translating manually?
>
>
> At 17:18 28.04.2002, Ernest Lergon wrote:
> >Now I'm scared about the memory consumption:
> >
> >The CSV file has 14.000 records with 18 fields and a size of 2 MB
> >(approx. 150 Bytes per record).
>
> Now a question I would like to ask: do you *need* to read the whole CSV
> info into me
On Sun, 28 Apr 2002, Per Einar Ellefsen wrote:
> At 17:18 28.04.2002, Ernest Lergon wrote:
> >Now I'm scared about the memory consumption:
> >
> >The CSV file has 14.000 records with 18 fields and a size of 2 MB
> >(approx. 150 Bytes per record).
>
> Now a question I would like to ask: do you
At 17:18 28.04.2002, Ernest Lergon wrote:
>Now I'm scared about the memory consumption:
>
>The CSV file has 14.000 records with 18 fields and a size of 2 MB
>(approx. 150 Bytes per record).
Now a question I would like to ask: do you *need* to read the whole CSV
info into memory? There are ways t
> $foo->{$i} = [ @record ];
You're creating 14000 arrays, and references to them (refs take up space
too!). That's where the memory is going.
See if you can use a more efficient data structure. For example, it
takes less space to make 4 arrays with 14000 entries in each than to
make 14000 arra
Jeffrey Baker wrote:
>
> I tried this program in Perl (outside of modperl) and the memory
> consumption is only 4.5MB:
>
> #!/usr/bin/perl -w
>
> $foo = {};
>
> for ($i = 0; $i < 14000; $i++) {
> $foo->{sprintf('%020d', $i)} = 'A'x150;
> }
>
> <>;
>
> 1;
>
> So I suggest something else
Ernest Lergon wrote:
> Hi,
>
> in a mod_perl package I load a CSV file on apache startup into a simple
> hash as read-only class data to be shared by all childs.
>
> A loading routine reads the file line by line and uses one numeric field
> as hash entry (error checks etc. omitted):
>
> package
> 1. Is the reference to the user storable?
Yes, but it will store the complete user object in the database, not
just a reference.
> 2. Do I need to create more columns in the table or everything
goes
>to the "a_session" column?
The latter.
> 3. Could one set up things in a
If I understand it correctly, Apache::Session::Oracle uses a table
called "sessions" with at least two columns, one called "id", of type
"varchar2(32)", and another called "a_session", of type "long".
Say I want to store a pair of things in sessions: a reference to an
object of type User (which
If I understand it correctly, Apache::Session::Oracle uses a table
called "sessions" with at least two columns, one called "id", of type
"varchar2(32)", and another called "a_session", of type "long".
Say I want to store a pair of things in sessions: a reference to an
object of type User (which
Hi,
in a mod_perl package I load a CSV file on apache startup into a simple
hash as read-only class data to be shared by all childs.
A loading routine reads the file line by line and uses one numeric field
as hash entry (error checks etc. omitted):
package Data;
my $class_data = {};
ReadFile
Ken Williams wrote:
>
> On Sunday, April 28, 2002, at 04:48 PM, Stas Bekman wrote:
>
>> it does solve the problem on linux. Ken, can you test the bleadperl?
>> This fix was applied as a solution. If `pwd` doesn't work for you,
>> that sucks! Meaning that the problem wasn't fixed in bleadperl :
Ooops,
clicking on send, I saw, that mod_mime is not compiled in.
See
http://httpd.apache.org/docs/mod/mod_mime.html#sethandler
Sorry.
Ernest
--
*
* VIRTUALITAS Inc. * *
*
"Ward W. Vuillemot" wrote:
>
> [snip]
>
> But, apachectl configtest tells me
> Invalid command 'SetHandler', perhaps mis-spelled or defined by a module not
> included in the server configuration
>
> Running httpd -l, returns
> Compiled-in modules:
> http_core.c
> mod_env.c
> mod_log_config
On Sunday, April 28, 2002, at 04:48 PM, Stas Bekman wrote:
> it does solve the problem on linux. Ken, can you test the
> bleadperl? This fix was applied as a solution. If `pwd` doesn't
> work for you, that sucks! Meaning that the problem wasn't fixed
> in bleadperl :( Can you check the recent
25 matches
Mail list logo