Re: Apache::ASP, catching redirect from a downstream filter

1999-10-19 Thread Joshua Chamas
Dmitry Beransky wrote: > > Hi, > > I'm redirecting an output of an ASP to my own module > (w/Apache::Filter). In the module I want to check if the ASP has issued a > redirect. I've tried looking at $r->status, but it always contains 200. I > can see that the outbound headers contain 'Location

Re: Porting to Apache::Registry

1999-10-19 Thread Stas Bekman
> I'm just starting in on porting some scripts over to either > Apache::Registry or Apache::PerlRun, and trying to absorb as much as I can. > It's seems a bit overwhelming at first. > > My scripts are reasonably clean, running under -w and use strict, yet I'm > sure I have lots of porting issues

Re: Embperl [$ sub $] question

1999-10-19 Thread Robert
It should be [- foo("bar") -] - Robert Jason Bodnar wrote: > Can the new sub meta-command not be used to define functions? > > I tried: > > [$ sub foo $] > [+ shift +] > [$ endsub $] > [+ sub("bar") +] > > and got 0. > --- > Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems > > That boy doesn'

Re: Apache::ASP - accessing Session data from Application

1999-10-19 Thread Adi
Yeah, I'd be happy to. I'm not quite done with my app-specific version, but once I get done I'll genericize it and send it along. I'll have to write up some documentation, too. It'll probably be a week or two before I have something worthy of publication. - Adi Joshua Chamas wrote: > > About

Re: Apache::ASP - accessing Session data from Application

1999-10-19 Thread Joshua Chamas
Adi wrote: > > Thanks, Joshua. I tested out your development version 0.17 and it worked > perfect for me. > > One thing I noticed was that if GetSession is improperly used, it could > cause big security holes. By nature it will be used to access someone > else's session, so the application sho

Porting to Apache::Registry

1999-10-19 Thread Bill Moseley
I'm just starting in on porting some scripts over to either Apache::Registry or Apache::PerlRun, and trying to absorb as much as I can. It's seems a bit overwhelming at first. My scripts are reasonably clean, running under -w and use strict, yet I'm sure I have lots of porting issues to deal wit

Re: Apache::ASP - accessing Session data from Application

1999-10-19 Thread Adi
Thanks, Joshua. I tested out your development version 0.17 and it worked perfect for me. One thing I noticed was that if GetSession is improperly used, it could cause big security holes. By nature it will be used to access someone else's session, so the application should take care not to send

Apache::ASP, catching redirect from a downstream filter

1999-10-19 Thread Dmitry Beransky
Hi, I'm redirecting an output of an ASP to my own module (w/Apache::Filter). In the module I want to check if the ASP has issued a redirect. I've tried looking at $r->status, but it always contains 200. I can see that the outbound headers contain 'Location', but I can't find the proper ret

eval'ed Apache::Session tie panics with POPSTACK?

1999-10-19 Thread Tobias Hoellrich
I wanted to trap non-existant session-id's by bracketing the tie %{$href}, 'Apache::Session::DBI', $id, { DataSource => 'dbi:mysql:sessions', UserName => 'db_user', Password => 'db_passwd' }; with an eval { }; block. Once I've done this and send a non-existant session-id I ge

Re: Redhat httpsd with mod_perl

1999-10-19 Thread Joshua Chamas
On the apache end, I would recommend setting MaxRequestsPerChild to under 1000, to clean up any memory leaks that accumulate over time. Also, you should look into using Apache::ASP->Loader() to precompile your asp scripts in your parent process, this has large CPU & RAM sparing benefits. Check o

Re: Embperl [$ sub $] question

1999-10-19 Thread Cliff Rayman
I use it all the time to define subroutines. They do not return values the way normal subroutines do however. Perhaps Gerald needs to modify the documentation to reflect his. cliff rayman genwax.com Jason Bodnar wrote: > Can the new sub meta-command not be used to define functions? > > I tried:

Embperl [$ sub $] question

1999-10-19 Thread Jason Bodnar
Can the new sub meta-command not be used to define functions? I tried: [$ sub foo $] [+ shift +] [$ endsub $] [+ sub("bar") +] and got 0. --- Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems That boy doesn't know the difference between the Internet and a hair net. -- Jason Bodnar

Redhat httpsd with mod_perl

1999-10-19 Thread Remi Fasol
hi there. i'm having problems with my redhat secure server and mod_perl combo (mod_perl as a DSO). i'm new to mod_perl (and system administration) but obviously am looking forward to getting everything figured out. i believe there is some kind of memory leak (not sure exactly), but when i start

Apache::Session hangs script

1999-10-19 Thread Kip Cranford
I'm using Apache/1.3.9 (Unix), mod_perl/1.21, Apache-Session-1.03, with MySQL 3.22.25. I'm using the the Apache::Session::DBI module with MySQL to provide some simple session management. I'm running the script as a PerlHandler... I'm storing the session ID as a hidden variable, which I retriev

RE: unresolved symbols in Embperl make test (was: new for embperl...)

1999-10-19 Thread Gerald Richter
> > nm apache_1.3.9/src/httpd > > My machine is Origin200 run IRIX6.4 as an OS. Do I have to set any flag > that related to export or symbol) when I rebuild the apache? How I can > check the Apache exports on my SGI? > I don't have IRIX, so I can't tell you. Christain Gilmore, with whom I talked

RE: unresolved symbols in Embperl make test (was: new for embperl...)

1999-10-19 Thread Jearanai Vongsaard
> > > > I'm sorry that I misunderstood your mail last time. Do I have to reinstall > > apache or both apache and mod_perl. > > yes > > > I couldn't find the hints in the FAQ. > > Could you please point me out where the document is located. > > > > Look at > > http://perl.apache.org/embperl/Faq

RE: Embperl and Apache LogLevel configuration

1999-10-19 Thread Gerald Richter
> > Here's the portion of my httpd.conf that deals with Embperl: > That's ok. I think I found the reason: > [3396892]ERR: 30: Line 1: Not found /usr/lund/wwwfiles/wnetdoc/map.c.html As always there is an expection to the rule. The "Not found" (and FORBIDDEN) errors are not going thru the Apac

Re: PerlTransHandler

1999-10-19 Thread William Deegan
Eric Cholet wrote: > > On Tuesday, October 19, 1999 4:13 AM, William Deegan [SMTP:[EMAIL PROTECTED]] >wrote: > > How can I change the environment variables that get passed to a perl > > script running under Apache::Registry from a PerlTransHandler? > > > > I'm using the PerlTransHandler to do a

Re: RegistryLoader causes "subroutine redefined" errors on import?

1999-10-19 Thread Stas Bekman
> I know this topic has been discussed to death, but I think I can add > something new. :-) > > Upon using Apache::RegistryLoader, I noticed my error logs started > filling up with the dreaded "subroutine redefined" error. These errors > occur at the moment my scripts scripts are preloaded usin

RegistryLoader causes "subroutine redefined" errors on import?

1999-10-19 Thread Matt Arnold
I know this topic has been discussed to death, but I think I can add something new. :-) Upon using Apache::RegistryLoader, I noticed my error logs started filling up with the dreaded "subroutine redefined" error. These errors occur at the moment my scripts scripts are preloaded using Apache::Re

What .htaccess with PerlAuthenHandler + PerlAuthzHandler

1999-10-19 Thread Clifford Lang
Using: Apache 1.3.9 mod_perl 1.21 I want to switch from .htpasswd to a database driven authentication, but I still want to use my .htaccess for custom per-directory control. I have read the Eagle book, and it seems that once you go for DB access control you no longer mention the htaccess. D

RE: Embperl and Apache LogLevel configuration

1999-10-19 Thread Christian Gilmore
> ...and Embperl runs under mod_perl? Not as CGI? In CGI Mode > the only chance > is to print to stderr, which always shows up in the error log. Under > mod_perl, the timestamp should apear and the message only > get's logged when > loglevel is error or below. > > If you run under mod_perl, how do

Re: [SITE] the great redesign of 1999

1999-10-19 Thread James G Smith
Stas Bekman <[EMAIL PROTECTED]> wrote: >Anyway, let's stop talking about "you" and "we", we are all "we" :) No >competition, only collaboration. James is working on this application, >which is in pretty good stage (James?), why in the world would you want to >write something else from scratch? Jam

RE: Embperl and Apache LogLevel configuration

1999-10-19 Thread Gerald Richter
> > Nothing gets reported to the error log when those lines are > commented out, no > matter apache's LogLevel setting. The entry in the logfile that > I'm seeing is > apparently coming from the printing to stderr. I also have the > same problem > under a simpler configuration on Solaris (no ssl,

RE: unresolved symbols in Embperl make test (was: new for embperl...)

1999-10-19 Thread Gerald Richter
> > I'm sorry that I misunderstood your mail last time. Do I have to reinstall > apache or both apache and mod_perl. yes > I couldn't find the hints in the FAQ. > Could you please point me out where the document is located. > Look at http://perl.apache.org/embperl/Faq.pod.1.html#Running_make_t

ANNOUNCE: Apache::VMonitor ver. 0.03

1999-10-19 Thread Stas Bekman
A new version of Apache::VMonitor: The uploaded file Apache-VMonitor-0.03.tar.gz has entered CPAN as file: $CPAN/authors/id/S/ST/STAS/Apache-VMonitor-0.03.tar.gz size: 11226 bytes md5: c66e821a5ed9d2934805471b96a87a15 CHANGES: * Added to top() section: date/time, uptime, average

Re: DBM

1999-10-19 Thread Stas Bekman
> 1. Is there a easier way, I mean more transparent way to cache Tie to > DBM files (I need READONLY). > Something like "use Apache::DBI" in startup.pl file and then when I use > "tie" or whatever ... if there is cached connection to get it instead > creating new one, will this improve the speed

RE: hanging processes

1999-10-19 Thread Marc D. Spencer
Well, since this problem is intermittant, and that I can't leave rogue processes running in production, I have not been able to perform the latest suggested tests (those against the kernel /proc dir). As soon as I have additional information, I will surely post to the list. At 5:39 PM -0400 10

DBM

1999-10-19 Thread raptor
hi there, 1. Is there a easier way, I mean more transparent way to cache Tie to DBM files (I need READONLY). Something like "use Apache::DBI" in startup.pl file and then when I use "tie" or whatever ... if there is cached connection to get it instead creating new one, will this improve the speed

Re: More on web application performance with DBI

1999-10-19 Thread Matt Sergeant
On Tue, 19 Oct 1999, Tim Bunce wrote: > If the ``$sth->fetchall_arrayref if $sth->{Active};'' logic was > added to the DBI's prepare_cached, wouldn't that be enough for you? > (Assuming you call prepare_cached for the first time for each > statement when there's no active statement handle.) I don

Re: More on web application performance with DBI

1999-10-19 Thread Tim Bunce
On Tue, Oct 19, 1999 at 12:36:30PM +0100, Matt Sergeant wrote: > On Mon, 18 Oct 1999, Tim Bunce wrote: > > > > > > I've never looked at prepare_cached() for DBD::Sybase, and Matt tried > > > it out and it appeared not to work. > > > > "appeared not to work" isn't much more specific :-) > > Sorr

Re: More on web application performance with DBI

1999-10-19 Thread Matt Sergeant
On Mon, 18 Oct 1999, Tim Bunce wrote: > > > > I've never looked at prepare_cached() for DBD::Sybase, and Matt tried > > it out and it appeared not to work. > > "appeared not to work" isn't much more specific :-) Sorry, but I don't have enough tuits to tie it down exactly. As Michael said it's a

Re: [SITE] the great redesign of 1999

1999-10-19 Thread Stas Bekman
> Aha, now I see much more clearly. I had thought about that, but had pushed > it to the back of my brain as a problem that could be solved when time came > to go live. I have a server myself, and though I probably couldn't get > approval to open it to others I can do pretty much what I want as lo

Re: [SITE] the great redesign of 1999

1999-10-19 Thread Robin Berjon
At 10:41 19/10/1999 +0200, Stas Bekman wrote: >That makes sense. But you should understand my motives for moving to >modperl.sourcegarden.org. Otherwise there was no reason not do everything >at perl.apache.org. > >So, perl.apache.org is just a VH at apache.org. You have almost no ability >to add

Re: [SITE] the great redesign of 1999

1999-10-19 Thread Stas Bekman
> At 09:12 19/10/1999 +0200, Stas Bekman wrote: > >> We were planning to put a good deal of the stuff into a db too I think. I > >> guess it doesn't matter too much if we have duplicated content as long as > >> it is in sync. We will have to take into account what you are doing so that > >> we can

RE: PerlTransHandler

1999-10-19 Thread Eric Cholet
On Tuesday, October 19, 1999 4:13 AM, William Deegan [SMTP:[EMAIL PROTECTED]] wrote: > How can I change the environment variables that get passed to a perl > script running under Apache::Registry from a PerlTransHandler? > > I'm using the PerlTransHandler to do a sort of dynamic mod_rewrite > fu

Re: [SITE] the great redesign of 1999

1999-10-19 Thread Robin Berjon
At 09:12 19/10/1999 +0200, Stas Bekman wrote: >> We were planning to put a good deal of the stuff into a db too I think. I >> guess it doesn't matter too much if we have duplicated content as long as >> it is in sync. We will have to take into account what you are doing so that >> we can cross-lin