Re: HTML::Parser not mod_perl safe?

2005-09-23 Thread Mike Henderson
I think it's pretty safe to say there is definitely some issues with HTML::Parser and mod_perl, at least when subclassing it.   I managed to kludge around the problem by not doing that -- ie not doing:  --- package PackageName;  use HTML::Parser;  @PackageName::ISA = qw(HTML::Parser); ---I ended u

Re: [patch mp2] Fixes to $0 handling [Was: Directive changes the command name]

2005-09-23 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Philippe M. Chiasson wrote: > >> I've finally had time to dig deeper in the troubling $0 and process >> display >> problems that seem to exist at least on *BSDs and HP-UX. >> >> [...] >> >> The correct solution (see patch) is: >> >> - Reset $0 to the _real_ argv[0] aft

Re: how to avoid the caching of the executed perl file

2005-09-23 Thread Aliet Santiesteban Sifontes
Tom, thank's a lot, I'm going to test it right now, I tell you later. Best Regards Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok. The offending code is this: - 8< use strict; my $cgi; my %params; # my sub getDataFromListCode {

Re: API to mime.types?

2005-09-23 Thread Fred Moyer
Geoffrey Young wrote: what it boils down to is what type of mod_perl application you have. if you can let apache figure out the content-type itself (via $r->filename) then that's the best approach. if you're reading a "file" from a database or something then you'll need to use the response p

Re: API to mime.types?

2005-09-23 Thread Geoffrey Young
http://search.cpan.org/dist/File-MMagic-XS/ So is this module something that should be implemented in a PerlTypeHandler [1]? I gathered from Jeff's question that he would be determining the file from the PerlResponseHandler, so that's where he would need to set the Content-Type. determ

Re: API to mime.types?

2005-09-23 Thread Jeff Ambrosino
Ok, that worked... my only gripe is that it doesn't correctly parse the type for a WinZip (.zip) file! Oh well... thanks :) JB On 9/23/05, John ORourke <[EMAIL PROTECTED]> wrote: > Geoffrey Young wrote: > > http://search.cpan.org/dist/File-MMagic-XS/

Re: API to mime.types?

2005-09-23 Thread Fred Moyer
Through my MP2 handler, I need to be able to set Content-Type based on the extension of any file that I'm reading from disk and then writing to the client. I'd like to somehow (programmatically) map from file extension to MIME type, and it seems like Apache's mime.types file is a good place to do

Re: Looking to hire MP guru for setup/config

2005-09-23 Thread Jonathan Vanasco
On Sep 23, 2005, at 4:03 AM, Tom Schindl wrote: I'm always compiling my own: - - apache - - perl - - mod_perl I used to do that all the time. Then i moved to freebsd, where the ports system gives you the flexibility of compiling your own, with the ease/standards or a centralized system.

Re: API to mime.types?

2005-09-23 Thread John ORourke
Ah yes, Jeff ignore my suggestions and use Geoff's! Geoffrey Young wrote: http://search.cpan.org/dist/File-MMagic-XS/

Re: API to mime.types?

2005-09-23 Thread John ORourke
You can use Apache to do it but it's probably less efficient: $lookup=$r->lookup_file($fullPathAndFilename); $mime_type=$lookup->content_type(); but that does a full subrequest to my knowledge. I'd recommend a perl module that emulates the 'file' command: use File::MimeInfo::Magic; $mime_typ

Re: API to mime.types?

2005-09-23 Thread Geoffrey Young
Jeff Ambrosino wrote: Through my MP2 handler, I need to be able to set Content-Type based on the extension of any file that I'm reading from disk and then writing to the client. I'd like to somehow (programmatically) map from file extension to MIME type, and it seems like Apache's mime.types f

API to mime.types?

2005-09-23 Thread Jeff Ambrosino
Through my MP2 handler, I need to be able to set Content-Type based on the extension of any file that I'm reading from disk and then writing to the client. I'd like to somehow (programmatically) map from file extension to MIME type, and it seems like Apache's mime.types file is a good place to do

Re: Apache DSO compile issue...

2005-09-23 Thread Philip M. Gollucci
John Kelley wrote: Odd number of elements in hash assignment at /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Exceptions.pm line 152. [Fri Sep 23 08:24:55 2005] [error] unknown field \n passed to constructor for class HTML::Mason::ExceptionCompilation failed in require at /opt/rt3/lib/RT/Inte

Apache DSO compile issue...

2005-09-23 Thread John Kelley
I'm installing RT, a supportware allpication. As part of that effort, I've compiled in mod_perl and loaded a bunch of Perl modules onto the machine. I've reach an impasse when after compiling in mod_perl, I get following error when performing an apache configtest: Odd number of elements in

Re: 'PL_memory_wrap' error when using PAR + 5.8.7

2005-09-23 Thread Randy Kobes
On Thu, 22 Sep 2005, Foo Ji-Haw wrote: Hi all, I wonder if you have the same problem as me when trying to use PAR to create a standalone .EXE program. I'm using the latest PAR with ActiveState perl 5.8.7. When I try to run the .EXE program, a dialog box pops out and show m the 'PL_memory_w

Re: PerlInterpMaxRequests

2005-09-23 Thread Philip M. Gollucci
Fabian Kreitner wrote: Fabian Kreitner wrote: PerlInterpStart 1 PerlInterpMax 1 PerlInterpMaxRequests 1 This works for me. FYI, you need an ithread enabled perl, but you probably know that or you wouldn't have gotten this far :) DocumentRoot /httpd-2.0.54/prefork-ithr

Re: Apache2::SOAP newbie

2005-09-23 Thread Foo Ji-Haw
Do they have a SOAP::Lite::Simple::Java as well?   - Original Message - From: Leo Lapworth To: John ORourke Cc: mod_perl Mailing List Sent: Friday, September 23, 2005 4:06 PM Subject: Re: Apache2::SOAP newbie On 23 Sep 2005, at 08:44, John ORourke wrote

Re: Apache2::SOAP newbie

2005-09-23 Thread Leo Lapworth
On 23 Sep 2005, at 08:44, John ORourke wrote:I've now got my Apache2::SOAP-based server talking with C#.NET clients, and auto-generating the WSDL using Pod::WSDL when they call http://url?wsdl, which is nice!Probably not relevant for you atm - but check out SOAP::Lite::Simple - and SOAP::Lite::Simp

Re: Looking to hire MP guru for setup/config

2005-09-23 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick Kennedy wrote: > >> Why are you using 1.99 when 2.0.1 is out? If you can give me more >> information about what you need you can contact me offline and maybe I >> can help you. >> >> Tom > > > Apparently MP2 isn't compatible with my RedHat 3

Re: [mp2] $| doesn't work with mod_perl

2005-09-23 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does $r->rflush(); help? Although it should do the same then seting $| to undef. Tom Tom Schindl wrote: > pradeep kumar wrote: > >>>Can you please elaborate on why apache filters can be an issue with the >>>autoflush problem that I noticed ? >>> >>>

Re: how to avoid the caching of the executed perl file

2005-09-23 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok. The offending code is this: - 8< use strict; my $cgi; my %params; # my sub getDataFromListCode { $params{"Filtro1"}= ""; $params{"Filtro2"}= ""; $params{"Filtro3"}= ""; $params{"Filtro4"}=

Re: Apache2::SOAP newbie

2005-09-23 Thread John ORourke
Thanks Foo, I've now got my Apache2::SOAP-based server talking with C#.NET clients, and auto-generating the WSDL using Pod::WSDL when they call http://url?wsdl, which is nice! I'm now finding out about all the SOAP::Lite overrides and methods I can use to return a .NET DataSet object to the

Re: Apache2::Cookie bug, or just my misinterpretation?

2005-09-23 Thread Philip M. Gollucci
Foo Ji-Haw wrote: I get the request cookie names like this: my $jar = Apache2::Cookie::Jar->new($r); my @keys = $jar->cookies(); sub fetch { my $class = shift; my $req = shift; unless (defined $req) { my $usage = 'Usage: Apache2::Cookie->fetch($r): missing argument $r';