Re: How do I have a PerlAuthenHandler not popup the login box?

2003-07-18 Thread Thomas Klausner
Hi!

On Thu, Jul 17, 2003 at 06:07:48PM -0700, Jason Fong wrote:
 I'm making a login system that uses a web form instead of the browser's
 popup box to input the username/password.  My problem is that when I use
 my authentication script as a PerlAuthenHandler in the .htaccess, it
 insists on having the browser show the popup username/password box.  I
 tried making a simple handler function that just returns OK, but I still
 get the login box.

This the way BASIC Authentication works. To solve your problem (cleanly),
you'll need to use your own custom authentication mechanism. This is not
as hard as it sound.

Take a look at Apache::AuthCookie for an example (quite likely it is exactly
what you are looking for)

Or read chapter 13.7 Writing your own authentication mechanism in the
mod_perl Cookbook.


 
-- 
#!/usr/bin/perl   http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}


Re: Problem configuring and making mod_perl

2003-07-18 Thread Stas Bekman
Richard Kurth wrote:
Thanks for the suggestion but it did not work I still get the same 
error. Also this is a rh9.0 Server
it's possible that you don't have the kerberos package installed. What:

  % locate krb5.h

gives? If you get nada, install the package and try again.

I hit the same error trying to build on a rh9.0 workstation. This solved
my problem:
CPPFLAGS=-I/usr/kerberos/include
export CPPFLAGS
[...]
 -DMOD_SSL_VERSION=\2.8.12\ mod_ssl.c  mv mod_ssl.o mod_ssl.lo
 In file included from /usr/include/openssl/ssl.h:179,
   from mod_ssl.h:116,
   from mod_ssl.c:65:
 /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
[...]

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: mod_per2/PerlInc in Virtualhost

2003-07-18 Thread Stas Bekman
Thomas Schindl wrote:
Hi,

Is it possible to use different PerlINC-Paths in different virtual hosts
in mod_perl2. In mod_perl1 I've used Apache::PerlVINC what do I use in
mod_perl2?
It's possible with threaded mpm:
http://perl.apache.org/docs/2.0/user/config/config.html#toc_C_Parent_


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: clones and parents

2003-07-18 Thread Stas Bekman
Marc M. Adkins wrote:
No wonder this seemed familiar.  I wrote pretty much the same memo six weeks
ago.  D'oh!  I've been spending too much time at the keyboard...
I thought I had dejavu ;)

So is PerlOptions +Parent working?  Whenever I enable it I get a segfault on
W2K / Ap2.0.46 / mp1.99.10dev.
have you submitted a bug report?
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Problem configuring and making mod_perl

2003-07-18 Thread Richard Kurth
I get this when I run locate krb5.h
/usr/kerberos/include/gssapi/gssapi_krb5.h
/usr/kerberos/include/krb5.h
So I would say it is there



Richard Kurth wrote:
Thanks for the suggestion but it did not work I still get the same error. 
Also this is a rh9.0 Server
it's possible that you don't have the kerberos package installed. What:

  % locate krb5.h

gives? If you get nada, install the package and try again.

I hit the same error trying to build on a rh9.0 workstation. This solved
my problem:
CPPFLAGS=-I/usr/kerberos/include
export CPPFLAGS
[...]
 -DMOD_SSL_VERSION=\2.8.12\ mod_ssl.c  mv mod_ssl.o mod_ssl.lo
 In file included from /usr/include/openssl/ssl.h:179,
   from mod_ssl.h:116,
   from mod_ssl.c:65:
 /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
[...]

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: modperl2 Apache::HTTP_FORBIDDEN... [long post]

2003-07-18 Thread Stas Bekman
Shannon Eric Peevey wrote:


use constant MP2 = ($mod_perl::VERSION = 1.99);

# test for the version of mod_perl, and use the appropriate libraries
BEGIN {
   if (MP2) {
   require Apache::Const;
   require Apache::Access;
   require Apache::Connection;
   require Apache::Log;
   require Apache::RequestRec;
   require Apache::RequestUtil;
   apache::Const-import(-compile =
  
 ^
This might be a typo, but if you change that to Apache::Const
(upper case 'A'), does that help?
 

Fantastic!!!  I have been staring at all of the wrong code for way too 
long... :P

Thanks for taking the time to find my error :)

I should have a working version by the beginning of next week.
I think that this still won't work. The reason:

 Apache::Const-import(-compile = 
'HTTP_UNAUTHORIZED','HTTP_INTERNAL_SERVER_ERROR','DECLINED','HTTP_FORBIDDEN','OK'); 

only compiles the constants, it doesn't import them. Drop the '-compile =' 
part, and then they will be imported. -compile tell Apache::Const to not 
import the constants but to compile them.

--

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: modperl2 Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERRORimplemented?

2003-07-18 Thread Stas Bekman
Shannon Eric Peevey wrote:
Stas Bekman wrote:

speeves wrote:

Hi!

Just wondering if Apache::HTTP_FORBIDDEN and 
Apache::HTTP_INTERNAL_SERVER_ERROR have been implemented?  I have 
been trying to port Apache::AuthenNTLM, and keep getting:

[Tue Jul 15 16:46:08 2003] [error] failed to resolve handler 
`Apache::AuthenNTLM'
[Tue Jul 15 16:46:08 2003] [error] [client 192.168.1.2] Bareword 
Apache::HTTP_FORBIDDEN not allowed while strict subs in u
se at /usr/local/lib/perl/5.6.1/Apache/AuthenNTLM.pm line 593.
Bareword Apache::HTTP_INTERNAL_SERVER_ERROR not allowed while 
strict subs in use at /usr/local/lib/perl/5.6.1/Apache/Authe
nNTLM.pm line 597.
Bareword Apache::HTTP_INTERNAL_SERVER_ERROR not allowed while 
strict subs in use at /usr/local/lib/perl/5.6.1/Apache/Authe
nNTLM.pm line 632.
BEGIN not safe after errors--compilation aborted at 
/usr/local/lib/perl/5.6.1/Apache/AuthenNTLM.pm line 671.
Compilation failed in require at (eval 10) line 3.

in the error_log.  I have other constants that are imported from 
Apache::Const, so do not think that it is a problem with scope...  
Here is the code:

line 593 --  return $self-{ntlmauthoritative} ? (defined($nonce) ? 
(MP2 ? Apache::HTTP_FORBIDDEN : Apache::Constants::HTTP_
FORBIDDEN) : (MP2 ? Apache::HTTP_INTERNAL_SERVER_ERROR : 
Apache::Constants::HTTP_INTERNAL_SERVER_ERROR)) : (MP2 ? Apache::DE
CLINED : Apache::Constants::DECLINED) ;

and

line 632 --- # return MP2 ? Apache::HTTP_INTERNAL_SERVER_ERROR : 
Apache::Constants::HTTP_INTERNAL_SERVER_ERROR ;

If you need more, let me know.




Have you imported them?

use Apache::Const compile -qw(Apache::HTTP_FORBIDDEN);

All the available Apache:: constants are listed here:

http://perl.apache.org/docs/2.0/api/Apache/Const.html

Yeah, unfortunately... :(  
Why unfortunately?

Though I seem to be chasing it down to a 
possible problem with the method handler:

sub handler ($$)

But even with a change to:

sub handler : method
This is an interesting one. How to make the two coexist in the same code base. 
Ideally you want to do this:

sub handler1 ($$) {}
sub handler2 : method {}
*handler = MP2 ? \handler2 : \handler1;

But probably it'll complain about different prototypes. Or it might just work. 
Give it a try.

I'm still not able to access the imported CONSTANTS This is 
definitely the most complex port that I've done, so is taking me a 
little while to find all of the buggies...   Will keep you posted :)
probably because a mistake in my example above, drop the compile part.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


RE: clones and parents

2003-07-18 Thread Marc M. Adkins
  So is PerlOptions +Parent working?  Whenever I enable it I get
 a segfault on
  W2K / Ap2.0.46 / mp1.99.10dev.

 have you submitted a bug report?
 http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

I never know whether to submit a bug report or not.  Often these things turn
out to be known issues or I find out it was my own bug at some later time...

mma



Re: clones and parents

2003-07-18 Thread Stas Bekman
Marc M. Adkins wrote:
So is PerlOptions +Parent working?  Whenever I enable it I get
a segfault on

W2K / Ap2.0.46 / mp1.99.10dev.
have you submitted a bug report?
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems


I never know whether to submit a bug report or not.  Often these things turn
out to be known issues or I find out it was my own bug at some later time...
If you get a segfault, chances are that something is broken, since the sw 
should gracefully handle cases when someone does something wrong and not segfault.



__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Problem configuring and making mod_perl

2003-07-18 Thread Stas Bekman
Richard Kurth wrote:
I get this when I run locate krb5.h
/usr/kerberos/include/gssapi/gssapi_krb5.h
/usr/kerberos/include/krb5.h
So I would say it is there
Indeed. Next check the Makefile file and see why the path 
/usr/kerberos/include is not in includes list. e.g. you could manually fix it 
to add /usr/kerberos/include to the list, if CPPFLAGS doesn't have an effect.

Richard Kurth wrote:

Thanks for the suggestion but it did not work I still get the same 
error. Also this is a rh9.0 Server


it's possible that you don't have the kerberos package installed. What:

  % locate krb5.h

gives? If you get nada, install the package and try again.

I hit the same error trying to build on a rh9.0 workstation. This 
solved
my problem:

CPPFLAGS=-I/usr/kerberos/include
export CPPFLAGS
[...]

 -DMOD_SSL_VERSION=\2.8.12\ mod_ssl.c  mv mod_ssl.o mod_ssl.lo
 In file included from /usr/include/openssl/ssl.h:179,
   from mod_ssl.h:116,
   from mod_ssl.c:65:
 /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
[...]

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


CGI files in apache

2003-07-18 Thread AROSO Jose Antonio
Hi...

When I run a cgi file codified in perl in apache server the server says that
have a 500 internal server error.

What is it and how can resolve?

thanks




RE: CGI files in apache

2003-07-18 Thread csebe
Start by looking in Apache's error log to see what's reporting.

HTH,

Lian Sebe, M.Sc.
Freelance Analyst-Programmer
www.programEz.net 

 -Original Message-
 From: AROSO Jose Antonio [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 12:36 PM
 To: '[EMAIL PROTECTED]'
 Subject: CGI files in apache
 
 
 Hi...
 
 When I run a cgi file codified in perl in apache server the 
 server says that
 have a 500 internal server error.
 
 What is it and how can resolve?
 
 thanks
 
 


Need help, Global Hash corruption under mod_perl in perl 5.8.0 !?!

2003-07-18 Thread
Hi, 
 
I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/
http://www.ossp.org/pkg/tool/eperl/ ) for a long time (up to perl
5.6.1)
until our admin install perl 5.8.0 and recompiled apache and mod_perl
with it.
 
After that global hash $Cache where all precompiled eperl scripts kept
in becomes corrupted
(even under httpd -X) after several calls:
 
1 req:
http://www.server.com/w/love_text/main.pwml
http://www.server.com/w/love_text/main.pwml 
2 req:
http://www.server.com/w/code/main.pwml
http://www.server.com/w/code/main.pwml 
3 req:
http://www.server.com/w/gift/main.pwml
http://www.server.com/w/gift/main.pwml 
 
all scripts are different. After third call all become unpredictable:
calling http://www.server.com/w/gift/main.pwml
http://www.server.com/w/gift/main.pwml 
invokes code/main.pwml and other called script randomly!
 
switching off the Cache (recompiling script ) helps the problem 
all become corect, but what can corruct has so strange?
 
the same files works ok under mod_perl with perl 5.6.1...
 
-vlad



Re: mod_accel redirects

2003-07-18 Thread greg
Check UseCanonicalName in Apache config. What you describe is what happens
when this is turned ON and Apache generates a URL that points back to
itself. Try turning this off and see if it makes a difference.

On Fri, 18 Jul 2003, Philip Mak wrote:

 Given this server configuration (this is a front-end lightweight
 Apache, which uses mod_accel to proxy to a back-end mod_perl Apache):

snip

   GET /redir.asp HTTP/1.1
   Host: shoujoai.com

 and the following response:

   Location: http://www.shoujoai.com/mush/



Re: Problem configuring and making mod_perl

2003-07-18 Thread greg
Try adding a -I for /usr/kerberos/include. Since they are not in the
/usr/include path that may be why it has problems.

On Fri, 18 Jul 2003, Richard Kurth wrote:

 I get this when I run locate krb5.h
 /usr/kerberos/include/gssapi/gssapi_krb5.h
 /usr/kerberos/include/krb5.h

 So I would say it is there



 Richard Kurth wrote:
 Thanks for the suggestion but it did not work I still get the same error.
 Also this is a rh9.0 Server
 
 it's possible that you don't have the kerberos package installed. What:
 
% locate krb5.h
 
 gives? If you get nada, install the package and try again.
 
 I hit the same error trying to build on a rh9.0 workstation. This solved
 my problem:
 
 CPPFLAGS=-I/usr/kerberos/include
 export CPPFLAGS
 [...]
   -DMOD_SSL_VERSION=\2.8.12\ mod_ssl.c  mv mod_ssl.o mod_ssl.lo
   In file included from /usr/include/openssl/ssl.h:179,
 from mod_ssl.h:116,
 from mod_ssl.c:65:
   /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
 [...]
 
 __
 Stas BekmanJAm_pH -- Just Another mod_perl Hacker
 http://stason.org/ mod_perl Guide --- http://perl.apache.org
 mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
 http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Perrin Harkins
On Thu, 2003-07-17 at 16:51, Mark Maunder wrote:
  And then install those as a content and logging phase handler. If you
  have the time and the interest. I've tried this and the logging handler
  comes up with nothing in pnotes. I've also checked that it's not a sub
  request.

Did you get any further with this?  I've never heard of any problems
with pnotes(), but I also don't have a 1.27 installed to check it with. 
Does it work if you just set and read a note in the same handler?

- Perrin


IPC Open

2003-07-18 Thread Cameron B. Prince
Hi,

I have the following subroutine in a package that's called by an embperl
page via mod_perl:

sub MP3Check {
   my ($self,$params) = @_;
   use IPC::Open3;
   my ($pid,%values);

   $SIG{ALRM} = sub {
  my $kill = kill -9 $pid;
  system($kill);
  $values{'CHECK_PROBLEM'} = 1;
  return;
   };

   my $command = qq!$self-{MP3Check} -v $params-{file}!;
   alarm(5);
   $pid = open3(*IN, *OUT, *ERR, $command);
   waitpid $pid, 0;
   alarm(0);
   close(IN);
   my @outlines = OUT;
   for ( @outlines ) {
  $values{$1} = $2 if /^([A-Z_]+)\s+(.*)$/;
   }
   return \%values;
}

I'm getting the error message:

[16307]ERR: 24: Error in Perl code: Can't locate object method OPEN via
package Apache::RequestRec at /usr/lib/perl5/5.8.0/IPC/Open3.pm line 136.

I read a post that mentions:

OPEN was added after 1.99_08. Please build the cvs version of mod_perl 2.0:
http://perl.apache.org/download/source.html#2_0_Development_Source_Distribut
ion

I then found this info on building an RPM from CVS:

http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/mod_perl-1.99
_09_for_Redhat_9_P68324/

I got the spec file and built a new rpm:

mod_perl-2.0_cvs-1.99.10

However, I still get the same error...

Can any one give me any ideas on how to fix this?

I also read a post about IPC::Open... I looked at the synopsis and it looks
rather complicated. Is this definately a better way to go?

Any help would be greatly appreciated.

Cameron






Loosing required parameters between request

2003-07-18 Thread Craig L McMillon
I'm using Mason with mod-perl. I seem to loose a
required parameter section_id between request. This
obviously causes a mason error. Does anyone have any
idea of what could be causing that?

=
Digital Color Image
Craig L. McMillon

Work:   856.662.5532
Mobile: 908.720.6835
Home:  610.792.5911


Re: IPC Open / IPC Run

2003-07-18 Thread Barrie Slaymaker
On Fri, Jul 18, 2003 at 12:30:22PM -0500, Cameron B. Prince wrote:
 I just realized, I meant to say IPC::Run below from my previous post.
 
  I also read a post about IPC::Open... I looked at the synopsis and it
 looks rather complicated.

Only if you're trying to do something complicated, like keep a long
lived subprocess around and interact with it.  For batch mode
subprocesses, all you need is run().

You might also try IPC::Run3 which is less bloated, but uses temp files
instead of select() to Keep It Simple, Slaymaker.

  Is this definately a better way to go?

Define better ;).  Simpler, yes, if what you're trying to do is
simpler.

- Barrie


Getting list of all cookies available?

2003-07-18 Thread greg
I'm using Apache 1.3.27, mod_perl 1.28, and Apache::ASP 2.53 (+ mod_ssl,
all on cygwin).

I know how I can get and set cookies in Apache:ASP, this is no problem.
What I am trying to figure out is how to get a list of cookies that are
available.

Is there a way to get the list of available cookies from Apache::ASP or
mod_perl? Or should I just use the HTTP_COOKIE variable and parse that to
get my list?

Thanks,
Greg



Re: IPC Open

2003-07-18 Thread Stas Bekman

I'm getting the error message:

[16307]ERR: 24: Error in Perl code: Can't locate object method OPEN via
package Apache::RequestRec at /usr/lib/perl5/5.8.0/IPC/Open3.pm line 136.
perl -MApache2 -MModPerl::MethodLookup -e print_method  OPEN
to use method 'OPEN' add:
use Apache::RequestIO ();


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


IPC::Run

2003-07-18 Thread Cameron B. Prince
Hi Barrie,

I dug out an old note from you and started trying IPC::Run. Here's what I
have so far:

sub MP3Check {
   my ($self,$params) = @_;
   use IPC::Run qw( run timeout );

   my @command = (
  $self-{MP3Check},
  qq! -v $params-{file}!
  );

   run [EMAIL PROTECTED], \undef, \my $output, timeout( 5 ) or die mp3_check: $?;
   my @outlines = split /\n/, $output;

   my %values;
   for ( @outlines ) {
  $values{$1} = $2 if /^([A-Z_]+)\s+(.*)$/;
   }
   return \%values;
}


Something is wrong with the command line... Seems like no matter what I try,
I get file not found... The files do exist and I'm calling the package from
a test script ran as root.

Above, $self-{MP3Check} evaluates to: /home/rw/bin/mp3_check

$params-{file} is one of these (without quotes):

/media/New/Music/Albums/sting.mp3
/media/New/Music/Albums/sting - angel eyes (2).mp3
/media/New/Music/Albums/The Soggy Bottom Boys - Man Of Constant Sorrow.mp3
/media/New/Music/Albums/Various Artists - O Death.mp3
/media/New/Music/Albums/2Pac-Better_Dayz-2CD-2002-RNS/Disc
1/2pac-104-changed_man-rns.mp3

So a valid command is: /home/rw/bin/mp3_check -v
/media/New/Music/Albums/sting.mp3

This works for IPC::Open3

my $command = qq!$self-{MP3Check} -v $params-{file}!;

How should it be done with IPC::Run?

Also, with IPC::Open3, I am killing the process in the alarm and setting a
variable to indicate check failed:

$SIG{ALRM} = sub {
my $kill = kill -9 $pid;
system($kill);
$values{'CHECK_PROBLEM'} = 1;
return;
};


How would something similar be done with IPC::Run?


Thanks alot for your help!

Cameron











Re: IPC::Run

2003-07-18 Thread Barrie Slaymaker
On Fri, Jul 18, 2003 at 01:18:12PM -0500, Cameron B. Prince wrote:
 Hi Barrie,
 
 I dug out an old note from you and started trying IPC::Run. Here's what I
 have so far:
 
 sub MP3Check {
my ($self,$params) = @_;
use IPC::Run qw( run timeout );
 
my @command = (
   $self-{MP3Check},
   qq! -v $params-{file}!
   );
 
run [EMAIL PROTECTED], \undef, \my $output, timeout( 5 ) or die mp3_check: $?;
my @outlines = split /\n/, $output;
 
my %values;
for ( @outlines ) {
   $values{$1} = $2 if /^([A-Z_]+)\s+(.*)$/;
}
return \%values;
 }
 
 
 Something is wrong with the command line...

I'd do a

   use BFD; [EMAIL PROTECTED];

to see what it's Really Doing.  I think, however, that you'd see
something like:

[
'/home/rw/bin/mp3_check',
' -v /media/New/Music/Albums/sting.mp3',
],

which is probably not what you want.  The program name is ok, but you're
attempting to pass two parameters and some shell-oriented quotation
marks through a non-shell spawning operation so mp3_check is receiving a
single parameter string it can't parse.  The upside is that you're not
causing the overhead of spawning a shell or the parse errors that will
occur if some sneaky feller puts a shell metacharacter in an mp3
filename :).

I think you want @command to look like:

(
'/home/rw/bin/mp3_check',
'-v',
'/media/New/Music/Albums/sting.mp3',
),

and so you'd build @command like so:

my @command = (
   $self-{MP3Check},
   '-v',
   $params-{file},
   );

 Also, with IPC::Open3, I am killing the process in the alarm and setting a
 variable to indicate check failed:
 
 $SIG{ALRM} = sub {
 my $kill = kill -9 $pid;
 system($kill);
 $values{'CHECK_PROBLEM'} = 1;
 return;
 };
 
 
 How would something similar be done with IPC::Run?

User Perl's exception handling mechanism, roughly like so:

eval {
run [EMAIL PROTECTED], \undef, \$out, timeout( 5 )
or die $self-{MP3Check} returned , $?  8, \n;
1;
} or do {
## check $@ here for either your die() call or for
## IPC::Run::run()'s timeout exception.
};

- Barrie


Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Mark Maunder
Hi Perrin, thanks for the reply.

No progress yet. I just tested pnotes in the same handler and it works.
Tested it again by setting a value in the content handler and trying to
retreive it it my logging handler and no luck.

#The line in my content handler is:
$sess-get_r()-pnotes('marktest', 'anotherpnotestest');
warn PNOTES:  . $sess-get_r()-pnotes('marktest')
if($sess-get_r()-is_main());
#$sess is my session object where I store $r and my $dbh etc.

#And the one in my logging phase handler is:
warn PNOTES2:  . $r-pnotes('marktest') if($r-is_main());

This prints out the following:
PNOTES: anotherpnotestest at /usr/local/ziptree/lib/ZT/ViewItem.pm line
16.
PNOTES2:  at /usr/local/ziptree/lib/ZT/Logger.pm line 11.

I'm using Apache::Request in the content handler, but I've tried it
using the standard Apache-request object in both handlers and still no
luck.

Thanks,

Mark.

On Fri, 2003-07-18 at 10:09, Perrin Harkins wrote:
 On Thu, 2003-07-17 at 16:51, Mark Maunder wrote:
   And then install those as a content and logging phase handler. If you
   have the time and the interest. I've tried this and the logging handler
   comes up with nothing in pnotes. I've also checked that it's not a sub
   request.
 
 Did you get any further with this?  I've never heard of any problems
 with pnotes(), but I also don't have a 1.27 installed to check it with. 
 Does it work if you just set and read a note in the same handler?
 
 - Perrin
-- 
Mark Maunder [EMAIL PROTECTED]
ZipTree Inc.



RE: clones and parents

2003-07-18 Thread Marc M. Adkins
  I never know whether to submit a bug report or not.  Often
 these things turn
  out to be known issues or I find out it was my own bug at some
 later time...

 If you get a segfault, chances are that something is broken, since the sw
 should gracefully handle cases when someone does something wrong
 and not segfault.

OK.  Give me a day or so to double-check by coming up with a minimal test
case.  Which will aid in the debugging effort (one hopes).

mma



authentication realms in http and https

2003-07-18 Thread Jason Fong
We recently upgraded our webserver from 
Apache 1.3.6 / modperl 1.19
to
Apache 1.3.27 / modperl 1.27

We use a .htaccess file in a directory to have a modperl script do
authentication for directory access (for downloading files, etc.).  It
also redirects the user from http to https if he does not come in
through https.

On our old server, the user would only see the browser's login box once
when he came in through http and was redirected to https.  On the new
server, however, the user has to login twice.  But if the user comes in
through https on the new server, there is only one login.

So my guess is that the new server is not treating an authentication
realm in http as the same as one in https.

So, my question is... Is this different treatment of the http/https
authentication realms something that changed in the newer version of
modperl (or possibly apache)?  Or is this something that can be changed
through configuration options?  (and also... is my analysis even
correct? :) )  Thanks!


-Jason Fong



Re: Need help, Global Hash corruption under mod_perl in perl 5.8.0!?!

2003-07-18 Thread Perrin Harkins
On Fri, 2003-07-18 at 09:03,   wrote:
 I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/
 http://www.ossp.org/pkg/tool/eperl/ ) for a long time (up to perl
 5.6.1)
 until our admin install perl 5.8.0 and recompiled apache and mod_perl
 with it.
  
 After that global hash $Cache where all precompiled eperl scripts kept
 in becomes corrupted
 (even under httpd -X) after several calls

Sounds like a bug in Apache::ePerl.

I'm afraid you'll find that ePerl isn't really being supported by anyone
at this point.  The last release was something like 5 years ago.  I'd
suggest that you consider moving your code to one of the other
templating systems available.  Meanwhile, you can try to debug
Apache::ePerl with the usual methods.

Your admin did recompile ePerl with the new version of perl as well,
didn't he?  And you are running mod_perl 1.x without threads?

- Perrin


templating system opinions

2003-07-18 Thread Patrick Galbraith
Hi there,

Just wondering what the best templating system is to use and/or learn. 

I've briefly read up on the pros and cons of each, and am just wondering 
which one is the most widely _used_ and best to learn if you're wanting to 
know something that there are jobs for.

thanks ;)

-- 
Patrick Galbraith
Senior Software Developer
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]



Re: templating system opinions

2003-07-18 Thread Ken Y. Clark
On Fri, 18 Jul 2003, Patrick Galbraith wrote:

 Date: Fri, 18 Jul 2003 14:25:32 -0700 (PDT)
 From: Patrick Galbraith [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: templating system opinions

 Hi there,

 Just wondering what the best templating system is to use and/or learn.

 I've briefly read up on the pros and cons of each, and am just wondering
 which one is the most widely _used_ and best to learn if you're wanting to
 know something that there are jobs for.

 thanks ;)

Search the guide:

http://perl.apache.org/search/swish.cgi?query=templatesbm=submit=search

ky


Re: templating system opinions

2003-07-18 Thread Chris Devers
On Fri, 18 Jul 2003, Patrick Galbraith wrote:

 Just wondering what the best templating system is to use and/or learn.

 I've briefly read up on the pros and cons of each, and am just wondering
 which one is the most widely _used_ and best to learn if you're wanting to
 know something that there are jobs for.

What's best depends on what your requirements are. As far as I can tell,
the big ones are Template::Toolkit, Mason, and HTML::Template; each one
makes different tradeoffs and makes different assumptions about the
division of labor among programmers, web developers,  content producers.
TT is probably the most flexible, but that or might not be what you want.

Honestly, of the three I just listed, none of them are *that* complicated.
If you want to learn these for job hunting purposes -- in which case it's
not really fair to ask you what the requirements are, since you can't
really know that -- you might as well experiment with all three.

A good way to start might be by playing with different content management
etc platforms that use these toolkits. From what I've read, the biggest
examples I can think of are:

 * Slashcode (TT based, runs slashdot.org)

 * Bricolage (H::T, http://www.bricolage.cc/docs/Bric/HTMLTemplate.html,
   CMS used by theregister.co.uk et al)

 * Request Tracker (excellent ticketing system, runs http://rt.cpan.org/,
   home page is http://www.bestpractical.com/rt)

Any of these can be downloaded  used freely. If you have the time for it,
grab a copy of one or more and start playing around.

Have fun :)


-- 
Chris Devers [EMAIL PROTECTED]
http://devers.homeip.net:8080/

drag'n'drop, v.
To throw away your mouse after the first attempt to copy a file leads
to its deletion. See also TRASH CAN.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


Re: templating system opinions

2003-07-18 Thread Mark Maunder
Hey Peter,

Template Toolkit rocks! (Sorry about the overt glee, but I am just
finishing a project where it has been very good to me) Besides the
complete seperation that it gives you between presentation and back-end
coding, it's super fast. I benchmarked a 2GHz server with 256 Megs of
RAM using ab (Apache bench) with around 10 concurrent requests and a
total of 10,000 requests and was able to handle over 40 hits per second
on our most dynamic page which has lots of conditionals and loops and
even does a few function calls like this [% IF sess.is_logged_in %]
where 'sess' is a perl object. NOTE: Make sure you cache your template
object in package globals or something like that, or you'll lose
performance.

I've written a couple of workable templating systems myself with good
old $html =~ s///egs and a content handler (as a perl developers rite of
passage don't ya know) and I wouldn't recommend it because you end up
with something non-standard, and are basically re-inventing template
toolkit which seems to have become the standard in templating over the
last coupla years.

Old, but still useful benchmarks if you're interested:
http://www.chamas.com/bench/

mark.

On Fri, 2003-07-18 at 13:26, Ken Y. Clark wrote:
 On Fri, 18 Jul 2003, Patrick Galbraith wrote:
 
  Date: Fri, 18 Jul 2003 14:25:32 -0700 (PDT)
  From: Patrick Galbraith [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: templating system opinions
 
  Hi there,
 
  Just wondering what the best templating system is to use and/or learn.
 
  I've briefly read up on the pros and cons of each, and am just wondering
  which one is the most widely _used_ and best to learn if you're wanting to
  know something that there are jobs for.
 
  thanks ;)
 
 Search the guide:
 
 http://perl.apache.org/search/swish.cgi?query=templatesbm=submit=search
 
 ky
-- 
Mark Maunder [EMAIL PROTECTED]
ZipTree Inc.



DDD and mod_perl handler

2003-07-18 Thread Pablo Velasquez
Hello,
I've been searching for guidance on using DDD with mod_perl. (DDD is 
fantastic)

I use DDD to debug my perl scripts like so:

ddd --perl myperlscript.pl (quite simple :)

However, I haven't been able to do the same with a mod_perl handler.

Perl 5.005_03
Apache/1.3.24 (Unix) 
mod_perl/1.26
RH 8.0

This is my handler http://localhost/Reports/Cslink; I'd like to step through 
the code with DDD.

Here's what I have been able to accomplish:
1. Installed Apache::DB
2. If I run this from the command line: ./httpd -X

I do get a message telling me I'm in debug mode:
[notice] Apache::DB initialized in child 2487

3. I go to my browser and call:
http://localhost/Reports/Cslink

4. From the command line I now see this:
Loading DB routines from perl5db.pl version 1.0402
Emacs support available.
Enter h or `h h' for help.
Reports::Generate::Cslink::handler(/usr/local/apache/lib/perl/Reports/Generate/Cslink.pm:11):
11: $ENV{ORACLE_HOME}='/usr/local/oracle';
DB1

5. This is all good, since now the perl debugger is running my program, just 
like when I use DDD to run a regular perl script. However, the question is, 
how can I use DDD to run on top of this?

I've been reading online for the answer and there are some hints:
Debugging mod_perl C Internals
http://perl.apache.org/docs/2.0/devel/debug/c.html

In fact, I'm going to try this one, but I was hoping for a more standard 
approach.

Thanks.

-Pablo














Re: templating system opinions - Mason recommendation

2003-07-18 Thread Chris Devers
Sorry to cc: this to the list, but I stand corrected and might as well
mention that to the list :)


On Fri, 18 Jul 2003, Dave Baker wrote:

 Correction: Bricolage is written in Mason, I believe. That's what the
 Bricolage authors say at http://bricolage.cc/

Hmm, so it does. I wonder where I got the idea that it was H::T based...

 I'm very pleased with Mason -- the online O'Reilly book about Mason is
 at http://www.masonbook.com/book/

A little bird tells me that TT is about to get an O'Reilly book as well,
though it's not on their upcoming titles page (yet).

The only H::T dead-trees material that I know of is a section in _CGI
Programming with Perl_, 2nd edition -- that's where I learned it. I like
the simplicity of H::T, but most other people seem to prefer TT or Mason.
I still think it comes down to whichever system meets your needs the best,
and in different contexts any of them (or others) could be appropriate.


This may have been covered before here, but Zope supports an interesting
template mechanism called TAL, where everything is done by attributes for
the HTML tags, rather than special logical tags as most other systems use
(e.g. the ones mentioned above, SSI, PHP, ASP, JSP, etc). This has the
nice side effect of guaranteeing that all your html templates are always
valid, and so can be used in any html IDE without complication. So for
example, picking a random sample from the spec:


Repeat

  Syntax:
   argument  ::= variable_name expression
   variable_name ::= Name

  When you want to replicate a subtree of your document once for each
  item in a sequence, you use repeat.  The expression should evaluate
  to a sequence. If the sequence is empty, then the statement element
  is deleted, otherwise it is repeated for each value in the sequence.
  If the action is cancelled, then the element is left unchanged, and
  no new variables are defined.

  The variable_name is used to define a local variable and a repeat
  variable. For each repetition, the local variable is set to the
  current sequence element, and the repeat variable is set to an
  iteration object.  You use iteration objects to access information
  about the current repetition (such as the repeat index).
  (Iteration objects are more properly the domain of TALES.)  The
  repeat variable has the same name as the local variable, but is
  only accessible through the builtin variable named repeat (see
  RepeatVariable).

  Examples:

p tal:repeat=txt python:'one', 'two', 'three'
   span tal:replace=txt /
/p
table
  tr tal:repeat=item here/cart
  td tal:content=repeat/item/index1/td
  td tal:content=item/descriptionWidget/td
  td tal:content=item/price$1.50/td
  /tr
/table


It's a pretty clever approach; I'd like to see something like this done
with a Perl backend (I haven't really been keeping track of development,
for all I know there already is a Perl backend...). Read more:

  http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL
  http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL%20Specification%201.4


But anyway, Zope isn't mod_perl, so that's probably not what the original
person was hoping to read about... :)



-- 
Chris Devers[EMAIL PROTECTED]


Re: templating system opinions - Mason recommendation

2003-07-18 Thread Leon Brocard
Chris Devers sent the following bits through the ether:

 It's a pretty clever approach; I'd like to see something like this done
 with a Perl backend (I haven't really been keeping track of development,
 for all I know there already is a Perl backend...). Read more:

Your wish is my command. Witness the amazing appearance of Petal -
Perl Template Attribute Language - TAL for Perl! on the rather
tastefully-coloured:
http://search.cpan.org/author/JHIVER/Petal-1.00/lib/Petal.pm

Leon
-- 
Leon Brocard.http://www.astray.com/
scribot.http://www.scribot.com/

... Have you seen Quasimoto? I have a hunch he's back!


Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
Thanks much,

Yeah, I worked with TT when I was on the Slash team ;) 

On Fri, 18 Jul 2003, 
Chris Devers wrote:

 On Fri, 18 Jul 2003, Patrick Galbraith wrote:
 
  Just wondering what the best templating system is to use and/or learn.
 
  I've briefly read up on the pros and cons of each, and am just wondering
  which one is the most widely _used_ and best to learn if you're wanting to
  know something that there are jobs for.
 
 What's best depends on what your requirements are. As far as I can tell,
 the big ones are Template::Toolkit, Mason, and HTML::Template; each one
 makes different tradeoffs and makes different assumptions about the
 division of labor among programmers, web developers,  content producers.
 TT is probably the most flexible, but that or might not be what you want.
 
 Honestly, of the three I just listed, none of them are *that* complicated.
 If you want to learn these for job hunting purposes -- in which case it's
 not really fair to ask you what the requirements are, since you can't
 really know that -- you might as well experiment with all three.
 
 A good way to start might be by playing with different content management
 etc platforms that use these toolkits. From what I've read, the biggest
 examples I can think of are:
 
  * Slashcode (TT based, runs slashdot.org)
 
  * Bricolage (H::T, http://www.bricolage.cc/docs/Bric/HTMLTemplate.html,
CMS used by theregister.co.uk et al)
 
  * Request Tracker (excellent ticketing system, runs http://rt.cpan.org/,
home page is http://www.bestpractical.com/rt)
 
 Any of these can be downloaded  used freely. If you have the time for it,
 grab a copy of one or more and start playing around.
 
 Have fun :)
 
 
 

-- 
Patrick Galbraith
Senior Software Developer
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]



Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
The one thing about TT was that I don't know if I really liked how it 
had a different syntax than perl. Plus, as far as performance, we did 
some specific coding to make it faster for Slash so our templates would 
be in the DB.

On 18 Jul 2003, Mark Maunder wrote:

 Hey Peter,
 
 Template Toolkit rocks! (Sorry about the overt glee, but I am just
 finishing a project where it has been very good to me) Besides the
 complete seperation that it gives you between presentation and back-end
 coding, it's super fast. I benchmarked a 2GHz server with 256 Megs of
 RAM using ab (Apache bench) with around 10 concurrent requests and a
 total of 10,000 requests and was able to handle over 40 hits per second
 on our most dynamic page which has lots of conditionals and loops and
 even does a few function calls like this [% IF sess.is_logged_in %]
 where 'sess' is a perl object. NOTE: Make sure you cache your template
 object in package globals or something like that, or you'll lose
 performance.
 
 I've written a couple of workable templating systems myself with good
 old $html =~ s///egs and a content handler (as a perl developers rite of
 passage don't ya know) and I wouldn't recommend it because you end up
 with something non-standard, and are basically re-inventing template
 toolkit which seems to have become the standard in templating over the
 last coupla years.
 
 Old, but still useful benchmarks if you're interested:
 http://www.chamas.com/bench/
 
 mark.
 
 On Fri, 2003-07-18 at 13:26, Ken Y. Clark wrote:
  On Fri, 18 Jul 2003, Patrick Galbraith wrote:
  
   Date: Fri, 18 Jul 2003 14:25:32 -0700 (PDT)
   From: Patrick Galbraith [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: templating system opinions
  
   Hi there,
  
   Just wondering what the best templating system is to use and/or learn.
  
   I've briefly read up on the pros and cons of each, and am just wondering
   which one is the most widely _used_ and best to learn if you're wanting to
   know something that there are jobs for.
  
   thanks ;)
  
  Search the guide:
  
  http://perl.apache.org/search/swish.cgi?query=templatesbm=submit=search
  
  ky
 

-- 
Patrick Galbraith
Senior Software Developer
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]



Re: templating system opinions

2003-07-18 Thread Chris Devers
On Fri, 18 Jul 2003, Patrick Galbraith wrote:

 Yeah, I worked with TT when I was on the Slash team ;)

Then why are you asking a question like this?? :)


-- 
Chris Devers [EMAIL PROTECTED]
http://devers.homeip.net:8080/

Turing machine, n. [After Alan M. Turing (1912-1954), British
  mathematician and computer pioneer.]
The earliest but still the fastest and most reliable computing system
ever conceived. Dis maschine vill run und run (K. Godel).

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


Re: DDD and mod_perl handler

2003-07-18 Thread Perrin Harkins
On Fri, 2003-07-18 at 17:13, Pablo Velasquez wrote:
 5. This is all good, since now the perl debugger is running my program, just 
 like when I use DDD to run a regular perl script. However, the question is, 
 how can I use DDD to run on top of this?

You need to change DDD's behavior so that it will debug your script by
running httpd -X.  Check with the DDD folks.  There are some threads in
the archive here about using ptkdb with mod_perl, which might also be
useful to you.

- Perrin


Re: does pnotes() work at all in 1.27?

2003-07-18 Thread James Hartling

I use pnotes all over the place in 1.27, and haven't noticed any problems.
I just stepped through some code and everything looks good between the Init
phase and the content handling phase.

I'm using Apache::Request-instance everywhere so I'm dealing with the same
request object, but even if you're using Apache::Request-new I'd still
expect that to work.

Jim

- Original Message -
From: Mark Maunder [EMAIL PROTECTED]
To: Perrin Harkins [EMAIL PROTECTED]
Cc: Dennis Stout [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 3:08 PM
Subject: Re: does pnotes() work at all in 1.27?


 Hi Perrin, thanks for the reply.

 No progress yet. I just tested pnotes in the same handler and it works.
 Tested it again by setting a value in the content handler and trying to
 retreive it it my logging handler and no luck.

 #The line in my content handler is:
 $sess-get_r()-pnotes('marktest', 'anotherpnotestest');
 warn PNOTES:  . $sess-get_r()-pnotes('marktest')
 if($sess-get_r()-is_main());
 #$sess is my session object where I store $r and my $dbh etc.

 #And the one in my logging phase handler is:
 warn PNOTES2:  . $r-pnotes('marktest') if($r-is_main());

 This prints out the following:
 PNOTES: anotherpnotestest at /usr/local/ziptree/lib/ZT/ViewItem.pm line
 16.
 PNOTES2:  at /usr/local/ziptree/lib/ZT/Logger.pm line 11.

 I'm using Apache::Request in the content handler, but I've tried it
 using the standard Apache-request object in both handlers and still no
 luck.

 Thanks,

 Mark.

 On Fri, 2003-07-18 at 10:09, Perrin Harkins wrote:
  On Thu, 2003-07-17 at 16:51, Mark Maunder wrote:
And then install those as a content and logging phase handler. If
you
have the time and the interest. I've tried this and the logging
handler
comes up with nothing in pnotes. I've also checked that it's not a
sub
request.
 
  Did you get any further with this?  I've never heard of any problems
  with pnotes(), but I also don't have a 1.27 installed to check it with.
  Does it work if you just set and read a note in the same handler?
 
  - Perrin
 --
 Mark Maunder [EMAIL PROTECTED]
 ZipTree Inc.




RE: clones and parents (bug report)

2003-07-18 Thread Marc M. Adkins

-8-- Start Bug Report 8--
1. Problem Description:

#   Problem:  When I add PerlOptions +Parent I get a segfault.
#
#   Breaks with:
#   Windows 2000 SP2
#   Apache  2.0.46
#   ActiveState Perl 5.8.0 (build 804)
#   mod_perl 1.99.10dev(installed using mpinstall.pl,
#   re-installed TODAY to be safe)
#
#   Pops up Apache.exe - Application Error box:
#   The instruction at 0x280830ed
#   referenced memory at 0x.
#   The memory could not be written.
#
#   After killing the box the command line says:
#   C:\Apache2\bin apache
#   Starting Apache...
#   and must be killed via ctrl-C.  The error log is empty.
#
#   In at least one case the Apache.exe process refused to stop
#   and COULD NOT BE SHUT DOWN VIA TASK MANAGER, requiring reboot.
#   This seems to happen when ctrl-c is not invoked immediately
#   after cancelling the message box.

2. Used Components and their Configuration:

*** mod_perl version 1.9910

*** using C:/Perl/site/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX= \Apache2
  MP_COMPAT_1X= 1
  MP_GENERATE_XS  = 1
  MP_INST_APACHE2 = 1
  MP_LIBNAME  = mod_perl
  MP_USE_DSO  = 1
  MP_USE_STATIC   = 1


*** \Apache2/bin/Apache.exe -V
Server version: Apache/2.0.46
Server built:   May 27 2003 23:15:42
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/winnt
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/apache
 -D SUEXEC_BIN=/apache/bin/suexec
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_ERRORLOG=logs/error.log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf


*** C:\Perl\bin\perl.exe -V
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
  Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cl', ccflags
='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES
_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSV
CRT_READFIX',
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='link', ldflags
'-nologo -nodefaultlib -release  -libpath:C:\Perl\lib\CORE  -machine:x86'
libpth=C:\Program Files\Microsoft.Net\Odbc.Net\ C:\Perl\lib\CORE
libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
  Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ',
ddlflags='-dll -nologo -nodefaultlib -release  -libpath:C:\Perl\lib\CORE  
-machine:x86'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
  Locally applied patches:
ActivePerl Build 804
  Built under MSWin32
  Compiled at Dec  1 2002 23:15:13
  %ENV:
PERL_LWP_USE_HTTP_10=1
  @INC:
C:/Perl/lib
C:/Perl/site/lib
.


3. This is the core dump trace: (if you get a core dump):

#   I don't have anything built with debug but even so the stack shows:
#   PERL58.DLL
#   PERL58.DLL
#   MOD_PERL.DLL
#   when I pop into the debugger from the alert panel.

This report was generated by -e on Fri Jul 18 23:48:59 2003 GMT.

-8-- End Bug Report --8--

#
# C:\Apache2\conf\parental.conf
#
#   Minimal configuration for breaking PerlOptions +parent.
#   Use Include directive in generic httpd.conf
#
#   There is no startup.pl here, nor much of anything else.
#   I first discovered this issue in a fully populated environment
#   with all of that good stuff.  I removed all of the other goop
#   and it still blows up here.  When I had startup.pl going I
#   

Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
TT was ok, but it did use a bunch of ram ;)

I gotta have something to counter PHP people with too ;)

On Fri, 18 Jul 2003, Chris 
Devers wrote:

 On Fri, 18 Jul 2003, Patrick Galbraith wrote:
 
  Yeah, I worked with TT when I was on the Slash team ;)
 
 Then why are you asking a question like this?? :)
 
 
 

-- 
Patrick Galbraith
Senior Software Developer
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]



Re: templating system opinions

2003-07-18 Thread Dave Rolsky
On Fri, 18 Jul 2003, Patrick Galbraith wrote:

 TT was ok, but it did use a bunch of ram ;)

So does Mason.  HTML::Template is no doubt much leaner, but it's also lean
on features.  Nothing wrong with that if it suits your needs, though.

Most Perl templating systems are probably slower and/or bulkier than PHP.

The best counter for PHP folks is one word, CPAN ;)

Also, Mason at least provides lots of features beyond templating, and is
as much of an app framework as anything.  This may be true of TT and the
others, I'm not really sure.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/


Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Dennis Stout
 No progress yet. I just tested pnotes in the same handler and it works.
 Tested it again by setting a value in the content handler and trying to
 retreive it it my logging handler and no luck.

It looks like I start work on finding out about your problem tonight instead
of last night.

Funny story:  I did a field call this morning in Palmer, had to do a line test
for DSL.  Then I had to do another one down Knik Goose Bay road (I know you
have no idea of these locations, but thats roughly 30 miles there...).  About
25 miles out of Palmer, I hear this ti-ti-ti-ti-thwou - whack vaguely
somewhere above and behind me.

Anwyays, get to the location, customers mahcine is up and running on DSL, so
no line test neccessary.

On my way back to Palmer, I see this laptop on the side of the road...  I pull
over, and guess what I left sitting on the van in Palmer?

W.  Ever seen remains of a laptop after hitting pavement at 55mph?

I can't believe it stayed up there for so long.  I was stopping at all kinds
of stop lights/signs and stuff, and reaching speeds of 80mph around curves :D

Alright, so this wasn't mod_perl related.  A bunch of techies can laugh over
this tho, and humor is a good thing :)

Dennis



RE: clones and parents (bug report)

2003-07-18 Thread Randy Kobes
On Fri, 18 Jul 2003, Marc M. Adkins wrote:

 -8-- Start Bug Report 8--
 1. Problem Description:

 #   Problem:  When I add PerlOptions +Parent I get a segfault.
 #
 #   Breaks with:
 #   Windows 2000 SP2
 #   Apache  2.0.46
 #   ActiveState Perl 5.8.0 (build 804)
 #   mod_perl 1.99.10dev(installed using mpinstall.pl,
 #   re-installed TODAY to be safe)
 #
 # C:\Apache2\conf\parental.conf
 LoadFileC:/Perl/bin/perl58.dll
 LoadModule  perl_module modules/mod_perl.so
 ###
 #
 # Setup for named virtual hosts on port 80:
 #

 NameVirtualHost *:80
 Listen  80

 ###

 VirtualHost *:80
   ServerNamelocalhost:80
   ServerAdmin   [EMAIL PROTECTED]
   DocumentRoot  C:/Apache2/htdocs
   PerlOptions   +Parent
   PerlSwitches  -wT
 /VirtualHost

Just to verify, I also get this with ActivePerl 806,
Apache/2.0.47, and the current mod_perl cvs version.
Here's some partial debug information:

PERL58! 28083490()
PERL58! 280648b5()
modperl_perl_destruct(interpreter * 0x0089c794):
   line 130 + 9 bytes: modperl_perl.c
modperl_interp_destroy(modperl_interp_t * 0x008a47c8):
   line 128 + 12 bytes: modperl_interp.c
modperl_interp_pool_destroy(void * 0x00869b78):
   line 184 + 12 bytes: modperl_interp.c
run_cleanups(cleanup_t * * 0x0089a7a8):
   line 1980: httpd-2.0.47\srclib\apr\memory\unix\apr_pools.c
apr_pool_destroy(apr_pool_t * 0x00401585):
line 758: httpd-2.0.47\srclib\apr\memory\unix\apr_pools.c
main(int 0x00401d82, const char * const * 0x0001) line 619
APACHE! mainCRTStartup + 227 bytes
KERNEL32! 77e7eb69()
===

-- 
best regards,
randy kobes