$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
,
A.
--
Aaron Trevena, BSc (Hons) --- Software Engineer
Tusker Direct :: www.tuskerdirect.com
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
:));
__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
Pearson Laboratory
University of Virginia
(434) 924-2821
[EMAIL
to httpd.conf via Apache::Server?
Thanks,
-Aaron
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 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers
it is just a thread issue.
Aaron
Before you rebuild it, if you can get the segfault backtrace, that would
be great. If you don't know how, check:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
__
Stas Bekman
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 find
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
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 without all
Apache process forking?
Thank you,
Best wishes
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 you
it.
Would
Files *.phtml
/Files
do the trick?
--
Aaron Ross . Alias I, Inc.
email . [EMAIL PROTECTED]
web . www.alias-i.com
office . 215 545 6428
mobile . 610 517 2905
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
(is 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?
VirtualHost__default__:80
Redirect/ https
URI manually?
Thanks,
-Aaron
.
-Aaron
--
Aaron J Mackey
Pearson Laboratory
University of Virginia
(434) 924-2821
[EMAIL PROTECTED]
the trick - the browser is now redirected correctly, thanks.
-Aaron
webwork 394 May 10 12:40
/home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm
What am I missing?
thanks for any help,
-Aaron
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
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 PROTECTED]
Technical Support
collection isn't working, maybe there is a circular reference in
BerkeleyDB.
Ugh. Please keep me informed.
-- 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://savage.net.au/index.html
Magick.xs:76
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 $self
}
TMTOWTDI, aaron
--
aaron
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 did not work the other way round
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
email
http://callistocms.com v http://w.moreover.com/
hmmm
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
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
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 place your favorite open
source application here page to refute known myths.
Aaron Johnson
Chris
perl-5.6.1
Thanks, Aaron
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
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.openca.org/
http
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!
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
I see an discussion
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 - like the average user who
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:
Location ~ ^/$
SetHandler perl-script
PerlHandler Slash::Host::slashcode::rootHandler
/Location
Apparently,
1.25
Apache::ASP 2.09
If any more info is needed let me know.
Aaron Johnson
that it 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 wrote
ttoday.com/
--
- Original Message -
From: "Aaron Johnson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 2:48 PM
Subject: Re: Run away processes
In a private email someone mentioned that removing the \ before the $
might
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
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 PerlRequire comes
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
--- test.pl ---
use strict
ch 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
with Apache::DBI.
Should it work seamlessly or does it need to be overridden to work
correctly with it?
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.
The upload just hangs and never finishes.
Apache 1.3.14
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:
- Doesn't "help" with any HTML.
I think 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
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 can't
r ( % ), 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:
Hey,
I am considering
en changes are made.
Aaron Johnson
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. :)
HTH,
Aaron
thanks in advance
Andreas
--
Andreas Marienborg+47 92 28 63 82
[EMAIL PROTECTED
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 chamberlain wrote
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
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
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 fundamentally impossible. what database are you
going
efile.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 ../apache_$APACHE_VER
make install
echo "* Done! **"
-=-=- end -=-=-=-=-
Anyone hav
this 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 PROTECTED
. 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?
Aaron Johnson
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 this project if given some input on how
to proceed
asier 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
Aaron Johnson
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?
I am familiar
.
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 instead of a directoy full of files
be a nice addition to the guide too.
aaron
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
manner (i.e. processing mailinglists)
Aaron Johnson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
be excellent.
see the Apache::Connection class... $con-aborted() is what you want i
believe.
Aaron
tion "hook" was documented. it
might even turn out to be useful for other module authors.
aaron
= "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 a look at the DBI.pm source, you'll see what's going on.
aaron
let me know what happens
Thus after 100 folk have logged in
ation 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 different domain - you
server login and it works great. )
Any information would be appreciated.
Aaron Johnson
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
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
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:
Out of memory!
Callback
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
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
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 an
- libclntsh.so.8.0
maybe this is an oracle install issue?
Aaron
cause for concern?
--Geoff
use DBD::Oracle;
# results in:
# Can't load
'/usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread-multi/
auto/DBD/Oracl
e/Oracle.so' for module DBD::Oracle: libclntsh.so
9%26e%3Daaronn%2540questra.com
HTTP_COOKIE =
i=i%3DT%26s%3DaaQBS8WFOaul%252F12i3u%26devunlock%3D6069%26e%3Daaronn%2540questra.com
I'm hoping that this will sound look familiar to you, and tell me that
it was all fixed in a recent (stable) release.
Please let me know,
-AAron
. 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-QueryString
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
staging server (i.e., not the live one), and grab the pages
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
------
Ken Williams Last Bastion
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
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
version of apache ??
Hope someone can
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
. 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 "ideas" and I
hi Tim!
tried it. didn't work.
what difference were you thinking that might make? maybe there is another
way to achieve it.
Aaron
Try retrieving the content type and then working on that scalar.
my $ct = $r-content_type;
return -1 if ((-e $r-finfo) $ct ($ct !~ m|^text/|i
one for images go away.
sorry to bother you all,
aaron
hi Tim!
tried it. didn't work.
what difference were you thinking that might make? maybe there is another
way to achieve it.
Aaron
Try retrieving the content type and then working on that scalar.
my $ct
the problem... However, I like
that line and want it to stay!!!
TIA,
Confused in Swarthmore, aka Aaron
using ?-style placeholders, and ?-style
placeholders can't refer to TEXT or IMAGE columns.
if you got past this problem, please tell me how! i'd love to see this work!
Aaron
Dear Mr. Baker:
I am trying to use Apache::Session module with a Sybase 11 server, but can't get it
to work
, should it be able to handle 2000 connections, or is that outside
the scope
of the design of the server.
Does anyone have any suggestions or similar experiences with scaling.
Thanks,
Aaron Ryan
Ivenue.com
and domain to be present for some reason.
$path = CGI::url(-absolute=1) unless defined $path;
# $path = "/" unless defined $path;
removing the call to CGI::url fixes the error.
So.. any advice or explanation?
Aaron
Thanks for your help!
I'll look at Apache::Cookie, too. Although I don't really see the big
difference in simplicity.
Aaron
On Fri, 4 Feb 2000, Aaron Ross wrote:
Hi!
I'm trying to write an AccessHandler. I'm using CGI::Cookie to, you got it,
create and parse Cookies. However, I'm
1 - 100 of 115 matches
Mail list logo