Hello.
Rather than being most concerned about the learning curve, I would be more
concerned with using a flexible and powerful template engine. Because once you
start down the road of building templates, if your template engine isn't
capable enough, you have to go back and redo them and maybe
I wrote some classes and functions to convert & resize images on the fly using
image magick. Plus they are cached so they only have to be converted once,
unless they are updated of course. Let me know if you are interested.
greanie
- Original Message
From: "Vaughn, Terry" <[EMAIL PRO
Hello,
I doubt this is specifically a modperl problem but if not, perhaps someone can
point me to a better group to post this message with?
First, I am using:
modperl 2.0.x
perl 5.8.5
Linux
I have a page on a site where users can upload as many pictures as they like.
I am using the cgi class
ot; in the top of my module? Is that
why I am getting the error on my return OK call?
- Original Message
From: Philippe M. Chiasson <[EMAIL PROTECTED]>
To: Michael Greenish <[EMAIL PROTECTED]>
Cc: modperl@perl.apache.org
Sent: Friday, October 20, 2006 7:31:13 PM
Subject: Re: apach
> I also had to make the follow addition to my config file:
>
>PerlInitHandler Apache2::Reload
>PerlSetVar ReloadAll Off
>
> I never figured out how to check if it was actually picking up changes
> on its own.
>
> For now, I have reverted to not using Apache2::Reload, which is kind
> Do you import OK from Apache2::Const in your script? If you don't
> return OK, do you still have that message?
> - Perrin
I do import the constants:
use Apache2::Const qw( OK FORBIDDEN REDIRECT :log );
When I don't return OK, I got an error as well but not from the handler (i.e.
no
06, at 10:59 AM, Michael Greenish wrote:
> Hello,
>
> I just added apache2::reload to config & handlers, classes,
> packages for my application. However, everywhere I have "return
> OK", I get an error:
>
> "Not a CODE reference at /http/greanie/Index
Hello,
I just added apache2::reload to config & handlers, classes, packages for my
application. However, everywhere I have "return OK", I get an error:
"Not a CODE reference at /http/greanie/IndexHandler.pm on ..."
and request returns the page and a 500 error (in browser, I see rendered page
I definitely recommend using a template engine and
using an Model-View-Controller (MVC) framework; the
template engine helps with the view part. I was first
introduced to it on the tutorials under documentation
on perl.apache.org. It took me a little while to
figure out how to create & instantiate
Hello,
I am having problems with permissions when only the
web url is typed into the browser. I know this should
be just an apache config issue I have two sites being
served on this server and they both have the same
configuration in the vhost file. One site uses
mod_perl and has problems, the
Hello,
A few months ago, I wrote to this group because
external redirects for requests from internal
redirects were not working while redirects from normal
requests worked fine. I was running in registry mode
and was told that that was probably the source of the
problem. However, I have changed
another
way to perform the redirect in registry mode?
> Michael Greenish wrote:
> > I am working in modperl::registry (not writing my
> own
> > handlers) and I found this recipe on the modperl
> > website:
> >
> >
>
http://perl.apache.org/docs/2.0/user/coding/cooking.
hanks,
greanie
--- Tom Schindl <[EMAIL PROTECTED]> wrote:
> Fred Moyer wrote:
> > Michael Greenish wrote:
> >> use strict;
> > [..]
> >
> >> # redirect
> >> $r->headers_out->set( Location => $redirectURL );
> >> $r->status( RE
Hello,
I am attempting an external redirect after an internal
redirect and it isn't working.
Below are code excerpts:
use strict;
use DBI;
use Apache2::RequestRec();
use APR::Table();
use CGI;
$CGI::POST_MAX=1024 * 1024; # max 1M posts
$CGI::DISABLE_UPLOADS = 0; # change to 1 to disable
uploa
I've been writing in perl for just over a year. I was
a developer in embedded controls, but had an idea for
a website and some free time so started learning perl.
I had a strong C++ background so understood OO pretty
well. I chose Perl because I had heard so much about
it. My first site was pur
an 12, 2006 at 11:09:32AM -0800, Michael
> Greenish wrote:
>
> > sub resizeImgs {
> > my $self = shift;
> > foreach my $file( @$self->{resize_list} ) {
> > ...
> >
> > I get the following error:
> >
> > Not an ARRAY reference at
Since I am passing a reference to an anonymous hash
when calling the new method, the @_ only contains one
element, that reference. The '$objRef = shift;' in
the constructor brings the hash ref into the function.
When I print out the $self in my resize function, I
see the list, so it definitely ex
Hello,
This should be very easy but apache is not letting me
do this. I have a list of file names stored in an
array. The list is created as follows:
push @resizeList, $img->{path} . $img->{file};
The list is passed to a package via a new method as
follows:
my $imageResize = Ishare::Clas
tabase. I
couldn't track down the location of the MySQL binary
files to see if an actual update is being performed.
And I killed and restarted Apache2 just in case.
--- Malcolm J Harwood
<[EMAIL PROTECTED]> wrote:
> On Sunday 18 December 2005 02:31 pm, Michael
> Greenish wrote:
Hello,
This seems be a rather basic problem but I haven't
found the solution in the last several hours and have
run out of ideas. I am using MP2 with Apache::Session
1.80. I have created a session object class so I can
keep the retrieving of the session out of my main
code. The session is calle
Hello,
I am trying to migrate from mod_cgi to mod_perl. My
system is as follows:
linux suse 9.2
(installed via rpm from suse)
apache2-mod_php4-4.3.8-8.9
apache2-2.0.50-7.3
apache2-devel-2.0.50-7.3
apache2-prefork-2.0.50-7.3
apache2-mod_perl-2.0.1-2.1
I added the 'LoadModule perl_module
/usr/li
21 matches
Mail list logo