mod_perl File Extension Configuration instead of a Path Configuration

2004-04-29 Thread JupiterHost.Net
Hello group! Super mod_perl newbie here :) I was wondering if its possible to setup mod_perl in httpd.conf with a File Extension Configuration instead of a Path Configuration. IE - everything with the .mpl extension is run under mod_perl instead of everything in /perl/ being run under mod_perl..

Re: help with perlfixuphandler

2004-04-29 Thread Geoffrey Young
Cristóvão B. B. Dalla Costa wrote: > Hello > > We're developing an application which returns large files depending on > the URL provided. For cleanliness and easier updates we do not want to > set an Apache Alias for each file, instead we're looking them up in a > database. > > Originally, we h

help with perlfixuphandler

2004-04-29 Thread "Cristóvão B. B. Dalla Costa"
Hello We're developing an application which returns large files depending on the URL provided. For cleanliness and easier updates we do not want to set an Apache Alias for each file, instead we're looking them up in a database. Originally, we had a PerlHandler identify the file and print it ou

Re: Problem with perl system() function

2004-04-29 Thread Brian Reichert
On Wed, Apr 28, 2004 at 03:55:23PM -0400, Alejandro Galue wrote: > > I tried this (inside the handler): > > ... > my $cmd = '/opt/reports/bin/getdata'; > system($cmd, @params); > if ( open(DATA, '/opt/reports/var/data.txt') ) { > local $_; > while () { $r->print($_) } > close DATA; >

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-29 Thread Stas Bekman
olivier blanc wrote: 1. Problem Description: While trying to load compiled DSO modperl in Apache, I got the following error :

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi, on the top of my mod_perl 1 script I have: package Taskit; BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; } use Apache; use Apache::Constants qw(OK); use Apache::Request; use Net::LDAP; use M

Re: [MP2] eval and exit(0)

2004-04-29 Thread Stas Bekman
ydnar wrote: The eval() is unecessary. The named sub can be used: &$func(); mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? You don't need to load anything. Indeed under mp2: *CORE::GLOBAL::exit = \&ModPerl::Util::exit; And you don't need to

Re: [MP2] eval and exit(0)

2004-04-29 Thread Arnaud Blancher
ydnar a écrit : The eval() is unecessary. The named sub can be used: &$func(); great, it's ok! mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? i don't know. how can i know that ? tank you very much Arnaud. Arnaud Blancher wrote: hi all, I ha

Re: [MP2] eval and exit(0)

2004-04-29 Thread ydnar
The eval() is unecessary. The named sub can be used: &$func(); mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? Arnaud Blancher wrote: hi all, I have a stange problem whith mod_perl 2. The script behing have a diferent result in perl/cgi than i

mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-29 Thread olivier blanc
1. Problem Description: While trying to load compiled DSO modperl in Apache, I got the following error :

Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-29 Thread Alexander.Farber
Hi, on the top of my mod_perl 1 script I have: package Taskit; BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; } use Apache; use Apache::Constants qw(OK); use Apache::Request; use Net::LDAP; use Mail::Mailer qw(se

Re: new version Re: GTop-0.12 compile and installation problems

2004-04-29 Thread Pete Geenhuizen
If I manage to find the solution to the libgtop I'll let you know. Like I said thanks for all your help. Pete -- "Unencumbered by the thought process" --1992-2000 Click and Clack presidential campaign slogan Stas Bekman said: > Pete Geenhuizen wrote: >> Don't know what happened to this email or

Re: new version Re: GTop-0.12 compile and installation problems

2004-04-29 Thread Pete Geenhuizen
Don't know what happened to this email originally, any way here's what I sent. Stas, What I just found is that Solaris has init64_t. I don't know any more about it, I noticed that during a configure of libgtop that u_init64_t wasn't found, but init64_t was, don't know if that helps or is signifi

[MP2] eval and exit(0)

2004-04-29 Thread Arnaud Blancher
hi all, I have a stange problem whith mod_perl 2. The script behing have a diferent result in perl/cgi than in mod_perl so i don't know if i make a mistake whith perl/cgi or if it's a bug. # in standad cgi, the output is In first # in mod_perl, the output is In first In second I dont want to s