Re: using mod_perl with SSI-run perl scripts

2000-08-17 Thread Perrin Harkins
On Thu, 17 Aug 2000, Mike Hodson wrote: > I need to know if mod_perl can execute the perl scripts called by the > exec cgi SSI command, and if so, instructions on how to make this work > properly. Take a look at the mod_perl docs: http://perl.apache.org/src/mod_perl.html#mod_perl_and_mod_include_

using mod_perl with SSI-run perl scripts

2000-08-17 Thread Mike Hodson
Hello there. I am currently looking for a way to reduce the server load on a very popular website. I must admit, I am not a whiz with perl, nor was I the designer of our current system. The web content designer (I myself am a server administrator) is using a set of small perl scripts run thru th

file download with mod_perl

2000-08-17 Thread pritesht
I am using following script in perl to download a file from the server to the local machine. The great thing about this code is, it populates a file save as dialog. The dialog is populated becuase of "Content-type:application/unknown\n Content-disposition:attachment;filename=$filetobedownloaded

[announce] Apache::DumpHeaders 0.90

2000-08-17 Thread Ask Bjoern Hansen
The uploaded file Apache-DumpHeaders-0.90.tar.gz has entered CPAN as file: $CPAN/authors/id/A/AB/ABH/Apache-DumpHeaders-0.90.tar.gz size: 2786 bytes md5: 6631c3612d14162c87d26a45a29a2283 I just made a minor change and realized that I don't think I announced this module before. It'

Apache 1.3.12/mod_perl 1.23/Activestate Perl 5.6.0 and db persistance

2000-08-17 Thread Eric Smith
Looking for suggestion as to where we might find the problem in getting a sample script implementing db persistance working with the above config on a windows box. Tries to follow the docs by the following: -- add to httpd.conf: PerlModule Apache::DBI and: /mod_perl/persistantdbi.pl

Re: Apache Variables

2000-08-17 Thread ___cliff rayman___
2 main things to read for mod_perl apache: the guide: http://perl.apache.org/guide/ the book: http://www.oreilly.com/catalog/wrapmod/ -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ good luck, [EMAIL PROTECTED] wrote: > Let me start with "I'm new". > > If this is the wrong forum, let me k

Apache Variables

2000-08-17 Thread Russell . Dobbins
Let me start with "I'm new". If this is the wrong forum, let me know now and please direct me to the right place. I come from the Mac/Windows world. I'd like to know howm to check on the status of Apache via perl and what commands are possible to check on things like the listeners, DB connecti

Re: Chaining SSI and gzip

2000-08-17 Thread ___cliff rayman___
i think this is FAQ you are looking for: http://thingy.kcilink.com/modperlguide/modules/Apache_OutputChain_Chain_Sta.html -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ Rodent of Unusual Size wrote: > This is probably a FAQ, in which case I'll accept my wet-noodle > lashings and follow any

Chaining SSI and gzip

2000-08-17 Thread Rodent of Unusual Size
This is probably a FAQ, in which case I'll accept my wet-noodle lashings and follow any links provided. I'm trying to help someone who wants to use server-side includes AND send the result gzip-encoded. Base Apache 1.3 can't do this, but I *think* this can be done with mod_perl and Apache::* mod

Re: using modules written in C?

2000-08-17 Thread Perrin Harkins
On Thu, 17 Aug 2000, Mikael Claesson wrote: > I plan to keep all lowerlevel database stuff in C, and > embed it in a perl module. Will this make things run > slower than if I made it all in perl? It shouldn't. Keep in mind though, when you use DBI from perl you are still doing all the low-level

Re: Win32 compiling problem - unresolved external symbol

2000-08-17 Thread Eric Cholet
> Hello, > > I am attempting to compile Perl/Apache/mod_perl on Windows 2000 using > MSVC6. > Perl and Apache compiled fine however mod_perl returns the following error; > > Configuration: ApacheModulePerl - Win32 > Release > Linking... >Creating libr

Win32 compiling problem - unresolved external symbol

2000-08-17 Thread Don Fike
Hello, I am attempting to compile Perl/Apache/mod_perl on Windows 2000 using MSVC6. Perl and Apache compiled fine however mod_perl returns the following error; Configuration: ApacheModulePerl - Win32 Release Linking... Creating library Release/ApacheMo

Location Directive Problem

2000-08-17 Thread Tony Whyte
Running apache-1.3.11, mod_perl-1.24, irix6.5.5 this works: (gets handled by mod_perl) SetHandler perl-script PerlHandler Apache::Hello this doesnt: SetHandler perl-script PerlHandler Apache::Hello Tried quoting "/hello/world" I still get "File does not exist: /usr/local/apache/

@INC still tainted :-(

2000-08-17 Thread Dave Jenkins
Hi, Sorry if it's a breach of etiquette to re-post a query, and I'm doubly sorry if it turns out to have been a particularly stupid question, but I've still not found a solution or any clues. If I'm missing something obvious or just being plain daft, feel free to mail me privately to avoid wastin

RE: Apache::ePerl

2000-08-17 Thread Vladislav Safronov
Hi! ;) see the benchmarks http://www.chamas.com/bench/index.html /Vlad > Can anyone say some words about perfomance issues of Embedded > Perl - ePerl > (don't mix up with HTML::Embperl). I mean running under mod_perl using > Apache::ePerl. Maybe anyone has done some perfomance testing? > Than

mod_perl-1.24 - Make FAILS!

2000-08-17 Thread Stephen Marriott
Last few lines of make ... MOD_PERL mod_auth.c cc -c -I../../os/unix -I../../include -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED -D MOD_PERL mod_setenvif.c rm -f libstandard.a ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o mod_negotiation.

RE: Question about $sth->finish;

2000-08-17 Thread Vladislav Safronov
> On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote: > > Hi, > > > > Could you have a look at the lines and answer the question .. > > --- > > sub foo { > > my $dbh = shift; > > > > my $sql = ... > > > > my $sth = $dbh->prepare($sql); > > $sth->execute; > >

Re: using modules written in C?

2000-08-17 Thread Stas Bekman
On Thu, 17 Aug 2000, Barrie Slaymaker wrote: > Mikael Claesson wrote: > > > > with mod_perl it looks even better. > > Cool. Welcome. > > > I plan to keep all lowerlevel database stuff in C, and > > embed it in a perl module. Will this make things run > > slower than if I made it all in perl?

Re: Question about $sth->finish;

2000-08-17 Thread Tim Bunce
On Wed, Aug 16, 2000 at 08:26:09AM +0200, Henrik Tougaard wrote: > From: Jay Jacobs [mailto:[EMAIL PROTECTED]] > > On Tue, 15 Aug 2000, Tom Mornini wrote: > > > > > It is my understanding of the DBI docs that you only need to call > > > $sth->finish when you DON'T fetch all the rows that the > >

Re: Question about $sth->finish;

2000-08-17 Thread Tim Bunce
On Tue, Aug 15, 2000 at 12:22:46PM -0500, Jay Jacobs wrote: > > > On Tue, 15 Aug 2000, Tom Mornini wrote: > > > It is my understanding of the DBI docs that you only need to call > > $sth->finish when you DON'T fetch all the rows that the $sth has ready to > > return. > > > > >From "Writing Ap

Swish-e 2.0

2000-08-17 Thread Bill Moseley
There's a new beta version of swish-e that out and available for testing. Much of the code was rewriting to protect against buffer overruns, and the big changes are in indexing speed and the addition of phrase searches. Indexing speed is much better (my little data set of 6000 files went from 6 mi

Re: Question about $sth->finish;

2000-08-17 Thread Tim Bunce
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote: > Hi, > > Could you have a look at the lines and answer the question .. > --- > sub foo { > my $dbh = shift; > > my $sql = ... > > my $sth = $dbh->prepare($sql); > $sth->execute; > $sth->finish; >

Re: new cgi mod_perl question

2000-08-17 Thread darren chamberlain
Alex Menendez ([EMAIL PROTECTED]) said something to this effect: > > does anyone know how to get the output of a standalone cgi script from a > mod_perl module > > I have tried all the subrequest stuff but I can't get it to work. If all you are trying to do is get the raw output, use LWP and a

Re: using modules written in C?

2000-08-17 Thread Barrie Slaymaker
Mikael Claesson wrote: > > with mod_perl it looks even better. Cool. Welcome. > I plan to keep all lowerlevel database stuff in C, and > embed it in a perl module. Will this make things run > slower than if I made it all in perl? Usually faster, but whether that's significant in your applicat

using modules written in C?

2000-08-17 Thread Mikael Claesson
I've always done all my serious cgi-programming in C, but now I've been forced to lern perl and I kinda figure it's not that bad. And with mod_perl it looks even better. I plan to keep all lowerlevel database stuff in C, and embed it in a perl module. Will this make things run slower than if I ma

Apache::ePerl

2000-08-17 Thread Vladimir Buyanov
Hi all! Can anyone say some words about perfomance issues of Embedded Perl - ePerl (don't mix up with HTML::Embperl). I mean running under mod_perl using Apache::ePerl. Maybe anyone has done some perfomance testing? Thanx beforehand. Sincerely yours, Vladimir Buyanov, senior web-developer Agama

Re: Persistent db with PerlRunOnce On?

2000-08-17 Thread Perrin Harkins
> Is it possible to establish db connection pooling with PerlRunOnce On? No. Technically Apache::DBI doesn't do "pooling" at all. It simply keeps a connection established within a child process open, in that child process. Since PerlRunOnce On means each child will exit after serving a request,