On Tue, 2012-06-05 at 19:49 -0700, Fred Moyer wrote:
> I'm pleased to announce the release of mod_perl 2.0.7, available at
> the following apache.org URL, along with a CPAN mirror near you
> shortly, as well as http://perl.apache.org.
w00t!
well done
>
> This release of mod_perl contains an upd
On Tue, 2012-04-03 at 22:50 -0400, Jim Schueler wrote:
> Hope this doesn't get trapped by too many spam filters.
>
> Sad news. Just saw a blog
>
>http://www.highscalability.com/
>
> that reports YouPorn.com switched from Perl to PHP. Apparently there's a
> reported 10% improvement in spee
Hiya
Not sure where to report this, but the http://svn.apache.org/snapshots
directory linked to on
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
no longer exists.
Any idea where to download SVN snapshots from now? (other than from the
svn repo itself)
Hi Niels
On Thu, 2011-07-14 at 20:09 +0200, Niels Larsen wrote:
> Yes, CPAN has very, very useful things. I consider its biggest problems
> 1) too difficult to find things when not knowing what one wants, 2) a
> huge undergrowth of modules that are either bad quality or unmaintained
> or duplicate
On Wed, 2011-03-16 at 10:14 -0400, shant. wrote:
> i dont want to use Apache2::Compat
>
> mp 1 code
>
> my $fh = Apache::File->new($self->{TicketSecret}) || return;
> $self->{SECRET_KEY} = <$fh>;
>
> i need to convert it into mp2
http://perl.apache.org/docs/2.0/us
On Mon, 2011-02-07 at 17:55 -0800, Fred Moyer wrote:
> mod_perl 2.0.5 is here!
Well done! and thanks
clint
On Mon, 2010-12-13 at 21:11 -0800, Fred Moyer wrote:
> A release candidate for Apache-Test is now available at the following url:
>
> http://people.apache.org/~phred/Apache-Test-1.34-rc1.tar.gz
On opensuse 11.3:
clin...@balrog:~/Desktop/t> tar -xzf Apache-Test-1.34-rc1.tar.gz
clin...@balrog:~/D
On Fri, 2010-12-03 at 11:52 +, is...@apache.org wrote:
> libapreq2-2.13 Released
Callooh Callay!
And now on to mod_perl 2.05!
http://www.gossamer-threads.com/lists/modperl/dev/102192
thanks for releasing
clint
> Changes with libapreq2-2.13 (released December 3, 2010)
>
> - HTTP Only Cook
On Sat, 2010-11-13 at 14:15 +0100, Tosh Cooey wrote:
> I'm not quite ready to declare victory, but I think installing DBD from
> source and getting more recent versions of DBD was the problem, and it
> seems there's a lot of little things going wrong with DBD.
>
> What's going on there? When di
> In an SQL server, you'd use a SEQUENCE:
>
> SELECT NEXT VALUE FOR MY_BLA_SEQ FROM <...>
>
Here's a good read about how Flickr manage their unique IDs using MySQL:
http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/
clint
On Tue, 2010-01-19 at 14:11 -0800, Randy J. Ray wrote:
> I have some code that uses IPC::Open3, and I've discovered (the hard
> way) that it doesn't work under MP2 and Apache 2.2.6. What is the
> "best practices" way of doing this under MP2?
I use IPC::Run, which works in mod_perl and non-mod_perl
Hi all
I think that the behaviour of $r->no_cache(1) is buggy, when combined
with mod_expires.
I have:
ExpiresDefault"access plus 1 month"
ExpiresActive On
then in my mod_perl code, I call $r->no_cache(1)
The headers that are returned are:
Pragma: no-cache
Cache-c
> For example, I'd like to be able to have:
>
> File 1: /usr/foo/.htaccess:
> PerlInitHandler MyAuth::Authnz.pm
> # We want this to load /modules/foo/MyAuth/Authnz.pm
>
>
> File 2: /usr/bar/.htaccess:
> PerlInitHandler MyAuth::Authnz.pm
> # We want this to load /modules/bar/MyAuth/Authnz.pm
Th
> i. The total VIRT size of the process before was 119 Mb
> ii. Before - the process shared 94 Mb with other processes
> iii. After - shared has gone down and private dirty up - does this
> mean that this process now 'owns' this memory and it can't be used by
> other processes?
Correct
>
> The o
>
> I tried undef'ing @data just before the return as it is no longer used
> but
> this only gained me 1/2 Mb. I would have expected to get all 8Mbs
> back. I
> don't understand why not.
>
Perl (as least on the OS's that I'm familiar with) doesn't release used
memory back to the OS.
Have a lo
Hi Justin
>
> I'm wondering if anyone can advise me on how I could go about trying
> to understand where this 90 Mbs is comming from? Some of it must be
> the mod_perl and apache binaries - but how much should they be, and
> apart from the 6mb in shared memory for my pre-loaded modules, where
> i
> You are 4 releases behind. Download 2.2.13 and I bet graceful will
> work for you. (Bet's off if you have something systemically difficult
> w/r/t ssl.)
It appears that you may be right:
Changes with Apache 2.2.12
*) prefork: Fix child process hang during graceful restart/stop in
confi
> But at some point, several iterative fixes by the Apache crew had
> succeeded such that 'apachectl graceful' worked better than my
> 'graceful' script in some way.
>
> It was sufficiently long ago that I've forgotten in what way, but the
> memory is clear enough that I think Messrs. Swart
> Hm. No compile errors would be bad. But I put an error in one of my
> modules (that only gets loaded the second time) and started apache,
> and got error log output. I wonder what we're doing differently?
Shut down apache, then do "apachectl restart"
>
> Jon
>
> If I don't ever plan to use graceful restarts, and I believe that
> smaller restart times are an unqualified Good, is there any reason why
> I shouldn't ALWAYS use a script like the above? And is there any way
> to avoid PerlModule modules from being loaded twice?
I do something pretty si
On Tue, 2009-09-22 at 22:12 -0500, Igor Chudov wrote:
> I have started collecting usertrack data, and would like to know what
> tools exist to analyze this stuff for Linux.
>
> My questions are, for example: for people coming to my home page from
> a certain google query, how many leave right awa
On Thu, 2009-09-17 at 23:12 +0200, Torsten Foertsch wrote:
> On Thu 17 Sep 2009, Kiran Kumar wrote:
> > There is also Padre (http://padre.perlide.org/) , You can write
> > plugins and customize to your needs, there are already lots of
> > plugins available
> > http://search.cpan.org/search?query=p
On Tue, 2009-09-15 at 14:29 -0500, David Nicol wrote:
> I'm ignorant of internals specifics, but perl's full cleanup on exit
> needs to be called, and is called at an orderly shutdown. It doesn't
> get called at POSIX::exit, or when the process in which the
> interpreter is embedded exits without c
Hi all
I'm finding that DESTROY blocks on objects stored in lexical variables
are not being called on apachectl stop / restart.
These lexicals are destroyed as they should be when they go out of
scope.
I've resorted to storing weak refs to these objects in a hash and
cleaning them up with a chil
Dear Igor
On Mon, 2009-08-10 at 07:40 -0500, Igor Chudov wrote:
> After looking at this mailing list and asking a question about
> segfaults, and looking at recent posts, I am beginning to become
> concerned that mod_perl is a dead project. I would like to hear
> whether it has a long term future
> That won't be enough in all cases unless it actually replaces the
> interpreter, like PerlFreshRestart used to.
>
> I would do a graceful shutdown and restart.
I've had lots of problems with graceful restarts hanging indefinitely, I
think caused by issues with the mod_ssl module.
I'd also rec
On Mon, 2009-05-11 at 13:15 +0200, Idel Fuschini wrote:
> Hi,
> I want to read the user_agent i'm using this code:
>
> my $f = shift;
> my $user_agent=$f->headers_in->{'User-Agent'};
>
> but apache logs this error:
>
> Can't locate object method "headers_in" via package "Apache2::Fi
Hiya
> Under mod_perl 2, stderr for all virtual hosts seems to be opened to the
> global Apache 2 error log (/var/log/apache2/error.log or similar). How
> do I get stderr output to go to the ErrorLog that is defined for each
> virtual host?
I was going to say that this is detailed here:
http:
On Mon, 2009-02-23 at 15:32 +0100, Clinton Gormley wrote:
> Hiya
>
> I'm using PerlConfigRequire to load my Perl application, which also sets
> up the VirtualHost's using $r->add_config()
>
> The problem is, if one my modules has a compile time error, instead of
&
> > eval { load_application();1}
> > || do {
> > warn $@;
> > force_apache_to_quit_startup_once_stderr_flushed();
> > }
>
> Why don't you do that in a block?
How is this different from doing it in the startup.pl file?
>
> Be aware that this code is executed twice at
> >
> > Is there any way I can:
> > - cause the error to be reported properly
> > - force apache not to start
> eval {load_application(); 1} || do { warn $@; die };
Unfortunately, no. That still just dies with the obscure error message.
It seems that STDERR only gets flushed in a later stage
Hiya
I'm using PerlConfigRequire to load my Perl application, which also sets
up the VirtualHost's using $r->add_config()
The problem is, if one my modules has a compile time error, instead of
getting the real error message, I get something like this:
> With the following request body:
>
> i1=drnk4&basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aquan
> tity=1&basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aid=de9a792da0f5127d72d7c6a5f
> 6b2d4c5&i2=clth12&basket%3A_new_7acf9602cd6ab0ee86f77efeaaffefff%3Aquantity=1&basket
> %3A_new_7acf9602cd6
> Go forth and code! :)
Go, Perl! (surely) :)
On Sat, 2008-10-25 at 05:59 +0200, Michael Lackhoff wrote:
> On 24.10.2008 15:03 Michael Peters wrote:
>
> > This is only true if those structures were created during run time and go
> > out of scope at run time.
> > If they are generated at compile time or attached to global variables or
> > p
> This is probably a question better asked to the perl monks or similar,
> but if there are any of them lurking around here, it would save me a
> subscription.
it's a subscription worth having :) I've learnt more about Perl since
I've been there than in the preceding decade.
> Now, my question
> $r->set_handlers(PerlFixupHandler => \{$_[0]->handler('modperl')});
> The funny thing is, the way I understand that code above is to mean :
> "take a reference to the piece of code between the curly brackets, and
> pass that code reference as the 2d argument to $r->set_handlers()".
> But
Hi Gordon
> Hi all,
>
> I need to know how to convert PDF files to a text file using Perl.
This has nothing to do with mod_perl - a better place to look for
general Perl support is on http://www.perlmonks.org.
Here's a node on PM that may help:
http://www.perlmonks.org/index.pl?node_id=676954
Is this not a current-working-directory issue?
This isn't terribly well documented on the mod_perl site, but from
http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html
META: document that for now we don't chdir() into the script's
dir, because it affects the whole process un
>
> Try adding "warn $msg" statements (instead of printing to a file).
>
> Perl's "warn" function prints to STDERR, which is usually appended to the web
> server's errors log. To read the errors as they are printed, do the
> following (provided you have shell access on your server, and it's r
Hi all
For those of you who have struggled with various Devel::*Prof modules, I
thought I'd let you know about Devel::NYTProf version 2, which was
recently released.
Released by Tim Bunce (of DBI fame), this profiler is a major step
forward. It:
- profiles your code by line, sub or block
- p
On Sun, 2008-07-13 at 06:35 +, John M. Dlugosz wrote:
> Reading the docs, I'm a little confused. Is ModPerl::Registry
> specifically for emulating the CGI environment, or should I do
> something else if I plan to write to the API from scratch and don't
> need the backward compatibility?
ModPe
> this isn't a mod_perl thing, it's an httpd thing. this is from 1.3:
>
>http://www.mail-archive.com/[EMAIL PROTECTED]/msg20549.html
>
> it seems the same holds true in httpd 2.0, it seems. see
> ap_send_error_response in
>
>modules/http/http_protocol.c
>
> try setting subprocess_env
> For now, I plan to just entity escape anything that isn't in the ASCII
> range, but is there a workaround? Should this be fixed?
For those looking for an easy workaround for this, this is what I've
used:
$output = Encode::encode('iso-8859-1',$output,Encode::FB_HTMLCREF);
To explain:
- $o
Hi all
There seems to be a bug in the mod_perl2/apache2 handling of character
sets for $r->custom_response(). I'm not sure which is at fault.
My pages are all in UTF8, but I can't find a way to set this character
set for custom generated error pages.
I've tried:
- $r->content_type('text/html;
Hi John
> The underlying reason for this is that I have a reverse proxy in
> front
> of it, which proxies HTTP and HTTPS requests. The back-end needs to
> create self-referencing URLs but cannot tell if it's HTTP or HTTPS, so I
> decided to direct HTTP to port 81 and HTTPS to port 82. I'd pre
sues.
Clint
>
>
> On Tue, Mar 25, 2008 at 5:14 PM, Clinton Gormley <[EMAIL PROTECTED]> wrote:
> >
> > On Mon, 2008-03-24 at 15:25 +0800, J. Peng wrote:
> > > hello list,
> > >
> > > we have our own realserver called QHttpd.
> > >
On Fri, 2008-02-22 at 09:52 +, John ORourke wrote:
> Hi folks,
>
> I'm trying to make my apache processes as small as possible, and one
> thing I find lacking in optimisation guides is actual real world process
> sizes.
>
> So... how big is yours? ;)
I'm running on 32-bit linux 2.6, using
> I'm not sure what you're suggesting. The first few pages of "cache" on
> CPAN have some modules for caching data in memory and on disk and so
> forth, but I don't see how they relate to my problem.
>
> Which is that of notifying all of my application's perl processes when
> an update has be
Hi all
I'm trying to figure out why I'm getting a pile of cookie errors in my
logs with libapreq2.
Is it the library's fault, the browser's fault, or mine? Apologies for
the wide post.
This is what gets sent to my browser to set the cookie:
Set-Cookie :
SID=MxQdbX8AAAIAAC2SPdgA|3152a7bf6
Really interesting mail - if you're on perl monks, please cross post it
to there - there are a few UTF gurus who could help you out there.
If you're not, drop me a line and I'll post it for you.
Clint
On Fri, 2007-12-07 at 10:10 -0800, Fred Moyer wrote:
> Greetings mod_perl list,
>
> I've been
> Although, I would go for something like pound doing the proxying for
> me, instead of mod_proxy
I can't agree more!
Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
configure, fast, stable, and makes the whole SSL and load balancing dead
easy.
Pound++
Clint
> You obviously haven't built a JSON API yet :)
True
> Each request will be JS and will be different.
And fair enough :)
Clint
On Sun, 2007-10-21 at 23:34 -0500, Boysenberry Payne wrote:
> I generate my Javascript on the fly, it can be different on every
> request.
> I find this very useful...
Hi bop
That is probably a very inefficient way of doing it. I would guess that
nearly all of the JS that you use on your site
On Tue, 2007-10-16 at 15:08 -0400, Perrin Harkins wrote:
> On 10/16/07, Clinton Gormley <[EMAIL PROTECTED]> wrote:
> > Unless you have a really good reason to use worker, on linux, the
> > recommended MPM is worker.
>
> I'm sure you meant to say prefork there.
A
Hi Mark
I don't know what the issue is, but do you really need to use threads?
Why not just use the prefork MPM? It is more efficient than the worker
MPM on linux, and may ("may" being a complete guess) be the source of
your troubles.
Unless you have a really good reason to use worker, on linux,
> Yes, I think so. The point is 64bit integers are not portable to 32bit perls.
> Hence, even on a 64bit system with warnings enabled a non-portable warning is
> issued:
Ahhh I get it - so it isn't warning you that there is a problem using
this on your system, just that the same input on a 32 b
(Resent with smaller attachment - previous version refused because too large)
> Linux::Smaps simply analyzes /proc/$PID/smaps. It was initially written on a
> 32bit system. Looking at your bug report I assume the hex() function doesn't
> work for 64bit hex values. Can you show us the output of /
> Sorry if this has been mentioned before or I'm teaching you to suck eggs,
> but if you are running an old CGI script in mod_perl you need to not scope
> with 'my'.
>
> See
> http://perl.apache.org/docs/general/perl_reference/perl_reference.html#my___
> _Scoped_Variable_in_Nested_Subroutines
On Wed, 2007-09-19 at 10:24 -0700, Graham TerMarsch wrote:
> I've been working on some projects needing JS minification recently and
> wanted
> to ping others and find out if anyone else would find it useful to have a
> mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...
I wonder if for some reason apache is trying to execute your images like
a CGI script. (First time I've heard of this, so may be wrong)
Searching on that error message, I found a thread with the same problem.
Have you added the PerlRequestHandler outside a File or Location
directive?
http://list
On Tue, 2007-08-21 at 14:21 -0400, Dan King wrote:
> I am having issues running a web application, called OTRS, that uses
> DBI and DBD::Oracle. When I insert special characters, such as é or â
> they show up as question marks in the database when looking at them
> from sqlplus or through the web a
On Tue, 2007-08-21 at 14:40 -0300, RGKärcher wrote:
> Hi guys ,
>
> Thanks Michael and Georg but none of the examples
> works for me ...
>
> I'm using Apache::Asp .
>
> What could be the problem ?
>
> Thanks in Advance
>
What error are you seeing? What does the HTML being sent to your
br
You haven't given us any information about your setup, or the error that
you see, so it is very difficult to help you.
You will find an installation guide here:
http://perl.apache.org/docs/2.0/user/install/install.html
Clint
On Tue, 2007-08-21 at 16:59 +0530, usha rani wrote:
> hi ,
>
>
On Fri, 2007-08-03 at 20:02 +0800, Jen mlists wrote:
> No.Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
> modperl can't.Is the %ENV hash not useful under modperl?
No it's not - mod_perl has access to all of that (plus a whole lot more)
via other means, so apache doesn't need to
On Tue, 2007-07-31 at 10:09 +0800, Ken Perl wrote:
> I didn't run it under ModPerl::Registry, is there any risk to use the
> module? maybe I have to run lots of testing to the existing scripts.
>
There is a risk to using this module, but also a significant benefit:
speed.
The risks come from:
On Tue, 2007-07-31 at 14:36 +0800, Ken Perl wrote:
> OK, got it. Is it possible to use the same db connections in one
> request? if yes, could you please show me how to implement this if a
> cgi script calls many times other perl modules which requests db
> connections to work.
>
Yes it is, alth
On Mon, 2007-07-30 at 18:21 +0800, Ken Perl wrote:
> I've configured the Apache::DBI in httpd.conf like this,
>
> PerlModule Apache::DBI
>
> I didn't have Apache::DBI->connect_on_init($data_source, $username,
> $auth, \%attr) in startup.pl since we don't use startup.pl. and the
> doc says to co
I've managed to get php5.2.2, mod_perl 2.0.3, apache 2.2.4 and mysql
5.0.27 working on openSuSE 10.2 x86_64.
In summary:
- I install these MySQL packages:
MySQL-server-standard-5.0.27-0.rhel4.x86_64.rpm
MySQL-client-standard-5.0.27-0.rhel4.x86_64.rpm
MySQL-devel-standard-5
On Tue, 2007-07-17 at 12:36 +0100, Anthony Gardner wrote:
> Yes, I'm aware of all of that, but it's the 'you will only have one
> connection per apache child'. So with 150 processes, that's 150
> connections / DB instance. No?!
Correct
>
> And the 'Oracle can handle this with ease.' Oracle can ha
You should not share connections between processes. You will end up
with segfaults.
The way Apache::DBI works is as follows:
- you connect and disconnect from the DBI as per normal
- Apache::DBI caches your connection and overrides disconnect
so that it doesn't actually disconnect
- when yo
> Wow. I never noticed it. In my app I have runmode that shows me %ENV and
> @INC. At the first request my custom path was in there. And at the
> second request it wasn't. But after a few more requests it's still
> there. Weird behaviour?
All that means is that you're hitting a new child for t
On Wed, 2007-07-11 at 08:43 -0400, Scott Kaplan wrote:
> Situation:
> => User puts in username & password into a form (uses POST to send
> data) to log in.
> => When the user is done, he/she logs out.
> => When clicking back (a couple of time) the user eventually reaches
> the page prompting for us
> $fp =~ /(.*)/;
This doesn't untaint $fp.
instead, you could do this:
( $fp )=( $fp =~ /(.*)/ );
To untaint a variable using this method, you need to assign the result
of a regex capture to the variable, not just do a regex check
Clint
> After looking at the documentation/code I do not think I can use
> Apache::DBI for that (but I'd love to be proven wrong!). Can anybody
> point me towards a solution. I can obviously copy and modify
> Apache::DBI, but it seems the kind of code that it's easy to get wrong
> in very subtle ways,
On Tue, 2007-07-03 at 10:37 -0400, Perrin Harkins wrote:
> On 7/3/07, Clinton Gormley <[EMAIL PROTECTED]> wrote:
> > However, the Perl code itself has
> > already been compiled into C and is fast.
>
> It's not a very important distinction, but perl code is not comp
On Tue, 2007-07-03 at 10:26 -0400, Michael Peters wrote:
> Clinton Gormley wrote:
>
> > I can think of two approaches:
> >
> > 1) In the DB, store the name of the server to which your file has been
> >uploaded
>
> Don't do that. The moment you put a
On Tue, 2007-07-03 at 10:26 -0400, Perrin Harkins wrote:
> On 7/3/07, Clinton Gormley <[EMAIL PROTECTED]> wrote:
> > 1) In the DB, store the name of the server to which your file has been
> >uploaded
>
> I try to avoid files in the DB. It always ends in tears.
Sor
- suggestions
welcome.
Also see my question at Perl Monks:
http://www.perlmonks.org/index.pl?node_id=624334
thanks
Clint
On Tue, 2007-06-26 at 16:34 +0200, Kjetil Kjernsmo wrote:
> On Tuesday 26 June 2007 16:22, Clinton Gormley wrote:
> > - used to strip XSS scripting from user submi
Following on from the thread "questions on serving big file & SQL
statement parsing", I have a related question:
Where do you store your uploads?
I can think of two approaches:
1) In the DB, store the name of the server to which your file has been
uploaded
2) Store your upload in a shared p
> > in my case, i need to do authorization. do i need
> > extra mod_perl front-end server to do this? how does
> > this perform?
the beauty of mod_perl is that you can step in and out of the process
wherever you need to. The down side is that mod_perl uses a lot of
memory, so you try to keep your
> >
> > Apache::Registry already looks for changes to your scripts and
> reloads
> > them as necessary. So you shouldn't need to use both of them.
>
> Well, I agree it says that, but when I tried using Registry without
> Reload,
> it didn't seem to work, so I gave up, and used Reload, more-or-
Tony - There are lots of people using Registry successfully (in fact the
new Bugzilla uses Registry, if I remember correctly).
> Thank you, Jonathan, for your more detailed explanation. I have to say, I am
> extremely disappointed with my experience. I've used PHP for some years to
> create intera
Hi Christian
Yes, it is intended behaviour.
Basically, by the time that your script dies, it is too late to send the
correct headers to indicate a server error.
What I do is keep all of my content in a single variable, and once
pretty much everything that could die has finished, I
$r->print($con
Disclaimer: I have never used Apache::Reload, but:
Apache::Registry already looks for changes to your scripts and reloads
them as necessary. So you shouldn't need to use both of them. However,
reading the docs for Apache2::Reload, it mentions using it at the same
time as Registry scripts, which I
I've been looking at how you would add object and embed tags, and it
isn't trivial. They're not in there by default because of the nasty
things that they can do. But I could add them in, along with flags to
specify that you want to allow them, much like AllowHref
I'll get back to you.
Again, I'
> Actually, something I would feel would be very useful is if it could
> return an XML::LibXML::DocumentFragment object.
>
> I tend to use XML::LibXML to parse user input and insert in the
> document, which is then going through some XSLT, and since you've
> allready parsed stuff, it seems li
On Tue, 2007-06-26 at 11:02 -0400, Jonathan Vanasco wrote:
> On Jun 26, 2007, at 10:22 AM, Clinton Gormley wrote:
>
> > HTML::StripScripts
>
> thanks! I'm already a happy user.
> excited to check out the changelog.
>
> does the new version automagic
Hi all
I've recently released two modules to CPAN which are of relevance to
mod_perl developers, one as the author and one as the maintainer.
I realise this is a blatant plug, but these modules have been useful to
me in my web-app work, and so there is a good chance that they will be
useful to ot
> you should write something into the first-line of the code that looks
> to see if there's a job already running; and quits if there is.
Of course. My daemon wrapper code checks if that particular job is
already running, and if so skips it. If the job is still running after
the Nth skip, it
> > Yeah I've seen some neat twisted stuff, POE might be a reasonable
> > alternative in the Perl space.
>
> POE is pretty neat. I haven't played with it much, but i liked it.
>
> I've done a lot of twisted stuff in the past , so its very natural to
> me. I brought it up over POE though
On Mon, 2007-06-18 at 16:51 +0100, John ORourke wrote:
> Hi folks,
>
> I'm wondering what modules people use for sending email? At the moment
> I'm using MIME::Lite but I'm doing several things myself which a bigger
> module might do for me:
>
> - header encoding - I can't find any modules wh
> >
>
> Thank you,would try for it.
> I'm new to mp,so sorry that have asked this low-level question.
> Anyway,thanks a lot.
Don't worry - we all started out knowing less than you know now.
If this is a new project in mod_perl, have you considered using Apache 2
and mod_perl 2?
mod_perl 1 is es
>
> mhh,I understood for your meanings.but my real question is how I can
> send the file to clients after returning OK.here is my apache config
> and modperl script,please give more helps.thanks!
>
> from httpd.conf:
>
> PerlModule DLAuth
>
>
> SetHandler perl-script
> PerlHandler DLA
On Thu, 2007-06-14 at 18:04 +0800, Foo JH wrote:
> Clinton's approach may be better (with PerlAccessHandler). Try that
> approach first...
>
> Basically to return a file content over there's not much work to be done:
...although, from the problem set that has been described, there is no
reason
Sorry - typo on the constants
> So:
> - the user goes to: /path/file.xyz
> - your access handler performs its checks
> - Allowed?
>- Y :
> - return Apache2::Const::OK
> - file served by standard apache means
>- N :
> - return Apache2::Const::FORBIDDEN
> - apache se
> Yes I know whether I would return an OK or a FORBIDDEN under different
> conditions.
> My questions is,when return OK,what should I do on next step?How can I
> send the file to clients?Do I need a redirect?When using
> redirect,clients may also get the real file path by guess,isn't it?
By using
On Thu, 2007-06-14 at 14:23 +0800, Jen mlists wrote:
> Hello members,
>
> I would config/write a modperl module to do this thing.
> When someone access a file which is located on special directory,say it was,
> /download/test.flv
> we would do some auth check.If his IP or request time were
> reaso
On Tue, 2007-06-05 at 11:36 -0700, Michael Greenish wrote:
> But I'm locked in to using HTML::Template because I know it, have
> wrapper functions created and I don't have time to figure all that
> stuff out again, plus redo old templates or re-write model classes to
> spit data out in a different
On Tue, 2007-06-05 at 22:43 +0530, abhishek jain wrote:
> Hi friends,
> I wish to create a scalable site made in PERL and seek guidance which
> templating engine should i use which has less learnig curve also.
> Names comming to my mind are:
> 1. Embperl
> 2. Template::Toolkit
> 3. Html::Mason
C
1 - 100 of 205 matches
Mail list logo