Port/Sheme information

2007-01-15 Thread Tracy12
How can we retrieve the URL Scheme (http/https ?) from a perl module, Port given that only input parameter is $r should we use my $uri = Apache::URI->parse($r) and $uri->scheme; -- View this message in context: http://www.nabble.com/Port-Sheme-information-tf3018818.html#a8384090 Sent

Re: Test fails/Functionality works

2007-01-15 Thread Perrin Harkins
Tracy12 wrote: Error I am getting while executing make test is all skipped: Test::Pod 1.14 required for testing POD Failed Test Stat Wstat Total Fail Failed List of Failed --- t/00.load.t1 256 11

Re: Test fails/Functionality works

2007-01-15 Thread Tracy12
Everything working fine with the following entry Apache2::compat as I stated. but eventhough it works ' make test ' gave me a error but still I went ahead and did make install. When I comment(to get make test with no errors) the above line 'make test' gives no errors but that is of no use as fu

Re: Test fails/Functionality works

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 15:07 -0800, Tracy12 wrote: > I am modifying (adding new functions) to already written perl module, > > So this is not a complete new development. I am using mod_perl 2.0 /Apache > 2.2 on Fedora, Looks like code is not written for this but for a older > mod_perl version less

Re: Making .pm files run.

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 14:31 -0800, iNetForce wrote: > Alias /go/ /usr/home/httpd/domains/www.ehunter.com/ehunter_perl/Handlers/ This is probably not what you want. Perl doesn't look for modules based on the URL, it looks for them in @INC. You need to put this module somewhere that is in your @I

Re: Test fails/Functionality works

2007-01-15 Thread Tracy12
I am modifying (adding new functions) to already written perl module, So this is not a complete new development. I am using mod_perl 2.0 /Apache 2.2 on Fedora, Looks like code is not written for this but for a older mod_perl version less than 2.0 Error I got was Can't locate object method "user"

Re: Making .pm files run.

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 14:31 -0800, iNetForce wrote: > package Recipes; [...] > PerlModule go::Recipes > > SetHandler perl-script > PerlHandler go::Recipes > Options +ExecCGI > PerlSendHeader On > allow from all > That module says it's package

Re: Making .pm files run.

2007-01-15 Thread iNetForce
This is the information i gathered based on your request: >From httpd-error.log: [Mon Jan 15 15:50:36 2007] [notice] Apache/1.3.34 (Unix) mod_perl/1.29 configure d -- resuming normal operations Here is one of the files Recipes.pm package Recipe

Re: MP 2.0.3 & Apache 2.2.3 -> auth tests fail

2007-01-15 Thread Frank Maas
On Sat, Jan 13, 2007 at 02:52:03PM -0500, Perrin Harkins wrote: > Frank Maas wrote: > >I have installed version 2.2.3 of apache and want to install > >2.0.3 of MP. Compiling it gives no problems, but 'make test' fails on > >four files. All fail on the authentication phase - the httpd-errorlog > >s

Re: database caching in persistent handlers

2007-01-15 Thread Jonathan Vanasco
On Jan 15, 2007, at 3:04 PM, John ORourke wrote: The thought process I've gone through corroborates this - at the most complex point I was looking at specifying a caching policy for each table - eg. (in a shop website) product info except stock levels can be cached for a day, static pages

Re: database caching in persistent handlers

2007-01-15 Thread John ORourke
Perrin Harkins wrote: On Mon, 2007-01-15 at 13:02 -0600, Frank Wiles wrote: Not being a MySQL guy this could be fixed now, but last I heard MySQL tossed it's cache anytime the table was updated. Not very efficient IMHO. Yes, modifying data in a table invalidates the cache fo

Re: Making .pm files run.

2007-01-15 Thread Sean Davis
iNetForce wrote: I got a website from a friend and I was trying to get it to work on server running FREEBSD with Apache and modperl. The website was coded to run an Alias called go and has several .pm files. I got the alias go by adding a line of configuration to the httpd.conf file but I've had

Re: database caching in persistent handlers

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 13:02 -0600, Frank Wiles wrote: >Not being a MySQL guy this could be fixed now, but last I heard >MySQL tossed it's cache anytime the table was updated. Not very >efficient IMHO. Yes, modifying data in a table invalidates the cache for that table. There's really

Re: database caching in persistent handlers

2007-01-15 Thread Frank Wiles
On Mon, 15 Jan 2007 11:38:34 -0500 Perrin Harkins <[EMAIL PROTECTED]> wrote: > > - if MySQL's cache is very efficient, should I bother caching in > > my own code? Not being a MySQL guy this could be fixed now, but last I heard MySQL tossed it's cache anytime the table was updated. Not ver

Re: does begin block effect any performance in modperl

2007-01-15 Thread Frank Wiles
On Mon, 15 Jan 2007 10:29:01 +0800 (GMT+08:00) Jeff Pang <[EMAIL PROTECTED]> wrote: > > >> > >> I mean anything relative to the performance.is the begin block > >> called everytime orjust the first time and is it safe to define a > >> function in a file and call it with this method rather than a

Re: Making .pm files run.

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 10:44 -0800, iNetForce wrote: > I got a website from a friend and I was trying to get it to work on server > running FREEBSD with Apache and modperl. Can you get your friend to give you instructions on how to configure it? There are many ways to configure code to run under ap

Making .pm files run.

2007-01-15 Thread iNetForce
I got a website from a friend and I was trying to get it to work on server running FREEBSD with Apache and modperl. The website was coded to run an Alias called go and has several .pm files. I got the alias go by adding a line of configuration to the httpd.conf file but I've had no luck with .pm f

Re: Test fails/Functionality works

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 00:51 -0800, Tracy12 wrote: > I found out that the reason for failure is the following line > > use Apache2::compat; You didn't tell us what the error message is when you have that line in. Regardless, you shouldn't use Apache2::compat for new development. It's meant for po

Please help with Apache2::Request installation

2007-01-15 Thread Jeff Y
I have problems in installing apache2::Request. What I did on my RHEL 4 machine are 1) Download httpd-2.2.3 from http://apache.mirrors.pair.com/httpd/httpd-2.2.3.tar.gz, and build and install it. 2) Download mod_perl-2.0.3 source from http://perl.apache.org/dist/mod_perl-2.0.3.tar.gz 3

Re: What is the meaning of -e in the error log

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 17:34 +0530, abhishek jain wrote: > I am running modperl 2.x and i am getting some wierd problem i am > invoking modperl from browser and at times it will execute correctly > and otehr times it will not be able to find the function called from > the script. the error log has

Re: database caching in persistent handlers

2007-01-15 Thread Perrin Harkins
On Mon, 2007-01-15 at 15:54 +, John ORourke wrote: > - MySQL caches compiled statements, so why should I bother using > prepare/execute? Do you mean "Why should I bother using prepare_cached?" The reason for that is the additional overhead of object creation that it avoids on the database c

database caching in persistent handlers

2007-01-15 Thread John ORourke
Hi folks, please humour me with this slightly OT RFC... So I've re-invented the wheel (or MVC framework) and need to make it efficient. A high-traffic site is using the system and is causing me some grief... Some questions have come up re efficient caching: - MySQL caches compiled statement

Re: Problem with libapreq2 and make

2007-01-15 Thread Jonathan Mangin
Is this last line supposed to be creating libapreq2.la or using libapreq2.la? make[2]: Entering directory `/src/misc/libapreq2-2.08/library' /bin/ksh ../libtool --tag=CC --mode=link /usr/local/bin/gcc -g -O2 -fno-strict-aliasing -o libapreq2.la -rpath /usr/local/apache3/lib .. - Orig

What is the meaning of -e in the error log

2007-01-15 Thread abhishek jain
Hi, I am running modperl 2.x and i am getting some wierd problem i am invoking modperl from browser and at times it will execute correctly and otehr times it will not be able to find the function called from the script. the error log has error with -e prepended. Here is the log: [Mon Jan 15 17:18:

Re: pros & cons of Apache2::Request vs. CGI

2007-01-15 Thread Nikolay Ananiev
there are only pros. "Torsten Foertsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

functionality works / but test failed

2007-01-15 Thread Tracy12
Hi, I am in the process of changing a perl module written to a Perl Authentication handler. Well when I try to deploy the module it failed in the ' make test' stage all the other steps went ok. But the functionality works as expected. When we execute make test it gives the following error Fa

Test fails/Functionality works

2007-01-15 Thread Tracy12
Hi, I am in the process of changing a perl module written to a Perl Authentication handler. Well when I try to deploy the module it failed in the ' make test' stage all the other steps went ok. But the functionality works as expected. When we execute make test it gives the following error Fa

Re: How to extract a parameter

2007-01-15 Thread Issac Goldstand
Issac Goldstand wrote: > Jonathan Vanasco wrote: >> On Jan 14, 2007, at 6:45 PM, Fred Moyer wrote: >>> But it's really much easier to use CGI :) >> There's also libapreq > > OK - so out of the corner of my eye, I saw the link again as the > previous mail was being copied to my sent-mail and notice