Re: books reviewing (was Re: PerlRestartHandler)

2001-03-30 Thread Stas Bekman
On Fri, 30 Mar 2001, Gunther Birznieks wrote: At 06:44 PM 3/29/01 +0800, Stas Bekman wrote: Indeed, I've often wished O'Reilly would provide book sources for people that have bought the treebook. Manning has something like that, you can buy the ebook cheaper than the actual book, and

Re: Read file at startup, access data during request?

2001-03-30 Thread Stas Bekman
On Thu, 29 Mar 2001, Richard Anderson wrote: I want to read and parse a file when Apache mod_perl starts and have access to the data while my mod_perl methods are processing the request. The most obvious approach (to me) is to put the reading/parsing code at the beginning of my mod_perl

Re: books reviewing (was Re: PerlRestartHandler)

2001-03-30 Thread Gunther Birznieks
OK, I do agree in principal (that it's important for the book to be the best that it can be). Although my post was really meant to be reassuring rather than saying that people shouldn't bother pitching in. I think the mod_perl guide is great. Yes, there may be inaccuracies in there (I haven't

PerlAccessHandler causes '500 Server Error' on 'return OK'

2001-03-30 Thread Jochen Schnapka
Hi. I'm trying some of the well-known Apache-Perl-Modules, such as DayLimit.pm. Strangely, the server throws an internal error (500), when the Perl module returns 'OK'. The same is with 'DECLINED'. FORBIDDEN works well, AUTH_REQUIRED works also (though it doesn't make sense in the access control

Strange Problem with opendir / readdir

2001-03-30 Thread Cornelius Kuschnereit
Hi! I have strange problems while using opendir / readdir under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache and not a Mason Bug. I have no problem to run the same directly from the shell. Is there a known bug? Kind regards Cornelius Kuschnereit Environement: Apache

Re: Strange Problem with opendir / readdir

2001-03-30 Thread Stas Bekman
On Fri, 30 Mar 2001, Cornelius Kuschnereit wrote: Hi! I have strange problems while using opendir / readdir under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache and not a Mason Bug. I have no problem to run the same directly from the shell. Is there a known bug? A

[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)
Cornelius Kuschnereit wrote: opendir( DIR, $directory ); opendir( DIR, $directory ) or die "Can't read $directory because of $!";

ChildInitHandler

2001-03-30 Thread Nikolaus Rath
Hello! The following code doesn't work. I think that child_init_handler is never called. But there are no errors in the error log. What goes wrong here? -[/home/nikratio/cvs/tsession-perl/Apache/foo.pm] #!/usr/bin/perl -w package Apache::foo; use Apache::Cookie (); use

[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)
Cornelius Kuschnereit wrote: @dirs = readdir( DIR ); foreach $dir (sort @dirs) { next unless -d "directory/$dir"; print "file: $dir\n"; }

Re: Strange Problem with opendir / readdir

2001-03-30 Thread Paul J. Lucas
On Fri, 30 Mar 2001, Cornelius Kuschnereit wrote: I have strange problems while using opendir / readdir under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache and not a Mason Bug. I have no problem to run the same directly from the shell. Is there a known bug?

RE: [Mason] Strange Problem with opendir / readdir

2001-03-30 Thread Cornelius Kuschnereit
Yes! I can see all Files and Dirs without . and .. Can this be a hint why readdir dosn't work? Thanx! Cornelius -- the (right) result: -- Test -x BR 1 file:"/usr/local/apache/bin" length of

Shared memory between child processes

2001-03-30 Thread Randy J. Ray
I understand the forking model of Apache, and what that means in terms of data initialized in the start-up phase being ready-to-go in each child process. But what I need to do is manage it so that a particular value is shared between all children, such that changes made by one are recognized by

Re: Shared memory between child processes

2001-03-30 Thread Steve Leibel
At 5:30 PM -0800 3/30/01, Randy J. Ray wrote: I understand the forking model of Apache, and what that means in terms of data initialized in the start-up phase being ready-to-go in each child process. But what I need to do is manage it so that a particular value is shared between all children,

Re: Shared memory between child processes

2001-03-30 Thread Andrew Ho
Hello, RRI'm needing to implement a handler that uses a true Singleton pattern for RRthe class instance. One per server, not just one per process (or thread). SLYou'll need to use some form of persistance mechanism such as a SLdatabase, file, or perhaps (assuming you're on a Unix system)

mod_perl forgets filled global variables

2001-03-30 Thread werner.schmidt-wilczek
Hi, my name is Werner Schmidt-Wilczek, i am a programmer at the Policegovernment in Nuremberg, Bavaria, Germany. I am using mod_perl for our Intranet. The performance is great, but there are many sideeffects! An example: I have a database with 5 items. I load this items one time