perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nouguier Olivier <>
Subject Re: apache::request and other newbie questions
Date Fri, 02 Nov 2001 09:22:10 GMT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<body bgcolor="#FFFFFF">
John Michael wrote:
<blockquote TYPE=CITE><style></style>
I have a modperl script that uses. and actually I have been importing my on cgi params from get and
post but do use for cookies.&nbsp; I have read in some other emails
and now in the guide that it is faster to use Apache::Request so I want
to change my script over to this method since it will eventually come under
a heavy load. I added this to my perl.conf filePerlModule Apache::Request
<p>and apache says that it can not find the module in
<p>@INC (@INC contains: /etc/httpd/lib/perl /usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /etc/httpd/)
<p>sure enough, I looked in there and it isn't.
<p>I went to the module list and the list claims that apache::request is
included with the standard dist of mod perl.
<p>I'm running Apache 1.3.9 and mod_perl/1.24_01
<p>What should I do? Also, I have a script that is running under apache::registry.I
run the script by using a mod-actions handler that I have in my httpd.conf
file like so.The script runs from a blank index.htm page and creates the
dynamic output depending on the referring url and query-string&lt;Directory
Apache::Request is not shipped with mod_perl ...
<br>Take a look at CPAN ...
<br>Or <A HREF=""></A>
<blockquote TYPE=CITE>&nbsp;
<br>AddHandler RTS-protected-htm htm
<p>Action RTS-protected-htm /perl/content_manager/
<p>I imagine this is not very efficient?
<p>I guess I will eventually have to set it up as a hander?
<p>What is your opinion?
Personnaly, I prefer a very simple handler, using ( owned ) libs,&nbsp;
than a "", that much easy to maintains
<blockquote TYPE=CITE>&nbsp;
<br>I'm new to packages and modules and have basically little experience
with OOP.&nbsp; The script works fine with no errors, but I expect a heavy
load in the future. I eventually want to have the correct solution but
I'm trying to beat the learning curve before the traffic gets there.
<p><font face="Arial"><font size=-1>Can I set up the script now as a handler
or does it have to be written in OO format?</font></font>
<p><font face="Arial"><font size=-1>I do understand that a few things have
to be changed, like I have to use apache::constants to finalize the handler
<p><font face="Arial"><font size=-1>Reading several books and understanding
more and more everyday.</font></font>
<p><font face="Arial"><font size=-1>Any suggestions would be greatly appreciated.</font></font>
<p><font face="Arial"><font size=-1>Thanks</font></font>
<p><font face="Arial"><font size=-1>John Michael</font></font></blockquote>

My mother always used to tell me, "The early bird gets the worm."
The message seemed pretty clear to me: If you sleep late, you're
a lot less likely to be killed by a bird.
&nbsp;&nbsp;&nbsp; -- Elliott Downing</pre>

View raw message