Re: Trouble writing to a file from mod_perl

2003-07-31 Thread Carl Brewer
Rod Brick wrote: I'm trying to write for a file from a mod_perl script. I can write successfully to a file located in /tmp, but I cannot write to the dir containing the script, nor to the apache logs dir. How can this be accomplished? Is there a setting in httpd.conf that I need to specify?

Re: mp2: multiple include paths accross virtual servers?

2003-07-25 Thread Carl Brewer
Stas Bekman wrote: You need to add: PerlOptions +Parent PerlOption `Parent' requires an ithreads enabled Perl *doh* Carl

mp2: multiple include paths accross virtual servers?

2003-07-24 Thread Carl Brewer
I'm running into something that may be a feature(!) of my misunderstanding of how mp works. I've got this defined in a VirtualHost directive: PerlRequire /data/www/foo/secure/etc/startup.pl For a number of different virtual servers. Is it possible for mp2 (or mp in general) to keep state

Re: cookies and POST in pure MP2?

2003-07-23 Thread Carl Brewer
Egor Korablev wrote: Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? You can either use libapreq, which is _almost_ there :) or hack yuor own bits up cribbed from CGI.pm or the test stuff in the mp2 test suite. That's what I'm using

Re: mp2: architectural question re authentication handlers

2003-07-11 Thread Carl Brewer
Cees Hek wrote: [chomp] Thanks Cees, that's exactly what I needed :) My stuff is all completely generated by scripts where I need access control, but I certainly see the use for controlling static entity access. Carl

mp2: architectural question re authentication handlers

2003-07-10 Thread Carl Brewer
Forgive me for asking yet another fundamentally basic question. I'm cutting a web app over from PHP to mod_perl 2, and am wondering how 'best' (for which there are many flavours ...) to handle authentication. At present I've knocked up a site that does auth via a form and state tracking with

mp2: some POST data is showing up as a hashref after I parse it

2003-06-25 Thread Carl Brewer
Apache 2.0.46 modperl 1.99-10.dev (CVS snapshot from last night) perl 5.8.0 NetBSD 1.6.1 I've got a form that I'm posting to an MP2 script, and am parsing the output with the following subroutines : sub hash_post { # returns a hash of all the POST values my ($r) = shift; my

Re: mp2: right place to unescape HTML?

2003-06-18 Thread Carl Brewer
Stas Bekman wrote: Carl Brewer wrote: I'm using Stas's read_post() call from the test directory in mp1.99-10-dev, and am using it to grab POST data of the form of an email address .. this is giving me this : read_post returned : username=carl%40somewherepassword=foo Escaped

Re: mp2: Session method not seeming to set extra records?

2003-06-18 Thread Carl Brewer
Carl Brewer wrote: I'm an idiot :) It's important that the user accessing a MySQL database to do any work with Apache::Session::MySQL or Session have update permission as well as insert, select and delete on the sessions table. Carl

mp2: right place to unescape HTML?

2003-06-17 Thread Carl Brewer
I'm using Stas's read_post() call from the test directory in mp1.99-10-dev, and am using it to grab POST data of the form of an email address .. this is giving me this : read_post returned : username=carl%40somewherepassword=foo Escaped the @ ... of course. I'm curios, where's the best place to

mp2: Re: Can't call method method on an undefined value at Apache-Test/lib/Apache/TestRequest.pm

2003-06-17 Thread Carl Brewer
Brent, I think Stas was having a bit of a look at it, I just ignored the error messages and installed it anyway :) Carl Brent Jensen wrote: Carl, I'm getting the same error on the make test w/ Mod Perl. Did you resolve this issue? I'm using FreeBSD 5.1. Is it really an issue or is it just a

mp2: Session method not seeming to set extra records?

2003-06-17 Thread Carl Brewer
mp1.99.10-dev apache 2.0.46 Session-0.01 (by Olivier Poitrey) I've got a subroutine as follows : sub login { # checks supplied username passwd against users table in db # if ok, creates a session returns session_id username # otherwise, returns 0 my ($supplied_username,

Re: How practical is that Practical mod_perl?

2003-06-14 Thread Carl Brewer
Stas Bekman wrote: Slava, [chomp] I think it's a time to start a new thread on how to improve: http://perl.apache.org/docs/tutorials/client/compression/compression.html For starters, apache2/mp2 coverage. As I understand it, and my logs seem to indicate, mod_deflate compresses everything

Re: mp2: really dumb q re getting values sent to a form

2003-06-12 Thread Carl Brewer
Stas Bekman wrote: Carl Brewer wrote: My appologies, I've tried to grok this from the doco, but must have missed it somewhere while trying to parse apache::request somehow? You mean Apache::RequestRec. Apache::Request is a 3rd party module. I've got a script, I want to grab submitted values

mp2: really dumb q re getting values sent to a form

2003-06-11 Thread Carl Brewer
My appologies, I've tried to grok this from the doco, but must have missed it somewhere while trying to parse apache::request somehow? I've got a script, I want to grab submitted values to it of the form : http://foo.bar/perl/script.pl?a=4 And I want to be able to work out what a is within

mp2: session/auth handlers stable enough to use?

2003-06-02 Thread Carl Brewer
I'm looking at Apache::SessionX from Embperl as a possible session tracker for an app I'm doing with Template::Toolkit, has anyone any comments/suggestions re how mature this, (or any other recommendations?) session tracking module is under mp2? I've read some comments on CPAN discussing the

mp2: apache 2.0.46 works

2003-05-29 Thread Carl Brewer
I've just spun up apache 2.0.46 on Solaris 8, and the install of mod_perl 1.99_09 seems fine so far. Carl

Re: CGI.pm and friends port to mp2

2003-03-13 Thread Carl Brewer
Stas Bekman wrote: Lincoln Stein wrote: You want to move to MP2, if one of the following reasons apply: - you are stuck with Apache2 - you want to use i/o filters - you want to write your own protocol handlers - you want to use a threaded mod_perl - you are stuck with win32 (mp1 is unusable

mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache 2.0.44working on any version of OpenBSD?

2003-02-27 Thread Carl Brewer
As no-one seems interested in this after a few weeks, I'm considering NetBSD ... anyone got mod_perl2 and apache2 running nicely on NetBSD 1.6? That's my next-choice O/S for my application, but I don't have a testbed yet to play with. Carl Carl Brewer wrote: Scanning both dev.modperl and here

Re: mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache2.0.44 working on any version of OpenBSD?

2003-02-27 Thread Carl Brewer
Stas Bekman wrote: Carl Brewer wrote: As no-one seems interested in this after a few weeks, It's not about not being interested, but lacking the access to the system and/or lacking the expertise on these platforms. We really need to have at least one person taking care of problems on each

mp2: anyone got mp2 and apache 2.0.44 working on any version of OpenBSD?

2003-02-20 Thread Carl Brewer
Scanning both dev.modperl and here, I've found a couple of mails concerning OpenBSD and mod_perl 2 (1.99_08) with Apache 2.0.44, I've tried a few quick hacks and have been unable to get it working either, with the same error as seen on : [EMAIL

mp2: any recommendations for template systems yet?

2003-02-20 Thread Carl Brewer
Do any of you have any recommendations for template systems with mp2? Not of the religious kind (!) but more on the lines of what's working with mp2 at the moment? I'm about to port a PHP app to mod_perl and will be covering IPv6 traffic with it, so (and I want to as well :) ) will have to use