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

2002-05-29 Thread dougm
dougm 02/05/29 18:23:28 Modified:src/modules/perl modperl_perl_includes.h Log: define environ on darwin if needed Revision ChangesPath 1.13 +5 -0 modperl-2.0/src/modules/perl/modperl_perl_includes.h Index: modperl_perl_includes.h

cvs commit: modperl-2.0/lib/Apache Build.pm

2002-05-29 Thread dougm
dougm 02/05/29 18:52:55 Modified:lib/Apache Build.pm Log: darwin does not like ranlib on mod_perl.so Revision ChangesPath 1.95 +9 -4 modperl-2.0/lib/Apache/Build.pm Index: Build.pm ===

cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2002-05-29 Thread dougm
dougm 02/05/29 19:33:49 Modified:src/modules/perl modperl_filter.c modperl_filter.h xs/APR/Bucket APR__Bucket.h xs/Apache/RequestIO Apache__RequestIO.h xs/tables/current/ModPerl FunctionTable.pm Log: use apr_size_t rather than

cvs commit: modperl-2.0/lib/Apache compat.pm

2002-05-29 Thread dougm
dougm 02/05/29 20:54:08 Modified:lib/Apache compat.pm Log: prevent inclusion of Apache::Table Revision ChangesPath 1.56 +2 -0 modperl-2.0/lib/Apache/compat.pm Index: compat.pm === RCS

cvs commit: modperl-2.0/t/response/TestApache compat2.pm

2002-05-29 Thread dougm
dougm 02/05/29 21:05:07 Modified:lib/Apache compat.pm t/response/TestApache compat2.pm Log: add compat for Apache::Table-new Revision ChangesPath 1.57 +8 -0 modperl-2.0/lib/Apache/compat.pm Index: compat.pm

cvs commit: modperl-2.0/lib/Apache Build.pm

2002-05-29 Thread dougm
dougm 02/05/29 23:00:49 Modified:lib/Apache Build.pm Log: prevent possible fatal warning seen in 5.6.0/darwin in MM-init_others Revision ChangesPath 1.96 +4 -1 modperl-2.0/lib/Apache/Build.pm Index: Build.pm

Re: [RFC] Dynamic image generator handler

2002-05-29 Thread Gerald Richter
Hi, I am a little bit late for this thread, but anyway... I looked at Apache::ImageMagick last night however, and although it seems pretty usefull, it doesn't really address what I want to do with my module. I read your original RFC and as far as I see you can do everything you have

dso

2002-05-29 Thread Arnold van Kampen
Hi Some messages ago, someone still mentioned that modperl had been - compiled in -, when describing his configuration, that he was having trouble with. Does this mean it is still better to compile it in instead of using mod_perl as a dso? Arnold

Re: Invoke PHP scripts?

2002-05-29 Thread Thomas Klausner
Hi! On Tue, May 28, 2002 at 09:48:14PM -0600, Ryan Thompson wrote: I'm developing a large-ish web site in which I would like to use a combination of mod_perl (90%) and PHP (10%). I have run into a roadblock trying to include the output of a PHP script from a mod_perl script. As far as I know

MVC advice..?

2002-05-29 Thread Rafiq Ismail (ADMIN)
Hi, I'm building an MVC architecture site and have hit a design issue. I have varoius Control subclasses which relate to different templates with different behaviour. Now my problem is that I have to assign which Subclass I want to instantiate, based on the script and params. I my last effort

Re: Invoke PHP scripts?

2002-05-29 Thread Andrew McNaughton
On Wed, 29 May 2002, Thomas Klausner wrote: Hi! On Tue, May 28, 2002 at 09:48:14PM -0600, Ryan Thompson wrote: I'm developing a large-ish web site in which I would like to use a combination of mod_perl (90%) and PHP (10%). I have run into a roadblock trying to include the output of a

Re: mod-perl_2.0

2002-05-29 Thread Per Einar Ellefsen
At 00:25 29.05.2002, Kent, Mr. John wrote: Now my question. In the older version,(126) mod-perl created a larger (heavy) webserver. I could then add a startup.pl file to its http.conf file which used Apache::Registry to load perl and my modules. I don't see how this works in the new version of

Re: dso

2002-05-29 Thread Per Einar Ellefsen
At 11:41 29.05.2002, Arnold van Kampen wrote: Hi Some messages ago, someone still mentioned that modperl had been - compiled in -, when describing his configuration, that he was having trouble with. Does this mean it is still better to compile it in instead of using mod_perl as a dso? If

RE: dso

2002-05-29 Thread Joe Breeden
I have to agree with this statement. We have a server farm with 15 apache servers running mod_perl as a DSO (not counting the several development and QC servers) with no problems. IMHO mod_perl as a DSO probably had problems in the beginning, but I couldn't confirm that without some research

RE: MVC advice..?

2002-05-29 Thread Aaron Ross
Is there a neat way of dynamically loading in the appropriate control subclass? Something proven and widely used. For what it's worth, I use the eval trick too. Although it may seem a little clunky, I believe it is proven and widely used. The DBI.pm module uses code like this to load in the

Re: Configuring mod_perl on Debian

2002-05-29 Thread Stas Bekman
Ian D. Stewart wrote: On 2002.05.27 12:57 Andrew McNaughton wrote: Sounds to me like you're not setting your content-type correctly for some reason. Have a look at the headers being sent out. It's either not sending this header, or it's sending something the browser doesn't know what

Re: back-tracking

2002-05-29 Thread Stas Bekman
Lucas M. Saud wrote: hi, i'm writting a module to highlighting of Perl syntactical structures, but the current code is very slow... :( i need some help to implementing a method of back-tracking or one way to revising a token that has already been formatted without reformatting the entire

PerlWarn/AxKit - insecure dependency

2002-05-29 Thread Arnold van Kampen
Hi I have been going through the code example on www.perl.com (XSP, Taglibs and Pipelines) I noticed I get a problem with PerlWarn On PerlTaintCheck On in httpd.conf. So, when I turn PerlWarn Off and PerlTaintCheck Off it works. Main error message: [AxKit] [Error] Insecure dependency in

Re: PerlWarn/AxKit - insecure dependency

2002-05-29 Thread Per Einar Ellefsen
At 16:00 29.05.2002, Arnold van Kampen wrote: Hi I have been going through the code example on www.perl.com (XSP, Taglibs and Pipelines) I noticed I get a problem with PerlWarn On PerlTaintCheck On in httpd.conf. So, when I turn PerlWarn Off and PerlTaintCheck Off it works. Main error

Re: MVC advice..?

2002-05-29 Thread F . Xavier Noria
On Wed, 29 May 2002 09:22:00 -0400 Aaron Ross [EMAIL PROTECTED] wrote: : Is there a neat way of dynamically loading in the appropriate control : subclass? Something proven and widely used. : : For what it's worth, I use the eval trick too. Although it may seem a : little clunky, I believe

Re: MVC advice..?

2002-05-29 Thread Perrin Harkins
Rafiq Ismail (ADMIN) wrote: Now my problem is that I have to assign which Subclass I want to instantiate, based on the script and params. So, you're asking how to map URLs to perl modules? Is there some reason you aren't simply using httpd.conf or Apache::Dispatch? In my last MVC design,

Re: Carp interaction with mod_perl

2002-05-29 Thread Stas Bekman
Christian Gilmore wrote: How does the Carp module interact with mod_perl? Is there a built-in catch for croak or does it actually kill the child process, for instance? seems not to have any effect, i.e. it doesn't kill the process

Re: Referencing Directives

2002-05-29 Thread Ian D. Stewart
On 2002.05.28 01:23 Per Einar Ellefsen wrote: Or... maybe you could try using Apache class methods inside Perl sections (like document_root) -- however I think that'd be pretty shaky. Hmm...something to tinker with as time permits... Thanx, Ian

Re: MVC advice..?

2002-05-29 Thread Rafiq Ismail (ADMIN)
Ello, On 29 May 2002, Randal L. Schwartz wrote: Rafiq == Rafiq Ismail (ADMIN) [EMAIL PROTECTED] writes: Rafiq Is there a neat way of dynamically loading in the appropriate control Rafiq subclass? Something proven and widely used. Load the file with a require, and then just call the

separating C from V in MVC

2002-05-29 Thread Ray Zimmerman
We're developing a pretty complex web app using mod_perl and Mason and I'd like to use some form of MVC structure to keep things manageable. I'm looking for some pointers on MVC in this context. Specifically, M is easy ... use Perl objects, but how are others implementing the Controllers and

Re: Patch to mod_perl 1.26: error-notes support

2002-05-29 Thread Doug MacEachern
On Tue, 28 May 2002, Geoffrey Young wrote: Doug MacEachern wrote: thanks, i've applied a variation of your patch to cvs and will be in 1.27 if anybody wants to work up a similar patch for Apache::PerlRun, that'd be nice too. this seems to work ok as PerlRun and RegistryNG.

Re: DBI modperl_2 Segmentation fault

2002-05-29 Thread Doug MacEachern
On Fri, 24 May 2002, Udlei Nattis wrote: hi i updating modperl-2.0-cvs and problem persist now i change DynaLoader in DBI.pm to XSLoader but problem persist :( you shouldn't need to change DBI.pm the output of perl build/config.pl (normally should use t/REPORT) might help. and your DBI

Re: separating C from V in MVC

2002-05-29 Thread Perrin Harkins
Ray Zimmerman wrote: If I understand correctly, the Mason component that generates the page the user sees would be considered the View. But where is the Controller? I wrote a little about this in my templating guide, and there has been discussion on the Mason list. A common approach is to

Re: MVC advice..?

2002-05-29 Thread Perrin Harkins
Dave Rolsky wrote: On Wed, 29 May 2002, Perrin Harkins wrote: There's no good reason to do an eval 'use'. Use require instead, and import if you need to (but most people don't). Actually, there is. This code: my $module = 'Foo::Bar'; require $module; is not the same as

Re: MVC advice..?

2002-05-29 Thread Perrin Harkins
Rafiq Ismail (ADMIN) wrote: I'm not so keen on loading all the inheriting classes into memory beforehand You really should do that, because it will save overall memory by increasing the amount of memory that's shared. All modules should be loaded during startup in the parent process. It's

Re: MVC advice..?

2002-05-29 Thread Dave Rolsky
On Wed, 29 May 2002, Perrin Harkins wrote: There's no good reason to do an eval 'use'. Use require instead, and import if you need to (but most people don't). Actually, there is. This code: my $module = 'Foo::Bar'; require $module; is not the same as this: require Foo::Bar; If

Re: Reloading Modules

2002-05-29 Thread Stas Bekman
Ted Prah wrote: Hi again, I'm having trouble seeing module changes when I reload a script that uses it. That's because Reload.pm doesn't re-exports the symbols when reloading the module and test.pl doesn't call import() because it sees the module in %INC, therefore it still sees the old

Fwd: ApacheCon session submissions: deadline is this Friday!

2002-05-29 Thread Stas Bekman
Original Message Subject: ApacheCon session submissions: deadline is this Friday! Date: Tue, 28 May 2002 13:15:57 -0400 From: Rodent of Unusual Size [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Organization: The Apache Software Foundation To: ASF members [EMAIL PROTECTED]

Re: Reloading Modules

2002-05-29 Thread Ted Prah
Thanks for the input Stats. I found your debugging methodology to be very informative and especially useful in a mod_perl environment. I tried your suggestion of commenting out require $key; in Reload.pm, but it did not work for me. I'd be happy to try any other suggestions you

Re: Persistent Net::Telnet Objects

2002-05-29 Thread Perrin Harkins
French, Shawn wrote: Although this is working right now, I don't know enough [ anything? :) ] about Apache or mod_perl to be sure that this will work in the future. I can't see how it could be working now, unless it is actually creating a new Telnet object on every request. Your %sessionHash

RE: Persistent Net::Telnet Objects

2002-05-29 Thread mod_perl
Maybe you can tell us more about the project (e.g. why telnet ?) so there will come many bad advices ? :-) Peter Bi Perrin wrote: I can't see how it could be working now That makes two of us! You're probably opening new telnet connections from each apache process. I know that I

Re: Persistent Net::Telnet Objects

2002-05-29 Thread Rob Mueller (fastmail)
Our project needed persistent socket connections open as well. There is supposed to be a standard mechanism to pass file descriptors between unix processes, though it's bugginess level depends on your OS. There is a perl module for this called Socket::PassAccessRights. So what you can do is

Re: Reloading Modules

2002-05-29 Thread Stas Bekman
Ted Prah wrote: Thanks for the input Stats. I found your debugging methodology to be very informative and especially useful in a mod_perl environment. I tried your suggestion of commenting out require $key; in Reload.pm, but it did not work for me. I'd be happy to try any

Re: Invoke PHP scripts?

2002-05-29 Thread Stas Bekman
Ryan Thompson wrote: Thomas Klausner wrote to [EMAIL PROTECTED]: Hi! On Tue, May 28, 2002 at 09:48:14PM -0600, Ryan Thompson wrote: I'm developing a large-ish web site in which I would like to use a combination of mod_perl (90%) and PHP (10%). I have run into a roadblock trying to include

Re: Persistant references [was] Persistent Net::Telnet Objects

2002-05-29 Thread Ryan Parr
I never do give enough info on the first e-mail. Thank you for bearing with me... What I mean is, if a request comes in for a certain form I would like to be able to do something like this: my $form = load_form($r); $c{$session_id}-{handler} = $form-{handler}; # -- this being a code ref...

Re: Persistant references [was] Persistent Net::Telnet Objects

2002-05-29 Thread Garth Winter Webb
You could just pass around a string rather than a subref: my $handler = 'sub { my $arg = @_; do_something(); }'; vs my $handler = sub { my $arg = @_; do_something(); }; When you want to call it later on you do it like: eval($handler)-('foo'); vs $handler-('foo'); Garth On

cvs commit: modperl/lib/Apache PerlRun.pm

2002-05-29 Thread geoff
geoff 02/05/29 09:52:17 Modified:lib/Apache PerlRun.pm Log: PerlRun/RegistryNG errors are now saved in $r-notes('error-notes') Submitted by: geoff Reviewed by: dougm Revision ChangesPath 1.39 +9 -2 modperl/lib/Apache/PerlRun.pm Index: PerlRun.pm

cvs commit: modperl Changes

2002-05-29 Thread geoff
geoff 02/05/29 09:56:04 Modified:.Changes Log: expand $r-notes('error-notes') to cover PerlRun and RegistryNG Revision ChangesPath 1.647 +2 -1 modperl/Changes Index: Changes ===