ckage MyModel::SomeObject;
...
sub doSomething {
...
my $dbiHandle = MyDBIHandleFactory->getHandle();
...
}
1;
package MyDBIHandleFactory;
sub getHandle {
if (defined $handle) {
return $handle # implement as singleton
}
... read config or something ...
$handle = DBI->connect(...);
}
1;
hth, aaron
just fyi, mod_rewrite should be capable of handling those tests. See the
file tests under
http://httpd.apache.org/docs-2.1/en/mod/mod_rewrite.html#rewritecond
HTH, Aaron
On Tue, 2003-06-17 at 08:56, Joel Bernstein wrote:
> Alternatively, can anybody suggest a different way to offer t
of its cycle.
hth,
A.
--
Aaron Trevena, BSc (Hons) --- Software Engineer
Tusker Direct :: www.tuskerdirect.com
d hosting when you can have a virtual
server (usually with ensim and stuff for newbies) for such a low ammount
of money.
http://www.bytemark-hosting.co.uk do some good deals and discounts for
free software author and seem nice people.
--
Aaron Trevena, BSc (Hons) --- Software Engineer
Tusker Direct :: www.tuskerdirect.com
> my $uri = $r->uri;
> my $subr = $r->lookup_uri($uri);
Is this recursing? the subrequest will run all phases but the content
handler, so
i would think you'll need to add
return unless $r->is_main();
or something like it at the beginning of the routine.
-- Aaron
httpd.conf via Apache::Server?
Thanks,
-Aaron
ndler::set_secret(read_password("Enter secret:"));
__END__
Does this make sense? Will this work? Will this be secure? (as long as
no one intercepts my call to set_secret() in startup.pl by installing a
bogus MyHandler.pm in my lib search path ...).
Thanks,
-Aaron
--
Aaron J Mackey
Pea
On Thu, 2002-12-19 at 13:12, Adam Batkin wrote:
> >>When I do an:
> >>rpm -ql perl | grep 'perldoc'
> >>
> >>I only get:
> >>/usr/share/man/man1/perldoc.1.bz2
> >
> >
> > I get
> >
> > [root@www2 root]# rpm -ql perl | grep 'perldoc'
> > /usr/bin/perldoc
> > /usr/share/man/man1/perldoc.1.gz
>
ave a perldoc either, I am wondering if it is a bad
build.
When I do an:
rpm -ql perl | grep 'perldoc'
I only get:
/usr/share/man/man1/perldoc.1.bz2
I don't think it is just a thread issue.
Aaron
> Before you rebuild it, if you can get t
a machine I upgraded from Mandrake 8.2 to 9.0 (Perl
5.6.1 to 5.8.0) everything compiled and worked.
I should also not that my Apache/mod_perl compile was done using the
Apachetoolbox utility and mod_perl was static not DSO.
Aaron Johnson
Mandrake 9 default perl -V:
Summary of my perl5 (revisio
to work
without mucking with DocumentRoot ... I think.
3. Have Client::WWW do a subrequest (via lookup_file), and run that
directly.
4. ???
TIMTOWTDI is getting me down right about now.
Thanks for your advice,
-Aaron
On Thu, 2002-11-21 at 19:00, David Simcik wrote:
> I would LOVE to use mod_perl on my personal website -- I have the diskspace
> to do so, but the question remains as to whether or not I have the rights.
> Can anyone point me to a guide for this? I've poked around the mod_perl site
> and didn't fin
This weeks print version of eWeek as well as the online version have an
article on Bricolage.
article - http://www.eweek.com/article2/0,3959,652977,00.asp
Bricolage - http://bricolage.thepritgroup.com
Aaron Johnson
r)
- Exec a process and send the temp file name to it
- On page refresh look to see if the temp (flag) file still exists and
if so create a new waiting page ( meta refresh ), otherwise deliver end
results.
Aaron Johnson
>
> May be best solution is using CGI-script, which allows forking with
On Wed, 2002-09-25 at 18:11, Dave Rolsky wrote:
> Has anyone here come up with an RPM for apache+mod_perl, with the
> following caveats:
>
I use Apache ToolBox to get all these items and have been very pleased
with. It allows you the option of creating a RPM as well, so if that
part works for y
some other programming languages and platforms.
My resume is available at http://alias-i.com/~ross/resume.html
Thanks! Aaron
it and let Apache handle it.
Would
do the trick?
--
Aaron Ross . Alias I, Inc.
email . [EMAIL PROTECTED]
web . www.alias-i.com
office . 215 545 6428
mobile . 610 517 2905
like this to load in the DBD drivers:
my $driver_class = "DBD::$driver";
eval "package DBI::_firesafe; require $driver_class";
I'm not sure this answers your MVC questions, but maybe it will make you
feel more comfortable with your solution.
hth, aaron
there a FAQ file somewhere that I could patch in the
answers to this question and send it to someone?)
-Aaron
On Mon, 13 May 2002, Christian Gilmore wrote:
> Is there a reason you don't just use a Redirect?
>
>
> Redirect/ https://secure.server.com/
n->get('Host'));
That did the trick - the browser is now redirected correctly, thanks.
-Aaron
ng for something cleaner.
-Aaron
--
Aaron J Mackey
Pearson Laboratory
University of Virginia
(434) 924-2821
[EMAIL PROTECTED]
t;http://myserver.org/mydirectory";. Do
I need to rebuild the entire URI manually?
Thanks,
-Aaron
394 May 10 12:40
/home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm
What am I missing?
thanks for any help,
-Aaron
.
Anybody know of something in mod_perl with this out of the box
functionality in addition to content management?
-- aaron
BerkeleyDB::Error."\n" if !$db_key;
> > return $db_key;
I was wondering if using tie() instead of just the OO interface was
causing a problem. Maybe rewriting the code to just use new() would
help? Of course that means losing the hash interface.
grasping at straws, aaron
#x27;t until the
end of next week. it's ugly, but you could use Devel::Peek to look at why
garbage collection isn't working, maybe there is a circular reference in
BerkeleyDB.
Ugh. Please keep me informed.
-- Aaron
n, but how
certain is the "May be done" list of to dos? - should I wait for your
apache module to include VBScript support, or am I going to have to work
with something like Sun's Chilli ASP for apache/linux ?
Many thanks for your time,
Aaron
Aaron Robertsmailto:[EMAIL PRO
> I'm testing with the Perl script below, with the filename ending
> ".mperl" (which, in my configuration, causes it to run as a mod_perl
> registry script).
I would re-write it as a handler and see if Apache::Registry is partly
to blame.
hth, aaron
There is a package available in ppm for ActiveState Perl.
There is a short write up on it PerlMonks
http://www.perlmonks.org/index.pl?node_id=140321
Aaron Johnson
Ron Savage wrote:
>
> lamp
>
> See below.
>
> Cheers
> Ron Savage
> [EMAIL PROTECTED]
> http
>
> sub new {
> my ($class, $r) = @_;
>
> return bless { r => Apache::Request->new($r),
>}, $class;
> }
or
sub new {
my ($class,$r) = @_;
my $self = $class->SUPER::new($r);
# do your own init ...
return $s
shouldn't stacked handlers be the right solution here? are stacked auth
handlers not allowed or something?
aaron
On Wed, 2002-02-13 at 09:02, darren chamberlain wrote:
> Quoting Marcel Weber <[EMAIL PROTECTED]> [12 Feb-02 16:15]:
> > I don't get the point why it d
ule to run will need to return DECLINED for the second to
ever see the request. You may need a simple AuthHandler that always
fails at the end. Try AuthenSmb, DECLINED or OK, try AuthSybase,
DECLINED or OK, then AuthFailed, always returned FORBIDDEN.
HTH, aaron
--
aaron ross . alias intelligence, inc
>
> It just shows off the power of Orange...
i, for one, believe in the power of orange.
> Nanoware...http://www.nanoware.org/
can i place a request for some orange nanoware?
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
http://callistocms.com v http://w.moreover.com/
hmmm
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
e had several discussions over the last three years on this list
about advocating mod_perl. I think what it really boils down to is a
polished web presence and a strong statement of the power and efficiency
of the product at hand and in this case a page to refute known myths.
Aaron Johnson
C
_perl-1.26
perl-5.6.1
Thanks, Aaron
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
x27;t want to pay and people tyring out the service wouldn't
be forced to pay just to login.
When you say plug-in token are you talking about a browser plug-in?
Aaron Johnson
More Resources for PKI, CA, etc.
http://ospkibook.sourceforge.net/docs/OSPKI-2.4.6/OSPKI/impl-mozilla.htm
http://www.o
> die (My::Exception->Return(code => "abc"));
$ perl -I/tmp -MMy::Exception -e 'die "My::Exception"->RetCode( code => 204 )'
$ My::Exception::RetCode=HASH(0x8185570)
not much better, but no parens. :)
i don't really understand the precedence problem though.
Aaron
Hi Ken,
> refcount destruction. I've declared %session as a locally-scoped
> variable, so it should evaporate before global destruction, unless it's
> got circular data structures or something. Anyone know what might be
> going on?
Do you have a simple case we can test yet?
Aaron
The job is on site in Chicago and would require a wide range of talent,
including , but not limited to:
Ability to create/write/edit content for the web site
Ability to work in a FreeBSD or Linux server environment
Able to troubleshoot and modify existing code that someone else has created
Able
On Fri, Sep 21, 2001 at 02:01:31AM +0800, Gunther Birznieks wrote:
> "You can reach your goals.
>
> I'm living proof.
>
> beefcake.
>
> BEEFCAKE!!"
>
> -- Eric Cartman
LOL! sounds like a great project stas! thanks ticketmaster!
sfio, but
I've always found this a little extreme.
My prefered solution is to use a perl module called Apache::SubProcess
(search on CPAN) which redefines system()/exec() to work from within a
mod_perl script.
Cheers,
Aaron
On Tue, 31 Jul 2001, Mauricio Amorim wrote:
> Hi
>
lso take a look at Cache::Cache for some sessions.
There are also a number of modules that provide persistance frameworks: Alzabo,
Persistent::*, Tangram, Storable. See Data Type Marshalling and Persistent Storage
in the Modules list on CPAN: http://www.cpan.org/modules/00modlist.long.htm
Let me know how it works out.
Aaron
What version of the CPAN module do you have? Version 1.56+ should no longer
"force" you to upgrade.
Aaron Johnson
( is it 1.56 or 1.57, anyway 1.59 is out now and it doesn't force you to
upgrade :^)
Mithun Bhattacharya wrote:
> Umm aren't we forgetting something here
Al Morgan wrote:
> I've been studying Slash to better understand mod_perl. I think I
> understand everything that happens in the config file, except for this:
>
>
> SetHandler "perl-script"
> PerlHandler Slash::Host::slashcode::rootHandler
>
>
> Apparently, whenever the user r
f Engineer / Programmer
> http://www.arttoday.com/
> ------
>
> - Original Message -
> From: "Aaron Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 04, 2001 2:48 PM
> Subject: R
is all the DESTROY calls that
are making its way to the error log. Should these be trapped some where
else?
I still don't think this has anything to do with my memory being consumed,
but I thought it seemed odd that so many things were called with no defined
sub.
Aaron Johnson
Aaron Johnson
9 compiled with the corrected gcc
mod_perl 1.25
Apache::ASP 2.09
If any more info is needed let me know.
Aaron Johnson
I was under the impression that once I ran the
PerlRequire script, if I did the use lib command, all
my other mod_perl scripts called on that server would
have access to that library?!
Aaron
--- "Liddick, Scott" <[EMAIL PROTECTED]>
wrote:
> Make sure that your PerlRequi
Hey there.
I have a line in my httpd.conf:
PerlRequire /path/to/startup.pl
In startup.pl I have this line:
use lib '/path/to/module';
This is not being added to my @INC like it should. Any
thoughts?
__
Do You Yahoo!?
Get personalized email ad
nd of embarrassed about the location of ls... yes it was
wrong. That was just a quick example I bashed up (which
originally used echo which is in that path =). Still, with the
correct ls path, or that of any other binary, the first error (relating to
fdopen) remains.
Cheers,
Aaron
> > --- t
] (2)No such file or
directory: Apache::SubProcess exec of /usr/bin/ls failed
I'm using Apache version 1.3.17, mod_perl version 1.25 and
Apache::SubProcess version 0.02. Any help would be greatly appreciated!
Cheers,
Aaron
/libexec/libperl
.so
%
As you can see the file is there.
I am running BSDI 4.1 and Apache 1_3.17 trying to
compile mod_perl 1.25
HELP :)
Aaron Schlesinger
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year
Apache::DBI.
Should it work seamlessly or does it need to be overridden to work
correctly with it?
Aaron Johnson
PROTECTED]
Thanks
Aaron Johnson
Joshua Chamas wrote:
> Aaron Johnson wrote:
> >
> > I have tested other formats and they all work fine.
> > For some reason I can't upload binary files anymore.
> > There has been no change to the code for the pages that do the upload.
> >
> &
I guess putting my name on this would have been nice :^)
There is nothing in the log file indicating any errors on the upload
process and the browser just hangs. Both NN and IE.
Aaron Johnson
Aaron Johnson wrote:
> I have tested other formats and they all work fine.
> For some reason I
I have tested other formats and they all work fine.
For some reason I can't upload binary files anymore.
There has been no change to the code for the pages that do the upload.
The upload just hangs and never finishes.
Apache 1.3.14
mod_perl 1.24_01
Apache::ASP 2.07
RH 6.1
Has anyone else had th
Joshua Chamas wrote:
> Aaron Johnson wrote:
> >
> > If what you are saying is that current EmbPerl code would be able to run
> > almost unchanged under ASP that would be very interesting, but presently
> > my biggest issues with Apache::ASP are:
> >
> > -
tag to remember ( <% ), well ok two if you count <%=
There are others, but those are the main ones I can think of off the top
of my head.
I think making it do its job better and faster is more important then
trying to allow for other delimiters IMHO.
Aaron Johnson
Joshua Chamas wrote:
hanges are made.
Aaron Johnson
gt;{unserialize} = \&Apache::Session::Serialize::Storable::unserialize;
return $self;
}
sub generate
{
# some code to generate ids
}
sub validate
{
# some code to validate ids
}
1;
Of course, you'll actually need to write some code to generate and validate
ids. :)
H
Actually in some context rebate will do.
One meaning of rebate is:
Middle English rabet, from Old French rabat:
recess in a wall, act of beating down,
from rabattre,
to beat down again;
Is rebate in the sense of the word that the amount is reduced an American thing?
Aaron Johnson
[EMAIL
me to set options based on it.
I see now it is in the Guide as well at:
http://thingy.kcilink.com/modperlguide/snippets/PerlTransHandler_example.html
Not knowing what I needed to do was called (or what phase it was best handled) was
the root of my problem.
Thanks!
Aaron Johnson
darren chamb
:ASP gets a hold of
it so I don't have to modify the Apache::ASP script.
Can I chain the handlers?
Does altering the $r->filename alter the %ENV in anyway?
Aaron Johnson
and Python. It uses the Mozilla engine.
http://www.activestate.com/Corporate/Communications/Releases/Press974947521.html
(for the seperate discussion of GUI interfaces)
Should someone try to form an alliance with ActiveState to insure they don't
ignore mod_perl users or want to be users?
is is all documented some
where, but since I don't have anything on CPAN currently I haven't
really looked.
Did I miss understand the comments inside of the other thread?
Aaron Johnson
-
To unsubscribe, e-mail: [EMAIL
his arg to APACI_ARGS if you are on RedHat
# --with-layout=RedHat
perl Makefile.PL APACHE_SRC=../apache_$APACHE_VER/src DO_HTTPD=1 USE_APACI=1
EVERYTHING=1 APACI_ARGS='--enable-shared=max --disable-shared=perl
--enable-module=most'
make && make test && make install
cd ../
at a time earlier than now, kevin montuori wrote:
> >>> Aaron E Ross writes:
>
>
> aer> the possibility of being able to untar one package to get
> aer> mod_perl w/ persistent db connections, [&c.] is very glamorous!
>
>agreed. but fundamen
r with a few hooks to call make, install and restart
granted this may not get us everything, but if we could package up the stuff
we all use over and over again, wouldn't that get us pretty far?
Aaron
I'm willing to contribute time to th
hould be much easier since there are
numerous books and example code available in print and online that will work inside
of mod_perl with little or no change.
I just checked out the PHP site and their online manual allows for user comments
that are displayed at the end of each page. Hmm
A
you have perl-status enabled you will be able to see how many
connections you have living at any given time.
Aaron Johnson
Stas Bekman wrote:
> On Sat, 2 Dec 2000, Edmar Edilton da Silva wrote:
>
> > Hi folks,
> >
> > I am not sure if my perl scripts are r
.
Aaron Johnson
Ask Bjoern Hansen wrote:
> On Mon, 27 Nov 2000, Aaron Johnson wrote:
>
> > I am trying to get the MHonArc package to work in conjunction with an in
> > house module.
> > When MHonArc (http://www.mhonarc.org) is run and told to process a
> > single file
Is the HTTP::DAV module of any use? I just ran across it in TPJ.
http://theoryx5.uwinnipeg.ca/CPAN/data/HTTP-DAV/DAV.html
Aaron
Joao Pedro Goncalves wrote:
> Hi, is there any current project going on for using the WebDAV protocol
> in
> mod_perl, something like Apache::WebDAV?
is a year ago?? ]
it would be a nice addition to the guide too.
aaron
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
st in case there are any gotchas doing
this under mod_perl. I realize it is border line off topic.
I have MHonArc doing what I need it to, but it required a butcher knife
when all I think I need is a butter knife.
Aaron
---
ormal manner (i.e. processing mailinglists)
Aaron Johnson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nice if the DBI connection "hook" was documented. it
might even turn out to be useful for other module authors.
aaron
> URLs, pointers would be excellent.
see the Apache::Connection class... $con->aborted() is what you want i
believe.
Aaron
nnect";
and set connect_meth to 'connect' and not 'Apache::DBI::connect'
$connect_via = "Apache::DBI::connect";
so that when this code runs you are good to go without Apache::DBI.
$drh->$connect_meth($dsn, $user, $pass, $attr)
he he. ugh. take
nformation again. ( I am basing that off
existing work with Apache::ASP and app entry points )
Any major flaws with this plan or suggested improvements?
Aaron Johnson
Simon Rosenthal wrote:
> At 11:37 PM 9/7/00 -0600, Joe Pearson wrote:
> >I thought you could set a cookie for a diffe
r a single server login and it works great. )
Any information would be appreciated.
Aaron Johnson
l the trouble
to make one along with Apache::DBI
We have not had any more issues with the database connects since we moved to
this method. We do a ping and validate the dbh handle rather then blindly
accessing the dbh handle since Apache::DBI will only validate the dbh handle
on a connect.
Aaron Johnson wrote:
> I made some changes to a module to use a hash stored with the Storable
> module. On our development server all is well, but when I moved it to
> the production server I was greeted with this when I stopped and
> attempted to restart the server:
>
stratup scipts and everthing is the same or newer on the production
machine, except DBI which is 1.13 vs. 1.14.
What can I run to get more information then the above?
Storable 0.7.0.2
mod_perl 1.24
Apache 1.3.12
perl 5.005_03
Aaron Johnson
Hi. I was wondering if anyone could point me in the direction of some
articles, benchmarks, or any information about apache with mod_perl up against
IIS 5. Any information would be appreciated. Thanks in advance!
--
Aaron Patterson
Try restarting apache. I get problems like this too, where sometimes some
stuff will happen, and sometimes it won't. The only way I know of is to
restart apache. If anyone else knows a better way, I would like to know! I
know that mod_perl compiles a copy of your script, and keeps it in memory
There is the HTML::FillInForm module that will pre fill your forms.
It is pure Perl. It seems to work well, haven't stress tested it yet.
I am using it in conjunction with Apache::ASP, but haven't hacked
the Apache::ASP module to include it as a function. It is much easier
to work with now that
at a time earlier than now, Perrin Harkins wrote:
> On Thu, 27 Jul 2000, Kenneth Lee wrote:
> > My ideal system would be those the designer can see the server-side
> > objects and data fields in the database, and only associate them with
--- begin sappy gratitude ---
my ideal system is having
/opt/oracle/product/8.1.6/lib/libclntsh.so -> libclntsh.so.8.0
maybe this is an oracle install issue?
Aaron
> cause for concern?
>
> --Geoff
>
> >
> > >
> > > use DBD::Oracle;
> > > # results in:
> > > # Can't load
> > >
> &
Hello gurus in mod_perl land!
mod_perl is a great extension to apache!
I just wish it were easier to config & install.
Touching an Apache/mod_perl installation that already works is just
about the only thing that scares me these days.
As for my problem...
Hardware: Dual processor PIII 500Mhz, 51
. Anybody else done
anything similar?
Aaron Johnson
Page is called ez_archive.html, there is a lot more going on then this simple
post, but this is the crux of what I am saying.
code sample (Apache::ASP based):
<% use LWP::Simple;
my $get_string;
foreach my $key (keys %{$Request->Query
> generate the output offline and push it up, then just remember (or have your
> upload process) remake the cache.
this is exactly the process that is makes sense to write a nice interface
for... why not get the benefits of shared, modular code?
aaron
mathforum.com we modified the HTML::Mason caching code to allow us to
do this, but it's _much_ slower than writing static pages.
anyway, hopefully this explains why it's an interesting idea.
Aaron
>
>
> ------
>
age is already generalized. if you used Session::FileStore, you
could just set the Directory to be the document root, and the session_id to
the file name of the dynamic (and now static) page.
Aaron
>
> Another option is to set up whatever handler you want, on a development or
> stagin
es as you did Perl.
Aaron Johnson
Walter Hissink wrote:
> Hello,
> I still can't find the mod_perl for win32.
> On the mod_perl website now no mention is even made about that specific
> port.
>
> Does anyone know where i can get me a mod_perl which works in the win32
>
C and want to
compile in additional modules you would want to have the same compiler.
I have compiled my own under NT with VC 5.0 and used it on 9x with no
problem. I have also installed and tested both of the above in the past
and they have worked very well.
Aaron Johnson
Light Software wrote
in CVS section of Embperl. May want to see what
you have for handlers and run the server without them to see if it is infact a
mod_perl issue.
I am going to be duplicating on SuSE 6.3 , RH 6.1 and RH 6.0 this week. I
will post my success stories here, if there are any. :^)
Aaron Johnson
Jeff
mod_perl test suite shows a pass on SSI. Of
course I am totally guessing here. (See
http://www.mail-archive.com/embperl@perl.apache.org/ for more information. The
subject is "Compile problems")
I tried the compile with Apache 1.3.9 and it had the same results.
Aaron Johnson
Charles
e with ASP. The mod_perl guide has a great section on it.. so
what's missing for a mod_perl handler? what would it take to make a general
solution... Well a general framework. Is that even possible?
Just Curious,
Aaron
> (Joshua, promise to let me know when you get tired of my &
1 - 100 of 129 matches
Mail list logo