cvs commit: modperl-2.0/src/modules/perl mod_perl.c

2002-06-12 Thread dougm
dougm 2002/06/12 14:13:11 Modified:src/modules/perl mod_perl.c Log: unbuffer STDERR Revision ChangesPath 1.124 +2 -0 modperl-2.0/src/modules/perl/mod_perl.c Index: mod_perl.c === RCS

cvs commit: modperl-2.0 Changes

2002-06-12 Thread dougm
dougm 2002/06/12 16:37:55 Modified:.Changes Log: update Changes Revision ChangesPath 1.21 +6 -0 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v

Re: separating C from V in MVC

2002-06-12 Thread Matt Sergeant
On Wednesday 12 June 2002 4:09 am, Rob Nagler wrote: Matt Sergeant writes: There's quite a few things that are a lot harder to do with XML in plain perl (especially in SAX) than they are in XSLT. This assumes you need XML in the first place. No, it does not. The rest of my post spoke

Re: installation problems

2002-06-12 Thread Chris
will wrote: I am trying to install mod perl as part of Apache-ASP and am stuck at the following error: Apache.exe -k start are you mixing Apache 2.0 with mod_perl 1.0? -k is an Apache 2.0 option um ... I use: c:\apache\apache.exe -k start all the time under Apache 1.3.22 for Win32.

RE: OSC early bird and mod_perl T-Shirts

2002-06-12 Thread Joe Breeden
Why hasn't the logo that was voted on been considered? What's the point of a logo if you don't use it everywhere? -Original Message- From: Alfred Vahau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 4:54 PM To: 'mod_perl list' Subject: Re: OSC early bird and mod_perl

Re: OSC early bird and mod_perl T-Shirts

2002-06-12 Thread Leon Brocard
Joe Breeden sent the following bits through the ether: Why hasn't the logo that was voted on been considered? What's the point of a logo if you don't use it everywhere? OK, I think the new logo is wonderful and it will hopefully take up a large part of the tshirt design. As Mark said to me on

mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Vuillemot, Ward W
I was wondering how people are saving state between pages of a session. There is a Apache::Session which is sufficient to check to see if they are logged in, et cetera. But I want to be able to remember the last query so that I can return results into multple pages along with memory of where in

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Perrin Harkins
Vuillemot, Ward W wrote: There is a Apache::Session which is sufficient to check to see if they are logged in, et cetera. But I want to be able to remember the last query so that I can return results into multple pages along with memory of where in the stack I am at. You can store anything

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Ken Y. Clark
On Wed, 12 Jun 2002, Vuillemot, Ward W wrote: Date: Wed, 12 Jun 2002 06:58:24 -0700 From: Vuillemot, Ward W [EMAIL PROTECTED] To: 'Peter Bi' [EMAIL PROTECTED], [EMAIL PROTECTED], Eric Frazier [EMAIL PROTECTED] Subject: mod_perl/passing session information (MVC related, maybe...) I

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Jeff AA
From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 15:11 You can store anything in Apache::Session; it's just a persistent hash table. However, storing query results based on a user's session is not a good idea! What if your users open up two browser windows and tries

[OT] Programming Language Benchmarks

2002-06-12 Thread Nico Erfurth
http://www.bagley.org/~doug/shootout/ It's nice to see perl compared to php ;) ciao

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Jeff AA
From: Ken Y. Clark [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 15:39 I've munged the query results in Perl and a couple template packages to make each link contain everything necessary to perform the query again (including every parameter from the original request) and putting in

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Perrin Harkins
Jeff AA wrote: Agreed, but he wasn't talking about storing the results, just the query parameters and current offset / number of rows, which is a-ok for putting into a session. No, that's exactly what ISN'T okay for putting into a session. If a user opens two browser windows, does a search

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Eric Frazier
Hi, I don't know this term query hijack can you put it in different words? Thanks, Eric At 03:54 PM 2002-06-12 +0100, you wrote: Do put the user_id into the query session and check it against the user_id in the User session to prevent query hijack

Re: Internet Explorer sending nothing in subsequent posts

2002-06-12 Thread Drew Taylor
My first guess is that it's caching the results. We just had fun debugging a problem w/ an aggressive proxy doing exactly this sort of thing. Try holding shift click reload/refresh and see if the browser actually hits the server then. Go to Tools | Internet Options | General Tab | Temporary

Re: installation problems

2002-06-12 Thread Randy Kobes
On Mon, 10 Jun 2002, will wrote: I am trying to install mod perl as part of Apache-ASP and am stuck at the following error: Apache.exe -k start Can't locate Cwd.pm in INC (INC contains: .) at (eval 1) line 1. I've searched the web and haven't found any solutions. I have checked the perl

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Jeff AA
From: Eric Frazier [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 16:52 I don't know this term query hijack can you put it in different words? Lets say your user who is the boss makes a query 'show me everyone's salary' and your system checks who he is, and because he is the boss,

Mapping to location /

2002-06-12 Thread md
I'm replacing an exisiting PHP site with mod_perl and Template-Toolkit. I normally set up mod_perl to use a location like this: Location /something and set the handler to my mod_perl module. However, I need to map to / since I'm replacing a system where there are existing PHP files like

Re: Mapping to location /

2002-06-12 Thread Aaron Ross
Location / to map to my main mod_perl script. The first thing it does is to check if the uri ends with a .phtml extension (or www.someserver.com or www.someserver.com/...same with subdirectories). If there is, I continue processing, otherwise I decline it and let Apache handle it.

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread James G Smith
John Siracusa [EMAIL PROTECTED] wrote: On 6/12/02 12:17 PM, Perrin Harkins wrote: James G Smith wrote: The nice thing about the context then is that customers can have multiple ones for multiple windows and they can have more than they have windows. How do you tie a context to a window? I

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Rob Nagler
Jeff AA writes: An advantage of the session/id is that you end up with stateful query instances, Stateful instances are also problematic. You have essentially two paths through the code: first time and subsequent time. If you write the code statelessly, there is only one path. Fewer bugs,

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Per Einar Ellefsen
At 18:20 12.06.2002, John Siracusa wrote: On 6/12/02 12:17 PM, Perrin Harkins wrote: James G Smith wrote: The nice thing about the context then is that customers can have multiple ones for multiple windows and they can have more than they have windows. How do you tie a context to a

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread John Siracusa
On 6/12/02 12:57 PM, Per Einar Ellefsen wrote: But what if someone opens one of the links in a different window, and continue on the same pages as in the original window, but with different parameters? The session ID would be the same, the context id would be the same, but the params would be

Re: Mapping to location /

2002-06-12 Thread Per Einar Ellefsen
At 18:41 12.06.2002, md wrote: I'm replacing an exisiting PHP site with mod_perl and Template-Toolkit. I normally set up mod_perl to use a location like this: Location /something and set the handler to my mod_perl module. However, I need to map to / since I'm replacing a system where there

Re: Mapping to location /

2002-06-12 Thread md
--- Aaron Ross [EMAIL PROTECTED] wrote: Would Files *.phtml /Files do the trick? No...the files don't actually exist under htdocs since I'm using Template-Toolkit. Thanks though. __ Do You Yahoo!? Yahoo! - Official partner of 2002

Re: Mapping to location /

2002-06-12 Thread Per Einar Ellefsen
At 19:08 12.06.2002, md wrote: --- Aaron Ross [EMAIL PROTECTED] wrote: Would Files *.phtml /Files do the trick? No...the files don't actually exist under htdocs since I'm using Template-Toolkit. Oh, so your .phtml things are really just TT templates? What about: Location

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Perrin Harkins
John Siracusa wrote: On 6/12/02 12:57 PM, Per Einar Ellefsen wrote: But what if someone opens one of the links in a different window, and continue on the same pages as in the original window, but with different parameters? The session ID would be the same, the context id would be the same, but

Re: Mapping to location /

2002-06-12 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: Can't you just drop the Location and use Files *.phtml SetHandler /Files or something like that? Seems like it would avoid some overhead for you. True...but the files don't actually exist. The path/filename is used to map to a

Anti caching and auto refresh problem

2002-06-12 Thread Steve Walker
I'm setting the following headers with mod_perl and there seems to be a bug in the way netscape 4.7 handles them. The page is being auto refreshed by Netscape if the document in cache is compared to document on network preference is set to every time. I've tried IE and I don't seem to have the

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Jeff AA
From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 16:29 Agreed, but he wasn't talking about storing the results, just the query parameters and current offset / number of rows, which is a-ok for putting into a session. No, that's exactly what ISN'T okay for

Re: Mapping to location /

2002-06-12 Thread Per Einar Ellefsen
At 19:14 12.06.2002, Per Einar Ellefsen wrote: Location .*\.phtml|/ Sorry, make that LocationMatch ... /Location And /LocationMatch of course. -- Per Einar Ellefsen [EMAIL PROTECTED]

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Perrin Harkins
Rob Nagler wrote: Stateful instances are also problematic. You have essentially two paths through the code: first time and subsequent time. If you write the code statelessly, there is only one path. Fewer bugs, smaller code, less development. I find you can tie this cache stuff up inside

Re: Mapping to location /

2002-06-12 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 19:14 12.06.2002, Per Einar Ellefsen wrote: Location .*\.phtml|/ Sorry, make that LocationMatch ... /Location And /LocationMatch of course. That should work...thanks. For the most part *all* .phtml pages will be doing the same

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Perrin Harkins
Jeff AA wrote: Interestingly MySQL and other DBs are often as fast as simple disk access - contrary to popular wisdom, most DB engines actually cache in memory, with more data access information and hence effective cache memory usage than is available to external cache components. Yes,

Re: Anti caching and auto refresh problem

2002-06-12 Thread Geoffrey Young
Steve Walker wrote: I'm setting the following headers with mod_perl and there seems to be a bug in the way netscape 4.7 handles them. The page is being auto refreshed by Netscape if the document in cache is compared to document on network preference is set to every time. I've tried IE and

Re: Internet Explorer sending nothing in subsequent posts

2002-06-12 Thread Slava Bizyayev
Title: Internet Explorer sending nothing in subsequent posts Please, could you give us details about your MSIE: version, platform, User-Agent mask? Thanks, Slava - Original Message - From: Harnish, Joe To: '[EMAIL PROTECTED]' Sent: Wednesday, June 12, 2002 9:28 AM

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Issac Goldstand
- Original Message - From: John Siracusa [EMAIL PROTECTED] To: Mod Perl Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 8:06 PM Subject: Re: mod_perl/passing session information (MVC related, maybe...) On 6/12/02 12:57 PM, Per Einar Ellefsen wrote: But what if someone

Re: Apache Error Log

2002-06-12 Thread Randy Kobes
On Wed, 12 Jun 2002, Jaberwocky wrote: No, all I really want to do is print to STDERR As Stas mentioned, it'd be helpful to see a short snippet to illustrate your problem ... But the fact that you don't see the messages in the logs until a server shutdown/restart suggests some buffering going

Re: apache 2 mod_perl 2 Apache::DBI

2002-06-12 Thread Randy Kobes
On Sun, 9 Jun 2002, Yuri A. Kabaenkov wrote: Hello, How can i install Apache::DBI module with mod_perl 2? I'm not sure what the current status of this is, but see the discussion of Apache::DBIPool at http://perl.apache.org/release/docs/2.0/user/overview/overview.html. best regards,

RE: Internet Explorer sending nothing in subsequent posts

2002-06-12 Thread Harnish, Joe
Title: Internet Explorer sending nothing in subsequent posts I am running IE 5.50.4807.2300 on Win2k, all defaults. -Original Message-From: Slava Bizyayev [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 12, 2002 2:06 PMTo: Harnish, Joe; [EMAIL PROTECTED]Subject: Re:

Re: Mapping to location /

2002-06-12 Thread darren chamberlain
* md [EMAIL PROTECTED] [2002-06-12 13:15]: --- Per Einar Ellefsen [EMAIL PROTECTED] wrote: Can't you just drop the Location and use Files *.phtml SetHandler /Files or something like that? Seems like it would avoid some overhead for you. True...but the files don't actually

Re: separating C from V in MVC

2002-06-12 Thread Fran Fabrizio
Ok, thanks to you all and this great discussion I want to try to make our current project into an MVC-style app, so what now? This MVC discussion could not have come at a better time - our little app is all grown up now and needs a real architecture. I have read the MVC threads in depth

Re: Mapping to location /

2002-06-12 Thread md
--- darren chamberlain [EMAIL PROTECTED] wrote: If you use a translation handler, you can just return DECLINED for everything you aren't specifically handling, and let mod_dir do it's thing, instead of emulating it. I still would like to check first if there is an index.phtml template

RE: separating C from V in MVC

2002-06-12 Thread Jeff
From: Fran Fabrizio [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 21:48 Nothing indepth, just a quick response, but it looks like your huge if statement can be replaced using a hash. Maybe something like: # just an eg, this data is static and can be required from # your startup.pl so that

Idiot question: headers at the base of the page.

2002-06-12 Thread Rafiq Ismail (ADMIN)
I'm doing squinty eyed coding and need someone to knock common sense into me. In the right order - as far as I can see - I have my content_type ;send_http_headers; $r-print'ed. With loads of poo in between. Under what circumstances would my page render, dumping the HTTP headers at the base?

RE: separating C from V in MVC

2002-06-12 Thread Jim Martinez
On Jun 12 Jeff wrote: From: Fran Fabrizio [mailto:[EMAIL PROTECTED]] Sent: 12 June 2002 21:48 Nothing indepth, just a quick response ... I too am using mod_perl just for Apache::Registry, and would also like to look for alternatives. Answers the questions posed by Fran would also

Re: Mapping to location /

2002-06-12 Thread Per Einar Ellefsen
At 23:06 12.06.2002, md wrote: --- darren chamberlain [EMAIL PROTECTED] wrote: If you use a translation handler, you can just return DECLINED for everything you aren't specifically handling, and let mod_dir do it's thing, instead of emulating it. I still would like to check first if

Re: Apache Error Log

2002-06-12 Thread Doug MacEachern
On Wed, 12 Jun 2002, Jaberwocky wrote: No, all I really want to do is print to STDERR you can use warn() instead which writes to stderr and always autoflushes. or turn on autoflush of STDERR yourself, from perlfunc.pod: $oldfh = select(STDERR); $| = 1; select($oldfh); or update modperl-2.0

Re: Internet Explorer sending nothing in subsequent posts

2002-06-12 Thread Slava Bizyayev
Title: Internet Explorer sending nothing in subsequent posts Are you using content compression over the SSL? - Original Message - From: Harnish, Joe To: 'Slava Bizyayev' ; [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 2:42 PM Subject: RE: Internet Explorer

Re: separating C from V in MVC

2002-06-12 Thread kyle dawkins
Fran (et al) I've stayed out of the MVC chitchat for a long time (very interesting thread) because it's such a deep topic. But seeing as how Fran has some concrete questions... 3. How do you prevent a Controller from just becoming another big if statement, or is this their purpose in

Re: tutorials (was: Re: rfc Apache::Dynagzip)

2002-06-12 Thread Slava Bizyayev
From: Stas Bekman [EMAIL PROTECTED] Subject: Re: tutorials (was: Re: rfc Apache::Dynagzip) Probably the best post it here first, so we can get it reviewed and commented on before we add it to the docs. Since now the draft tutorial Features of Content Compression for Different Web Clients

Re: tutorials (was: Re: rfc Apache::Dynagzip)

2002-06-12 Thread Per Einar Ellefsen
At 00:04 13.06.2002, Slava Bizyayev wrote: From: Stas Bekman [EMAIL PROTECTED] Subject: Re: tutorials (was: Re: rfc Apache::Dynagzip) Probably the best post it here first, so we can get it reviewed and commented on before we add it to the docs. Since now the draft tutorial Features of

Re: Mapping to location /

2002-06-12 Thread darren chamberlain
* md [EMAIL PROTECTED] [2002-06-12 17:05]: --- darren chamberlain [EMAIL PROTECTED] wrote: If you use a translation handler, you can just return DECLINED for everything you aren't specifically handling, and let mod_dir do it's thing, instead of emulating it. I still would like to check

RE: Apache Error Log

2002-06-12 Thread Jim Morrison [Mailinglists]
Sorry.. Haven't read / Can't find the whole thread.. But... Surely just: print STDERR Hello World; ... I always just stick this in my code... ### DEBUGGER sub debug{ my $message = shift; if ($debug){ print STDERR $message\n;

Using Active Directory and mod_perl

2002-06-12 Thread John Whitnack
Is there a way to access Active Directory with mod_perl ? John Whitnack

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-12 Thread Andreas J. Koenig
On Wed, 12 Jun 2002 17:18:53 +0100, Nick Ing-Simmons [EMAIL PROTECTED] said: Is this apache running multi-threaded? or just serially ? So far only tested with -Dusemultiplicity -Duseperlio. IIRC the back trace the SEGV was in stdio rather than in perl itself, suggesting that

PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
Hello folks, I am trying to implement a simple PerlTransHandler to change: http://myserver/ to http://myserver.rhythm.com/ And here is my code: package MIS::GENERAL::FixURL; use Apache::Constants qw(DECLINED); use strict; sub handler { my $r = shift; my $uri = $r-uri;

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
Quoting Rasoul Hajikhani ([EMAIL PROTECTED]): Hello folks, I am trying to implement a simple PerlTransHandler to change: http://myserver/ to http://myserver.rhythm.com/ And here is my code: package MIS::GENERAL::FixURL; use Apache::Constants qw(DECLINED); use strict;

Re: tutorials (was: Re: rfc Apache::Dynagzip)

2002-06-12 Thread Slava Bizyayev
Sorry folks, I experience some access problems with devl4. Server is down temporarily. I'll let you know when ready to continue. Slava - Original Message - From: Slava Bizyayev [EMAIL PROTECTED] To: Stas Bekman [EMAIL PROTECTED]; modperl list [EMAIL PROTECTED] Sent: Wednesday, June 12,

Re: PerlTransHandler problem

2002-06-12 Thread Randal L. Schwartz
Rasoul == Rasoul Hajikhani [EMAIL PROTECTED] writes: Rasoul I am trying to implement a simple PerlTransHandler to change: Rasoul http://myserver/ Rasoul to Rasoul http://myserver.rhythm.com/ Both of those are / as far as as $r-uri is concerned. What are you *really* trying to do? --

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
I am realy trying to make sure that all requests for http://myserver/ are treated as http://myserver.rhythm.com/ so that my other applications that depend on reading cookies down the request chain could actually do so... -r Randal L. Schwartz wrote: Rasoul == Rasoul Hajikhani [EMAIL

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
A funny thing is happening with my PerlTransHandler... It is not being called at all... :( I have added warn messages but they never appear in the error log. I am at a loss and hoping that some one may have an answer... -r Lyle Brooks wrote: Quoting Rasoul Hajikhani ([EMAIL PROTECTED]):

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
You are only going to have Transhandlers defined in the main server or virtual host, not in any Location or Directory containers. Check and see if you have any other Transhandlers defined earlier in your httpd.conf file. If an earlier Transhandler returns OK, then later ones won't be called.

.htaccess errors

2002-06-12 Thread Darren Ward
Hi All I'm having trouble with an Apache+modssl+mod_perl installation. Mod_perl itself is working great as I can access the /perl-status location and read of the modules/memory use etc but after setting up a subdirectory to use Apache::AuthenDBI I successfully received the login window on the

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
Sounds like it's more of a DNS issue than a modperl issue. Depending on what your motivation for requiring the full name, you may also explicitly set ServerName myserver.rhythm.com UseCanonicalName off Quoting Rasoul Hajikhani ([EMAIL PROTECTED]): I am realy

[OT] Q:MVC and FuseBox methodology A?

2002-06-12 Thread Jim Helm
Does anyone know how MVC maps to the fusebox methodology? I haven't used it under PHP, but the adaptation to ASP applies almost directly to Apache::ASP, and at least seems like it's well thought out and practical. Maybe it's really just the Controller aspect of MVC. I'm still trying to wrap

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
Quoting Lyle Brooks ([EMAIL PROTECTED]): Sounds like it's more of a DNS issue than a modperl issue. Depending on what your motivation for requiring the full name, you may also explicitly set ServerName myserver.rhythm.com UseCanonicalName off errr... should be UseCanonicalName On

Re: PerlTransHandler problem

2002-06-12 Thread simran
What it sounds like you want is: PerlTransHandler Whatever::CheckName and in CheckName.pm sub handler { my $r = instance Apache::Request(shift); if ($r-hostname !~ /rhythm\.com/) { $r-header_out(Location = http://myserver.rhythm.com.$r-uri); return REDIRECT; } else {

Re: separating C from V in MVC

2002-06-12 Thread Perrin Harkins
Wow, this is a long one. As usual, everyone has slightly different ideas about how to do MVC, so keep a grain of salt handy. This basic pattern repeated ad infinitum. It's grown way out of control, is a pain to work with, and just feels wrong, very wrong. :-) We've all been there. 1. Is

Re: .htaccess errors

2002-06-12 Thread Brian Reichert
On Thu, Jun 13, 2002 at 10:39:28AM +1000, Darren Ward wrote: This has got me stumped as I never put a .htaccess file in there but for the sake of trying to fix it I did place one there but it's still complaining that one doesn't exist even though it's set readable etc etc Any help or

Fooey. Can't compile mod_perl.

2002-06-12 Thread southernstar
Hi, I can't compile mod_perl 1.27 on Cygwin with apache 1.3.24-5 src no matter what I do. At first it complained (make complained) that it didn't know how to make httpd.h etc, so I made them dummy targets with .PHONEY. OK, fine. Then it couldn't find them in apache_inc.h - so I put the path

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-12 Thread Rob Nagler
Perrin Harkins writes: I find you can tie this cache stuff up inside of your data access objects and make it all transparent to the other code. Absolutely. A session is useful for very limited things, like remembering if this user is logged in and linking him to a user_id. We store this