[ANNOUNCE] Apache::Clean

2002-01-23 Thread Geoffrey Young
The URL http://www.modperlcookbook.org/download/Apache-Clean-0.03.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Clean-0.03.tar.gz size: 3575 bytes md5: bb3c4e6132ac461e22f510e1974f81b9 This release gives access to more of the features of HTML::Clean, like the

PerlRun Gotchas?

2002-01-23 Thread Andrew Green
Hi, A site I run uses a fair variety of different programs, the most common of which are run through Apache::Registry. To cut the memory overhead, however, less commonly used programs are run through Apache::PerlRun. Both the Registry and PerlRun programs use a common module which defines a

Adding information to Virtual Hosts in a startup file...

2002-01-23 Thread Marceusz
Hi, I'd like to add a location directives dynamically at startup to a VirtualHost using a startup script. I've been trying: $Apache::ReadConfig::VirtualHost{'127.0.0.1:80'}-{Location}-{'/'} = { SetHandler = 'perl-script', PerlHandler = 'Apache::Hello', }; which doesn't work ... while

Re: PerlRun Gotchas?

2002-01-23 Thread Perrin Harkins
A site I run uses a fair variety of different programs, the most common of which are run through Apache::Registry. To cut the memory overhead, however, less commonly used programs are run through Apache::PerlRun. I would not expect PerlRun to use less memory than Registry. Both the

MS+HTML - Unix

2002-01-23 Thread Philip M. Gollucci
Say I have a webpage where I want to offer people the ability to upload either a .txt or a .html file. Now these people basically are computer illierate, and don't even konw that UNIX is different from Microsh$t. At anyrate, they will use Save as (HTML) from MSWord 97/2000, Save as (txt), or

Re: slow regex [BENCHMARK]

2002-01-23 Thread Paul Mineiro
Paul Mineiro wrote: i've cleaned up the example to tighten the case: the mod perl code snippet is: --- my @cg; open DIL, '', /tmp/seqdata; print DIL $seq; close DIL; warn length seq = @{[length ($seq)]}; my $t = timeit (1, sub { while ($seq =~ /CG/g)

Re: MS+HTML - Unix

2002-01-23 Thread John Saylor
Hi ( 02.01.23 18:23 + ) Philip M. Gollucci: Is there anyway I can on the fly take the messed up HTML file I get and covert it to what they meant to give me. Probably not. You *could* strip out all HTML [and other formatting cruft] and display as text, but I'd guess your 'constituents'

RE: MS+HTML - Unix

2002-01-23 Thread John Greene
You could have your users upload MSWord documents and do the html conversion for them on the server using something like wvware. -Original Message- From: Philip M. Gollucci [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 10:23 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED];

Re: slow regex [BENCHMARK]

2002-01-23 Thread Sam Tregar
On Wed, 23 Jan 2002, Paul Mineiro wrote: i've cleaned up the example to tighten the case: the mod perl code snippet is: Fascinating. The only thing I don't see is where $seq gets assigned to in the CGI case. Where is the data coming from? Is it perhaps a tied variable or otherwise unlike

Re: mod_perl installation

2002-01-23 Thread Alastair Sherringham
On Mon, Jan 21, 2002 at 11:35:44AM -0800, Rasoul Hajikhani wrote: I use SGI IRIX 6.5 Short of reinstalling perl, is there anything else that could be done? Where would I find libgdbm.so? Thanks in advance. Sorry for the late reply. For IRIX software precompiled, you should check the

Re: slow regex [BENCHMARK]

2002-01-23 Thread Robert Landrum
At 4:01 PM -0800 1/23/02, Paul Mineiro wrote: Paul Mineiro wrote: i've cleaned up the example to tighten the case: the mod perl code snippet is: --- my @cg; open DIL, '', /tmp/seqdata; print DIL $seq; close DIL; warn length seq = @{[length ($seq)]}; my $t = timeit (1, sub {

Re: slow regex [BENCHMARK]

2002-01-23 Thread Perrin Harkins
Your system has to be swapping horribly. I bet that the ulimit for whoever apache is running as has the memory segment set super low. That's a possibility. I was also thinking that maybe mod_perl was built against a different version of Perl, possibly one that has a problem with this

Re: disable mod_perl for certain virtual hosts/folders

2002-01-23 Thread Merlin
Hi peter, If I got, the problem is yours the problem about disabling mod_perl. You can do that with somthing like this: VirtualHost ... ... Location / SetHandler default-handler /Location /VirtualHost Merlin, The Mage Diz-se que Grande Mestre [EMAIL PROTECTED] disse outrora:

PerlRun Gotchas?

2002-01-23 Thread Andrew Green
Hi, A site I run uses a fair variety of different programs, the most common of which are run through Apache::Registry. To cut the memory overhead, however, less commonly used programs are run through Apache::PerlRun. Both the Registry and PerlRun programs use a common module which defines a

RE: Help...

2002-01-23 Thread stevea
In most cases Apache basic auth passwords are set by the htpasswd command that should be available in the Apache source. In order to use this from a perl script you might have to set the SUID bit of htpasswd and make it owned by the Apache user. By writing a small script to take password

When to cache

2002-01-23 Thread Milo Hyson
I'm interested to know what the opinions are of those on this list with regards to caching objects during database write operations. I've encountered different views and I'm not really sure what the best approach is. Take a typical caching scenario: Data/objects are locally stored upon loading

Re: Cross-site Scripting prevention with Apache::TaintRequest

2002-01-23 Thread Arnold van Kampen
Does anybody have an example(s) of how this kind of abuse is actually working? All the time I have just been lucky then I guess. Arnold van Kampen On Tue, 22 Jan 2002, Perrin Harkins wrote: Yes and no. XSS attacks are possible on old browsers, when the charset is not set (something