C:/path/to/reports/
This is my first "exposure" to mod_perl so maybe it is me?
Robert
On 5/23/05, Randy Kobes <[EMAIL PROTECTED]> wrote:
> On Mon, 23 May 2005, Robert wrote:
>
> > I just installed it via PPM (for ActiveStates 5.8.6.811).
> > I had my site working under Apache1/CGI without problem.
> >
> > I upgraded to Apache2/mod_perl and I
an error in this file"
>
What was the problem? I have that error as well and I used the example from
the mod_perl site itself.
Robert
Just exactly how does $PerlConfig work?
Can I put my entire configuration in a here document using $PerlConfig?
What are the limitations with $PerlConfig?
Quoting Robert Nicholson <[EMAIL PROTECTED]>:
> I found a small discussion on $PerlConfig but where is the
> documentat
Well I did try to put my entire configuration and it was producing errors so now
I'm liberally using Perl Sections and I'm going to try to use $PerlConfig to
solve my mod_jk problem.
if I've got three perl sections and I use perlconfig on the second one will
everything "join" together correctly t
So if my httpd.conf has multiple sections and I am doing something like
this in the first one.
for (`env`) {
next unless /^X_/;
/(.*)=(.*)/;
$ENV{$1} = $2;
push @PassEnv, $1;
#print "$_\n";
}
and I then do
my $somevariable = $
So my httpd.conf includes another file that also has Perl Sections
it seems that the
in a file included by httpd.conf
then the condition isn't true
Why is that?
This message was sent using IMP, the Internet Messaging Program.
This was something else so please forget this particular question.
Quoting [EMAIL PROTECTED]:
> So my httpd.conf includes another file that also has Perl Sections
>
> it seems that the
> so if httpd.conf loaded mod_perl and I try a
>
>
>
> in a file included by httpd.conf
>
> then the con
The approach I'm using is the suggested approach in the mod perl book.
Basically setup the environment in order to pass information to apache so that
it's available in httpd.conf and then in httpd.conf to use mod perl to
interrogate %ENV. One problem is that mod_perl clears out %ENV so what you se
Perl Section?
Unfortunately with the mod_perl setup I'm using I cannot use
Apache::PerlSections->dump so it's hard to verify things.
Quoting Robert Nicholson <[EMAIL PROTECTED]>:
> So can you or somebody else post a complete httpd.conf that makes use
> of $PerlConfig then?
>
erytime I need to refer to
> these
> > variables in a Perl Section?
>
> If the Perl section are in the same file, I'd use lexical variables
> because they are ignored by the mod_perl mechanism. If they are in
> different files, pick names that are un
Can anybody tell me why that doesn't work when you want to access environment
variables set from the process that launches Apache and that you want to access
those variables in your stanza in your httpd.conf?
I recently had to do this because from what I could see PerlPassEnv doesn't work
when yo
Hi,
Subscription requests to the digest version are failing
silently, and messages to the list admin are not replied.
Any clues?
thanks,
! Robert Friberg 0733-839080
! Developer/Trainer perl,java,dotnet
I thought some people on this list might find this useful.
http://search.cpan.org/~robm/HTML-GenerateUtil-1.02/
I think the "Context" section probably gives the best overview.
---
When creating a web application in perl, you've got a couple of main
choices on how to actually generate the H
_perl/5.005
.
*** Packages of interest status:
Apache::Request: -
CGI : 3.05
LWP: 5.53, 5.79
mod_perl : 1.9914
3. This is the core dump trace: (if you get a core dump):
No core dump
This report was generated by t/REPORT on Fri Jul 2 00:05:50 2004 GMT.
-8&
Hi,
I have a strange problem with Apache::Session::MySQL. It create a
session just fine, but it can't update itself. When I look at MySQL's
binary log, I see the initial INSERT but I don't see any UPDATES:
INSERT INTO sessions (id, a_session) VALUES
('9176a7b8acbfdc5697059d9a4fd6046a','\0\0\0
Le 04-07-14, à 18:03, Perrin Harkins a écrit :
On Wed, 2004-07-14 at 17:45, Pascal Robert wrote:
I have a strange problem with Apache::Session::MySQL. It create a
session just fine, but it can't update itself.
Usually this means that either your session object isn't going out of
sc
perl core dumps.
I think the problem is that the conversion from 64-bit T_IVs to ints is
32 bits too long for the shared methods, but I'm not 100% certain I'm
right.
Anyone ever run into this problem before? Can I solve it with XS?
Rob
--
Robert Landrum
Systems Programmer
--
Report
I am experancing the following undesirable behavior.
My code looks somethign like this..
$r->print("Some htmlish bits");
$r->rflush;
$r->sendfile("/path/to/somefile");
$r->print("Some more htmlish bits");
$r->rflush;
$r->sendfile("/path/to/someotherfile");
which I do twice before I finish the r
Paint me purple and color me an idiot, nevermind, I found my problem.
thanks yall anyway.
On Thu, 18 Nov 2004 20:13:19 -0700, Robert Ferney <[EMAIL PROTECTED]> wrote:
> I am experancing the following undesirable behavior.
>
> My code looks somethign like this..
>
> $r->
The question for me is, do they work under Apache2 or are they only
working for Apache 1.3
On Sat, 20 Nov 2004 14:05:16 -0800 (PST), Fred Moyer
<[EMAIL PROTECTED]> wrote:
> > Use clickcartpro its Perl, its easy , and it rocks!
> >
>
> Interchange is also worth taking a look at.
>
> http://www.ic
ts time to upgrade anyways,
maybe then the seggies will disappear.
So to the question... Are there any known issues with
Redhat 8.0 which ships with perl 5.8.0, httpd 2.0.40
and mod_perl 1.99? Or should I go for something else?
mvh,
#---
# Robe
got the segfaults though, but I have resolved
that issue now. I had an inner sub with a reference
to the Apache::Request object. Ouch.
mvh,
#---
# Robert Friberg perl,java,xml,uml,sql,delphi,
# Systemutvecklare c/c++,vb,php,linux,apache
Isn't perl just
passing a bad memory reference?
mvh,
#-------
# Robert Friberg perl,java,xml,uml,sql,delphi,
# Systemutvecklare c/c++,vb,php,linux,apache
# 0733-839080
#
# Ensofus AB linuxservrar,serverhosting,
# www.ensofus.se
> Without seeing the backtrace I can't tell whether it's a bug in
> Apache::Request or Perl.
And either way, the bug report should go to perl5-porters list?
mvh,
#-------
# Robert Friberg perl,java,xml,uml,sql,delphi,
# System
Oops, sorry. The answer was in your message.
mvh,
#---
# Robert Friberg perl,java,xml,uml,sql,delphi,
# Systemutvecklare c/c++,vb,php,linux,apache
# 0733-839080
#
# Ensofus AB linuxservrar,serverhosting,
# www.ensofus.se
che//conf/startup.pl line
12.
Compilation failed in require at (eval 2) line 1.
mvh,
#-------
# Robert Friberg perl,java,xml,uml,sql,delphi,
# Systemutvecklare c/c++,vb,php,linux,apache
# 0733-839080
#
# Ensofus AB linuxs
LL.simple
mvh,
#---
# Robert Friberg perl,java,xml,uml,sql,delphi,
# Systemutvecklare c/c++,vb,php,linux,apache
# 0733-839080
#
# Ensofus AB linuxservrar,serverhosting,
# www.ensofus.se internetsystem, Miljo Online
#---
headed type sent?
Thanks,
Robert
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Thanks for the info Perrin, I was able to make it work by adding an
AddType.
I am still wondering why every example I see with Apache::RegistryFilter and
Apache::SSI makes no mention of having to set the header.
Robert
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED
27;d love to get mod_perl running.
Thanks,
--
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROTECTED]
Yes, DBI is installed and up to date, as is Apache::DBI.
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROTECTED]
Michael Peters wrote:
Robert Aspinall
odperl
with gcc, but even when I softlink cc to gcc, it still insists on using
the -n32 flag, which is invalid with gcc. Any ideas, anyone?
Robert Aspinall wrote:
Hello,
I'm running modperl 1.29 on Apache 1.3.31 with Perl 5.8.2, running on
Irix 6.5.25m.
When I try to use
ldd DBI.so just returns:
libc.so.1 => /usr/lib32/libc.so.1
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROTECTED]
Stas Bekman wrote:
[Robert, please don
I'm not sure what output you're looking for, but if I run ldd on
/var/sgi_apache/httpd-outbox/libexec/libperl.so:
libm.so => /usr/lib32/libm.so
libc.so.1 =>/usr/lib32/libc.so.1
Which file do you want me to ldd as far as the perl lib goes?
Robert Aspinall
NOAA&
it is complete...
Looks good
I see you're using perl 5.008002 on IP27-irix, okay.
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROTECTED]
Stas Bekman wrote:
Robert
There is more than one perl installed (an unfortunate side effect of
IRIX). Any idea how to get cpan to only build using 5.8?
Stas Bekman wrote:
> Something I noticed when reinstalling DBI.. it's finding perl 5.008
> somewhere on the system, despite invoking cpan with the 5.8 binary. I
> ge
No, when I invoked CPAN I did it as /usr/local/bin/perl -MCPAN -e shell
(the location of the perl 5.8 binary)
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROT
You're probably right, I hadn't noticed the signifigant digits were the
same. Thanks for the heads up. Now if I could just figure out why
modperl refuses to work with DBI..
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West High
I think he was asking what address he subscribed under.
It's [EMAIL PROTECTED]
Robert Aspinall
NOAA's National Ocean Service
CO-OPS/Information Systems Division
1305 East-West Highway
Bldg. SSMC4, Station Id 6314
Silver Spring, MD 20910
[EMAIL PROTECTED]
Stas Bekman wrote:
So I'm trying to make a great deal of my httpd.conf dynamic based
primarily on hostname etc.
I have most of it working but I've found that at least in my case I
cannot use mod_jk directives in a perl section.
Q. Should I be able to use mod_jk directives in a perl section?
push @JkWorkerPr
Google for mod_perl book and read it. I'm sure it has the correct steps to get perl and @INC setup correctly.http://modperlbook.org/html/ch03_09.htmlAfter you've loaded the perl module itself you want to change @INC to include where Apache2is. If you want I think you can put that logic in an stanz
es or should that be possible?
On Aug 1, 2006, at 12:58 AM, Andreas J. Koenig wrote:
On Mon, 31 Jul 2006 23:00:33 -0500, Robert Nicholson
<[EMAIL PROTECTED]> said:
So I'm trying to make a great deal of my httpd.conf dynamic based
primarily on hostname etc.
I have most of it workin
So can you or somebody else post a complete httpd.conf that makes use
of $PerlConfig then?
On Aug 1, 2006, at 2:24 PM, Andreas J. Koenig wrote:
On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said:
That resulted in errors at least in my case.
You did read that I said you need SVN r
Torsten Foertsch wrote:
On Tuesday 28 November 2006 21:31, Patrick Galbraith wrote:
Quick question - how does one do a repost (using POST, not GET) form
values? This would be in a redirect TransHandler.
Your only chance is to proxy the request to the other server. You cannot use a
Location h
Lev Lvovsky wrote:
In testing out persistent connections while using transactions, we've
noticed that while in a loop which continuously begins and ends a
transaction, killing the persistent connection which Apache::DBI is
maintaining causes the still-running handler to report things like:
erro
Lev Lvovsky wrote:
Once you reconnect, the connection is persistent again. At least,
that's been my experience with postgresql.
This is exactly what I've been thinking to do, but I've not seen
anything within Apache::DBI that allows me to reconnect per se. How do
I perform that action?
Al
Perrin Harkins wrote:
David Scott wrote:
I've built Apache 2.2.3 and mod_perl 2.0.3 with libapreq 2.08 and the
worker MPM. There appears to be some kind of race condition at
startup that prevents the server from coming up. This only happens
once in a while, and can be fixed by some minor con
Marc Lambrichs wrote:
Date: Sun, 10 Dec 2006 12:50:09 GMT
Server: Apache
Set-Cookie: auth_tkt=; path=/; domain=main.domain.com; expires=Sun,
10-Dec-2006 11:50:09 GMT
Set-Cookie: auth_tkt=; path=/; domain=first.domain.com; expires=Sun,
10-Dec-2006 11:50:09 GMT
Set-Cookie: auth_tkt=; path=/; doma
Alex Beamish wrote:
What I'm trying to do is come up with scaled page images from a PDF on
the fly. Thus, I want to launch Ghostscript and then ask for a couple of
page images. So, launching Ghostscript and getting the first page might
happen on the first request; subsequent requests would come
Alex Beamish wrote:
I'll deal with multiple documents with some combination of stale timers
and LRU slots, but that's not really what I see as the most complicated
or difficult part of this problem. For this particular application, my
inactivity timer will probably by 10-15 minutes, and I'll ex
Chris Schults wrote:
It appears that the "+" is getting stripped out at some point as the
script is returning results for "water pollution" instead of
"water+pollution". Is it possible that Apache is the culprit or should
we be looking more closely at our script or rewrite rule?
The test would
Well.. For one thing, vhost1.turnbui.net isn't a ServerName entry or a
ServerAlias entry.
I'd start by adding that.
Rob
turnbui wrote:
ServerName ianst.homeip.net
DocumentRoot "C:/Program Files/Apache Software
Foundation/Apache2.2/iansthtdocs"
# ErrorLog logs/ianst-host-error.log
# Custom
turnbui wrote:
Sorry Rob,
just my vain attempt to protect the innocent. In fact it is ianst.homeip.net
that I am using. Sorry to mislead.
Okay. So just to rehash here...
ASP does not work at:
http://ianst.homeip.net/asp
ASP works correctly at:
http://localhost/asp
localhost isn't a server l
Perrin Harkins wrote:
Robert Landrum wrote:
localhost isn't a server listed in your VirtualHost section in either
ServerName or ServerAlias. That means that the VirtualHost section
isn't even a consideration when hitting localhost.
Doesn't that mean it just takes the first V
Snook, Adrian (London) wrote:
3. This is the core dump trace: (if you get a core dump):
Core was generated by `/home -k start'.
Program terminated with signal 11, Segmentation fault.
#0 0x002f201e in free () from /lib/tls/libc.so.6
(gdb) bt full
#0 0x002f201e in free () from /lib/tls/libc.so
Tracy12 wrote:
Thanks,
If this is the case, How can we preserve the REMOTE_USER value and
forward/redirect to the other application
( running on same Apache Server) which is based on the REMOTE_USER
environment variable, which is set in my perl module in the first
application.
I was under th
Perrin Harkins wrote:
After successful authentication we need to pass the
control to another application(which is running on the same apache server)
which depend on the REMOTE_USER value which we set.
That will work fine, as long as your auth handler runs in the same
request as the thing that w
Tracy12 wrote:
1) As we dont use the apache basic authentication but our CAS
authentication. If the authentication is not successful how can we redirect
to the CAS login page.
Ah-ha... So CAS authentication is done via a webform of some type,
which means that it uses cookies. Am I correct i
Tracy12 wrote:
How can we retrieve the URL Scheme (http/https ?) from a perl module, Port
given that only input parameter is $r
should we use my $uri = Apache::URI->parse($r) and $uri->scheme;
I use $r->get_server_port. If it's 80 it's http, if it's 443, it's
https. Of course, this
Will Fould wrote:
I have a strange issue with a particular script that sometimes (often)
generates a 302 to another script without a clear reason why.
Oddly enough, I simply placed a few "warn('blah')" code snippets to
crudely determine from the error log where it was happening in
production
Daniel Risacher wrote:
Is it possible to get the file descriptor for the client socket from the
RequestRec?
I.e. something like $r->FILENO (which doesn't seem to work) or perhaps
$r->connection->client_socket->os_sock
(os_sock exists in the APR structure in C, but there doesn't seem to be a p
Tracy12 wrote:
My perl authentication handler works fine BUT the biggest problem inside my
Auth handler I do some resource intenstive tasks and if everything
successful set the REMOTE_USER env variable.
But for the subsequent requests from the same user (after the initial
Authentication is succe
Jonathan Mangin wrote:
sub handler {
my $r = shift;
my $req = Apache2::Request->new($r);
my $foo;
# eval {$foo = $req->param('foo')};
$foo = $req->param('foo');
You might want to make sure $r is really $r. If you configure apache
such that you use PerlHandler Foo->handler, I be
Tracy12 wrote:
I tried to declare
use vars qw( $SESSION_CLEANUP_COUNTER); and increment within the code doent
seem to work,
Shoud i increment this in a specific hanlder.
You really need to heed the advice of the list and consider using the a
cron job to expire old sessions. It's really not
Joel Gwynn wrote:
Here's my backtrace, any ideas?
#0 0xb7a58743 in modperl_dir_config (my_perl=0x81b6eb0, r=0x823ce98,
s=0x203a6e6f,
key=0x8800c38 "CONFIG_FILE", sv_val=0x0) at modperl_util.c:516
#1 0xb78dae84 in XS_Apache2__RequestRec_dir_config
(my_perl=0x81b6eb0, cv=0x82cd074)
at Requ
Joel Gwynn wrote:
Interesting. I just might be doing that:
$config_file = $self->param('r')->dir_config('CONFIG_FILE');
In my section, I have this:
PerlSetVar CONFIG_FILE /projects/funnyr_dev/private/config.ini
And of course I'm not using flock on that file. Hmmm.
Try changing that up...
Perrin Harkins wrote:
My guess is that $self has a lifespan longer than one request, so you
are trying to use a $r object from a previous request.
Would $r still be defined in that instance?
Rob
Garnier, Jeremie wrote:
use Apache2::Module ();
# test if an Apache module is loaded
if (Apache2::Module::loaded('mod_dbd.c')) {
…
}
But it dones:
Undefined subroutine &Apache2::Module::loaded call at…
I suspect that this may be because you're not actually running in
mod_perl.
Patrix Diradja wrote:
while(!$rsnya->{EOF}){
my $tab4l = $rsnya->fetchrow_array;
print "\$tab4l: $tab4l \n";
$rsnya->movenext;
}
Not a mod_perl question, per se, but try
while(my $tab4l = $rsnya->fetchrow_array) {
print "\$tab4l: $tab4l\n";
}
Rob
Sumit Shah wrote:
Hello,
I have a Mod Perl authentication handler and it needs to retrieve the
session id from a cookie. It is unable to retrieve any cookies and I get
the following error. It does not even print any of the cookies. I would
appreciate any help with this.
my $token = $c
Jonathan Vanasco wrote:
How can I reliably catch this under libapreq / cgi ? ( the former for
current use, the latter just-for-kicks )
As far as libapreq is concerned, I can't find any way -- it seems to be
an odd special-case html spec.
The short answer is: don't use server side image map
[EMAIL PROTECTED] wrote:
This is getting very frustrating, so I guess I should ask about this
before I scrap the whole project and go back to CGI.
I'm using Apache::Reload during development since I'm constantly making
changes to code. However, it does not appear to be working right.
Is t
Jonathan Vanasco wrote:
On Feb 20, 2007, at 3:56 PM, Robert Landrum wrote:
The short answer is: don't use server side image maps.
That's not an option. I need to catch the xy on a gif.
And yes, the long answer is to parse the URI yourself.
arhh. ok. already doing tha
Sumit Shah wrote:
I printed out the contents of the Cookie attribute in the request header
and I can see the cookie present in the header. I read all the contents
into a hash and then try to check for its existence. The
if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have
anything
aqua wrote:
Dear Group,
Some of you might have tried the mod_perl for the first time and tested with
simple web application and it should be there some-where in your system. Could
you please post a few.
The problem is that it isn't exactly a simple thing. It sounds like
you're looking for
Benoit Plessis wrote:
$r -> headers_out->set('Content-Length', length
$error_page);
Hmm...
Incident sur l'hebergement
Hadmut Danisch wrote:
For some reason the module is called twice for every request.
Is this a HEAD/GET problem? Maybe you're seeing the browser doing a
HEAD request, then a full GET request?
Rob
Mark Stosberg wrote:
Hello,
Recently I ran into a bug with File::MMagic where it returns
inconsistent results under mod_perl.
Could it simply be a matter of fixing the use of the DATA handle, as
Stats suggest here?
http://mail-archives.apache.org/mod_mbox/perl-modperl/200403.mbox/[EMAIL
PROTE
Martin Moss wrote:
I just had a demo of the Zend Platform and framework
for php.
It's got some really nice stuff, but ultimately the
reason we may decide to ditch perl and move to php
(h I know booo) will be down to support. OR
lackthereof for Perl...
I've been writing perl for 10 years no
Martin Moss wrote:
Many thanks to you all for your posts, Much food for
thought... ultimately the decision is out of my hands,
which is why I'm looking for useful perl based
alternatives to propose to the powers that be.
My favorite perl based alternative is HTML::Mason. Simple, fast, and
goo
Drew Wilson wrote:
But I cannot figure out WHERE this conversion is being done.
I've picked through SOAP::Lite enough to know that unicode conversions
are probably more than it knows how to handle.
However, SOAP::Data::encode_data uses a regex to munge data. Perhaps
there's a conversion h
Chris Shiflett wrote:
That's a weak defense. If you're a proponent of full disclosure, say so,
but don't use ignorance as your defense in the same email where you
claim to not be a "dumb guy."
I am a dumb guy, and I would have done the exact same thing Randal did.
I just don't think about s
Fred Moyer wrote:
Or maybe this is a bug in getegid where it's not clearing a previous
memory state. What platform is this on?
sun4-solaris
His first post had a list of modules in a stack trace, which is where I
grabbed that.
I googled, but didn't find anything relevant. :(
See if fgre
[EMAIL PROTECTED] wrote:
Unfortunately turning taint mode off isn't an option for me. My
application is client facing and so we want to continue to make use of
the security mechanism that taint mode gives us.
Keep taint mode on in dev, so you can identify your issues in
development, then turn
Perrin Harkins wrote:
On 3/28/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Keep taint mode on in dev, so you can identify your issues in
> development, then turn in off in prod.
Is that actually the generally recommended approach?
It's hard to know for sure that you've tried every code
[EMAIL PROTECTED] wrote:
I'm hoping tho that if I can create a small test case under mod_perl
then that opens up myself/someone-on-the-list trying it with other
combinations of perl & mod_perl.
If you log the pid in the access file, you should be able to determine
the serious of page hits tha
Tobias Regneri wrote:
package MyService;
sub AddGroupAttributes {
($self, $provider, $group, $attrlist) = @_;
($name, $hashref) = split('=', $attrlist);
$params = $$hashref;
...
}
the variables $provider and $group are set correctly but the
hash for the list items is empty. Do I
Tobias Regneri wrote:
Given the following xml structure of the data to process
Name1
Val1
Name2
Val2
SOAP::Lite will build the internal representation
$VAR1 = [
bless( {
'ListItem' => [
bles
Chris Hagglund wrote:
The trouble is, as each vhost loads this config file for its plain and
SSL vhost directives, the amount of memory being used seems to be going
up, and restarting apache is taking longer and longer. Intead of loading
it over and over again (twice for vhosts with ssl!) I am
Bill Whillers wrote:
I'm wondering what people are using for efficiently generating charts and
graphs on the fly from within a mod_perl environment. I've been using
GD::Graph for a while but I'm hoping to get a bit more feature-deep. I'm not
terribly concerned about getting a bit more complic
Justin Luster wrote:
Does anyone know what might be happening? We are only using
Apache::Registry in this instance. I can’t see how a lexically scoped
file handle that is being locked is not being unlocked once the process
ends.
The process isn't ending if you're using Apache::Registry.
I
Justin Luster wrote:
Here is an example of a call to OpenFile(). You will notice that I'm
additionally locking the file itself as well as the lock file (I figured
it would not hurt to have both methods):
my $LockFileHandle = authlib::FileLock("udata_" . $strRespNum .
"_lck.cgi", 1);
#Read rest
Justin Luster wrote:
Seems like an awful lot of code...
open(DATAFILE,">$strDataFileName") or die;
flock(DATAFILE,LOCK_EX);
seek(DATAFILE,0,0);
eval {
authlib::RestartQNameWrite(\*DATAFILE,$strRestartQName);
};
flock(DATAFILE,LOCK_UN);
close(DATAFILE);
if($@) {
die $@;
}
*sighs*
I need
michael watson (IAH-C) wrote:
Sorry for the confusion
The code also actually attempts to print out HTML headers ie
" etc" but these DO NOT come through to the webpage -
instead, a bunch of special characters are printed out...
Right... because the and tags are being (incorrectly)
shov
michael watson (IAH-C) wrote:
[Wed Apr 18 09:56:55 2007] [notice] Apache/2.2.4 (Unix) mod_perl/2.0.3
Perl/v5.8.0 configured -- resuming normal operations
[Wed Apr 18 09:56:57 2007] [error] [client 149.155.40.20] malformed
header from script. Bad header=: mapview
[Wed Apr 18 09:56:57 2007] [warn]
Krist van Besien wrote:
The code works insofar that it waits 5 seconds and than proceeds with
the default I set, but it completely ignores any keypresses I make.
It is as if STDIN is not available at the time this code runs.
If I replace the ReadKey(5) with a ReadKey(5,STDIN) I get a syntax error
Michael Peters wrote:
Vaughn, Terry wrote:
I have some TIF files that I transferred from a windows box to a linux
box over a Samba connection. I cannot get Apache to display the
file.TIF with this simple .htm
It's not apache that's having problems. I don't believe TIF images can be
displa
I've run into a strange error recently and wanted to see if anyone else
had come across this.
Basically, I have have a set of database handles created as globals in
the HTML::Mason::Commands namespace. To use these, we assign them to an
object. i.e.:
my $obj = new Foo;
$obj->{my_dbh} = $my_
We're seeing some very strange behavior with HTML::Mason/Apache 2.2/MP2
that only affects a few of our files. I'm able to reproduce it reliably.
We have a custom handler method that handles all requests to our site by
passing them off to HTML::Mason (with exceptions for images, and the like).
1 - 100 of 115 matches
Mail list logo