Re: how to pass data in internal redirects?

2002-02-26 Thread dom
I suppose that controllers would use internal redirects to call the views, is there a way to pass Perl data this way? For the project I work on (a WWW-enabled PKI), we simply use CGI-encoded URLs. This way, we can do the controllers in Perl and the views in PHP, which is great for security

Re: how to pass data in internal redirects?

2002-02-26 Thread Rafiq Ismail (ADMIN)
Surprisingly I'm actually doing a proof of principle on the same theme. I'm developing a set of MVC classes which tie in with either tt2 or mason. I've got abstract Model, View and Controller classes. View can be subclassed into HTML, XML, whatever. I'm using normal classes at the moment, but

[QUESTION][BUG] apache dies with SIGSEGV

2002-02-26 Thread gaston
Hi list I wrote a small perl module using perl/Expat for parsing XML-files. With apache 1.3.19 and perl 5.6.0 and Expat 2.27 it works fine. In my new configuration (apache 1.3.20, perl 5.6.1 and Expat 2.30) apache dies with an SIGSEGV on loading. The error occured during the function call

Re: Deleting a PerlSetVar variable

2002-02-26 Thread Geoffrey Young
simran wrote: Thanks Geoff. What you have suggested can solve the problem... i'm however, preferably looking at deleting a set var via my apache config file, and don't have a '$r' /request_object available there. but you do have an Apache::Server object...

Re: how to pass data in internal redirects?

2002-02-26 Thread Henigan, Timothy
I am also implementing a MVC pattern under mod_perl for an internal project at work. The app collects process data from our manufacturing processes and makes it available on the internal network. Here's a quick overview of the way I've done it. Model: The model consists of a backend database

Can't retrieve form params using post methods, $r-notes and Apache::Request

2002-02-26 Thread Mat
Hi all, I have the following configuration. Location /my SetHandler perl-script PerlAccessHandler MyCheck PerlHandler MyHomePage /Location The PerlAccessHandler checks if the user cookie is valid and set a $r-notes() entry to pass the user id to the MyHomePage handler which do his work.

[BUG?] PerlFreshRestart gives undef. subs (not the one in FAQ !!)

2002-02-26 Thread Sreeji K Das
Hi All, I had been banging my head on this problem for a while finally I guess I've found a solution. Following was the problem: I had PerlFreshRestart On PerlRestartHandler Apache::Symbol in my conf. I needed the restart func. didn't want to use other alternates (like Apache::Reload,

Re: Apache::Session

2002-02-26 Thread Jon Robison
As an add-on to this, does anyone know if one could use MySQL HEAP (memory resident) tables for the session table? --Jon Robison Rob Bloodgood wrote: I am using Apache::Session with Postgresql. Unfortunately I had never worked with a huge amount of data before I started to program

Re: how to pass data in internal redirects?

2002-02-26 Thread Jon Robison
$r-pnotes persist across internal_redirects, I believe. --Jon Robison Igor Sysoev wrote: On Tue, 26 Feb 2002, F. Xavier Noria wrote: I suppose that controllers would use internal redirects to call the views, is there a way to pass Perl data this way? For example, in the hangman game

How to get a remote user from the mod_perl + SSL?

2002-02-26 Thread Wong, Connie
Hello, I'm running mod_perl with Apache-SSL on Solaris 8. I setup a self-certificate for the basic authentication. I want to get the login name from the client (REMOTE_USER). In CGI, there is an environment variable $ENV{REMOTE_USER} that I can use. In mod_perl with SSL, how do I get the

Re: [QUESTION][BUG] apache dies with SIGSEGV

2002-02-26 Thread Mark P. Fister
On Tue, Feb 26, 2002 at 11:36:39AM +0100, gaston wrote: Hi list I wrote a small perl module using perl/Expat for parsing XML-files. With apache 1.3.19 and perl 5.6.0 and Expat 2.27 it works fine. In my new configuration (apache 1.3.20, perl 5.6.1 and Expat 2.30) apache dies with an

Re: how to pass data in internal redirects?

2002-02-26 Thread F . Xavier Noria
On Tue, 26 Feb 2002 08:32:37 -0500 Henigan, Timothy [EMAIL PROTECTED] wrote: : I don't know if this is the best design, but it works for this application. : If you made it this far into the email, you might be interested in some : sample code...let me know. If you have comments, please speak

Re: Calling an Apache::ASP page from an Apache::Registry script

2002-02-26 Thread Perrin Harkins
Andrew Ho wrote: I've been investigating other template systems to try to find similar functionality in an existing package for a non-Tellme related project and haven't been able to find any embedded-Perl solutions that can be called from a .pl and still have the benefits of template caching.

Re: How to get a remote user from the mod_perl + SSL?

2002-02-26 Thread Geoffrey Young
Wong, Connie wrote: Hello, I'm running mod_perl with Apache-SSL on Solaris 8. I setup a self-certificate for the basic authentication. I want to get the login name from the client (REMOTE_USER). In CGI, there is an environment variable $ENV{REMOTE_USER} that I can use. In mod_perl with

Re: how to pass data in internal redirects?

2002-02-26 Thread Perrin Harkins
F. Xavier Noria wrote: For example, in the hangman game in O'Reilly's book a controller would load a session from the cookie, process user's guest, modify the state and redirect the request internally to the view. It would probably be orders of magnitude faster to just call a template

RE: Deleting a PerlSetVar variable

2002-02-26 Thread Stathy G. Touloumis
See chapter 8 of the Eagle book (Apache Modules in Perl/C) for complete coverage of hooking into the apache configuration. It really allows you to do some pretty nifty stuff and would easily allow you to perform what you want. At first it seems overkill to know but once you do it opens many

ANNOUNCE: Apache-AuthenNTLM 0.14

2002-02-26 Thread Gerald Richter
The URL ftp://ftp.dev.ecos.de/pub/perl/ntlm/Apache-AuthenNTLM-0.14.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GR/GRICHTER/Apache-AuthenNTLM-0.14.tar.gz size: 45446 bytes md5: 704a1c161d2a308c74b1397e5bca5a1f The purpose of this module is to perform a user authentication

Re: how to pass data in internal redirects?

2002-02-26 Thread Joachim Zobel
At 16:06 26.02.02 +0100, you wrote: So, a controller could in principle perform a call to a template engine as yours does, conceptually there is no need to do that internal redirect. In fact, there is no need to have two different files if I take the pattern a bit further. For instance, I

Re: Can't retrieve form params using post methods, $r-notes and Apache::Request

2002-02-26 Thread Perrin Harkins
Mat wrote: Hi all, I have the following configuration. Location /my SetHandler perl-script PerlAccessHandler MyCheck PerlHandler MyHomePage /Location The PerlAccessHandler checks if the user cookie is valid and set a $r-notes() entry to pass the user id to the MyHomePage

Formatted Printing

2002-02-26 Thread Rasoul Hajikhani
Hello folks, I have just writen an online ordering system for our company using mod_perl. The user must also be able to print the form, preserving the format. Since we use netscape (4.5) for Irix 6.5, I can't use the print button of the browser, the format is not preserved. Any one know of any

Re: Formatted Printing

2002-02-26 Thread Paul Lindner
On Tue, Feb 26, 2002 at 07:12:55PM -0800, Rasoul Hajikhani wrote: Hello folks, I have just writen an online ordering system for our company using mod_perl. The user must also be able to print the form, preserving the format. Since we use netscape (4.5) for Irix 6.5, I can't use the print

cvs commit: modperl-2.0/xs/Apache/SubRequest Apache__SubRequest.h

2002-02-26 Thread dougm
dougm 02/02/26 11:03:58 Added: xs/Apache/SubRequest Apache__SubRequest.h Log: moving the subrequest special case here, to flush main output buffer before running a subrequest. Revision ChangesPath 1.1

cvs commit: modperl-2.0/xs/maps apache_functions.map

2002-02-26 Thread dougm
dougm 02/02/26 11:04:25 Modified:xs/maps apache_functions.map Log: call the modperl wrapper for ap_run_sub_req Revision ChangesPath 1.44 +1 -1 modperl-2.0/xs/maps/apache_functions.map Index: apache_functions.map

cvs commit: modperl-2.0/t/htdocs .cvsignore

2002-02-26 Thread dougm
dougm 02/02/26 11:09:10 Added: t/htdocs .cvsignore Log: ignore Revision ChangesPath 1.1 modperl-2.0/t/htdocs/.cvsignore Index: .cvsignore === index.html perlio

cvs commit: modperl-2.0/t/htdocs/includes-registry test.pl

2002-02-26 Thread dougm
dougm 02/02/26 11:10:38 Added: t/htdocs/includes-registry test.pl Log: test for mod_include include virtual of a mod_perl script Revision ChangesPath 1.1 modperl-2.0/t/htdocs/includes-registry/test.pl Index: test.pl

cvs commit: modperl-2.0/t/conf extra.conf.in

2002-02-26 Thread dougm
dougm 02/02/26 11:12:04 Modified:t/conf extra.conf.in Log: configuration for mod_include+mod_perl test Revision ChangesPath 1.2 +12 -0 modperl-2.0/t/conf/extra.conf.in Index: extra.conf.in