Re: Subrequests

2002-02-07 Thread Pierre Phaneuf
. if(!$r-is_main()) { return; } -- Pierre Phaneuf

Re: CGI Upload/download question

2002-02-03 Thread Pierre Phaneuf
... ;-) -- Pierre Phaneuf

Re: modperl growth

2002-02-03 Thread Pierre Phaneuf
. -- Pierre Phaneuf

Re: mod_perl BOF

2001-03-29 Thread Pierre Phaneuf
. :-)) -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: PerlRestartHandler

2001-03-29 Thread Pierre Phaneuf
st reading the titles makes my head hurt! LOL! (I'm french canadian) Hmm, Tk from mod_perl, that would be weird. :-) -- Pierre Phaneuf Systems Exorcist

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Pierre Phaneuf
DeWitt Clinton wrote: The other question is whether or not to share the cache instance itself globally. Technically, this is up to you. Personally I wouldn't bother, considering the overhead of instantiating the cache is so low that I would rather keep it local to the handler (as I did

Chromium

2001-03-23 Thread Pierre Phaneuf
Did anyone try the Chromium Apache-based web server? More specifically (and topically), does it work with mod_perl? http://www.chromium.com/ -- "I've run DOOM more in the last few days than I have the last few months. I just love debugging ;-)" -- Linus Torvalds

Re: [OT] ApacheCon BOF

2001-03-21 Thread Pierre Phaneuf
Steve Reppucci wrote: Some folks spend way too much time looking for something to be offended by, again IMHO. I'm pretty sure that for any thing you might find, I would be able to find someone offended by it. Let's no do anything too obvious (a camel ramming up stuff up Bill Gates ass would

Re: understanding memory via ps -ely | grep http

2001-03-21 Thread Pierre Phaneuf
[EMAIL PROTECTED] wrote: What's about FreeBSD? If shared memory is not compiled in kernel of FreeBSD I cant use GTop module because of absant of shared memory. So I dont know is there performance affect or not. You do not have shared memory enabled in your kernel? Any reason? I'd say that

Re: [NQ] Newbie Question about mod_perl

2001-03-20 Thread Pierre Phaneuf
"Differentiated Software Solutions Pvt. Ltd.," wrote: I have written two mod_perl programs whose output is same (through browser). I want to know what are the difference between them! If there is any difference then what are the pros and cons in using both of them? The second program is

Re: book recommendations?

2001-03-20 Thread Pierre Phaneuf
Paul Evad wrote: I know a lot of the good O'Rielly books are showing some age (1999 publishing date). Anyone out there have a copy of "Writing Apache Modules with Perl and C", is it still relevant enough with the current apache mod_perl distro's to be worthwhile getting? Yeah, it still

segfault on subrequest?

2001-03-15 Thread Pierre Phaneuf
ithin a PerlTransHandler might be a bad idea (infinite loops!), but I would have thought that lookup_file would be ok... Okay, maybe everyone will jump in my face about this: this is on an updated Red Hat 7.0 system, using Red Hat's Apache and mod_perl RPM packages. -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: Read on closed file handle?

2001-03-09 Thread Pierre Phaneuf
David Jourard wrote: Found my error after I had my sandwich. Lesson to keep from this: eat your sandwich! :-) -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: Newbie Questions

2001-03-09 Thread Pierre Phaneuf
overridden and will not hurt the server, but the cleaner way to exit an Apache::Registry handler is with 'return'. I *think* you can return something like "return REDIRECT" or "return SERVER_ERROR" if you want, but I'm not sure (I only use PerlHandler scripts, not Apache::Registry). -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: uri to filename

2001-03-05 Thread Pierre Phaneuf
Nikolaus Rath wrote: As described in the other mail, i have a TransHandler wich modifies the URI. But this doesn't work correctly. After modifying the URI, do you return DECLINED or something else? -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: Modifying $r-uri

2001-03-04 Thread Pierre Phaneuf
can't put them in Location). -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: Authentication handlers

2001-03-04 Thread Pierre Phaneuf
exist, generate a new one. Good one! The only bad thing I see is that the realm is visible in the dialog box the user see, isn't it? Seeing a random string might be a bit unsettling for the user, but there is no technical reason for it not to work. -- Pierre Phaneuf Systems Exorcist

Re: Authentication handlers

2001-03-03 Thread Pierre Phaneuf
hat if you give them an AUTH_REQUIRED, it might clear the password, but that would also make the authentication dialog box appear on their machine, which would be rather confusing. Personally, I use cookies for authentication instead, you can remove those at will. -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: Authentication handlers

2001-03-03 Thread Pierre Phaneuf
forgot to put a way to revoke the thing when they designed it. Eh, that's life... -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

PerlModule vs use in a Perl section

2001-03-01 Thread Pierre Phaneuf
he PerlHandler (like this: "PerlHandler +Apache::Foo") did load the module as expected. Now, why aren't modules loaded with PerlModule not showing up in the loaded modules list of Apache::Status? Thanks! -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

path_info *again*! help!!!

2001-02-23 Thread Pierre Phaneuf
k, even though there is no such directory, of course. Now for the most interesting: If I change the Location / into a Location /tree, EVERYTHING IS FINE. So this seems to be an exceptional case that happens only at /!?! So what's going on here?!? -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Ask Bjoern Hansen wrote: So: What is the task at hand (more than "run something at certain intervals" (which is what cron(8) is for)). I am building a web something-something (I don't know what's the current buzzword for that, you know, the big integrated things) similar to the ArsDigita

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Ask Bjoern Hansen wrote: I guess two persons "simpler" aren't always the same: I find it easier laying out a table and querying it than hacking something to fiddle with my crontab safely. As far as I know, crontab -e is perfectly safe. "crontab -l | foo" and "foo | crontab -" are

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Matt Sergeant wrote: as for putting cron into Apache: I don't understand why that's wanted in the first place. When connecting to the database outside the httpd it doesn't matter if it goes a little slow. And having separate programs to do the maintenance would easily be much simpler

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Stas Bekman wrote: I might be barking at the wrong tree, but why cron? Why don't you use at(1). you don't need to parse crontab for that, and you can spawn processes with whatever intervals on demand. basically you can call at(1) itself at the end of at() so you can do the same as crontab.

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Tim Bunce wrote: Apache::Schedule let you register callbacks (per Apache child process) that will be called after a given amount of time has passed, either once or repeatedly. Callbacks will be called at the next request after the required time, or at child exit time. Would it work

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Vivek Khera wrote: PP Ah yes. The problem with this is between the "crontab -l" and the PP "crontab -". You have to parse the crontab, find your own entry without Very limited thinking going on here. The crontab program honors the EDITOR environment variable. Now... setenv

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Perrin Harkins wrote: The original post didn't say that the goal was to modify the scheduled jobs dynamically from mod_perl, and that does add a new wrinkle. I still think a good Perl interface to cron would be more obvious and more reliable. Sorry, maybe I didn't make that quite clear.

Re: cron for mod_perl?

2001-02-15 Thread Pierre Phaneuf
Vivek Khera wrote: With appropriate Perl modules for the cron files, this should be trivial. But then, you probably aren't doing this from mod_perl... PP Well, yes, why? :-) You really want to have your web server writing files that execute arbitrary programs at arbitrary times?

Re: cron for mod_perl?

2001-02-14 Thread Pierre Phaneuf
Perrin Harkins wrote: Well, if I call the "check for things to do" URI every minute, then I'll be just fine. Many times, I'll just check and find nothing to do Huh? Why would you call it if there's nothing to do? Are you thinking you'll write a cron-ish task/timing spec for your Perl

Re: idea modules info

2001-02-14 Thread Pierre Phaneuf
Svante Srmark wrote:  ConfigDBI i Config via DBI and Perl MARKIM Oracle's new Apache-based application-server stores its config in the database. It might be good for some ideas. Any pointer to information? -- "A Perl script is correct if it gets the job done

Re: cron for mod_perl?

2001-02-14 Thread Pierre Phaneuf
Perrin Harkins wrote: Yes, exactly. My plan is to have a table with the tasks in my database, and check expired tasks in a cleanup handler. I'll have to lock the table, so that only one process does that. I'll also query the database only every so often, not at every request cleanup.

Re: cron for mod_perl?

2001-02-14 Thread Pierre Phaneuf
Perrin Harkins wrote: Sure, but why waste resources? Because it's easy? :-) As for the simplicity, having multiple individual custom cron jobs is simpler than one single generic cron job? Yes, much simpler, at least for the scheduling and dispatching part. Instead of designing

Re: idea modules info

2001-02-13 Thread Pierre Phaneuf
Mark Imbriaco wrote: What is the usual process for one that would like to help with a "i" module? Is there any code done, or some message/thread that I could be pointed to, discussing the idea, things like that? I developed some code to do this a VERY long time ago, but the code was

Re: idea modules info

2001-02-13 Thread Pierre Phaneuf
Mark Imbriaco wrote: What is the usual process for one that would like to help with a "i" module? Is there any code done, or some message/thread that I could be pointed to, discussing the idea, things like that? I developed some code to do this a VERY long time ago, but the

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
Pierre Phaneuf wrote: Does anyone has an idea about this? I think I have proper behavior from my perl handler by installing it at the root of the server, but this is no real solution! What I am doing wrong here??? I'm really stumped with that one. How come Apache::Registry gets the right

cron for mod_perl?

2001-02-13 Thread Pierre Phaneuf
Is there a way to have a Perl function called at some point in time, like I think AOLserver can do in Tcl (but I don't want to do either AOLserver or Tcl!)? I thought about checking the time in a PerlCleanupHandler, but this would be in each Apache subprocess and I want this to get called only

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
it out by hand. That would make the Apache::TreeBrowser example in the eagle book wrong, isn't it? Doug, is there something I'm missing about installing Apache::TreeBrowser? -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
: Please don't post large attachments to the list in future - send us a link to a place we can see the code you are using on the web. Sorry! I took extra care to make the package as small as possible, but I understand the rule, thanks! -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
to translate, and you can't put a translation handler just in a Location anyway. Thanks for your help! -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: cron for mod_perl?

2001-02-13 Thread Pierre Phaneuf
omes with Red Hat, and I can't find the LWP anywhere. Not that I can't install it or use wget instead... Thanks everyone! -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
feel that this might be a real bug. I'll go submit something to the Apache bug tracking system later... -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: cron for mod_perl?

2001-02-13 Thread Pierre Phaneuf
I was thinking of using wget with "-O /dev/null". :-) As for the cached database connection, I knew about that, but I was thinking of the forking approach (where there was no cached connection available (not that it couldn't be cached!)). -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-13 Thread Pierre Phaneuf
Matt Sergeant wrote: Well you should read how Apache works. See http://httpd.apache.org/docs/sections.html It should clear things up for you. Thank you, very interesting! -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

trouble with path_info

2001-02-12 Thread Pierre Phaneuf
t want to hear about... -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-12 Thread Pierre Phaneuf
t it would be just that, a workaround, because on Doug's web server, it works. -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Re: trouble with path_info

2001-02-12 Thread Pierre Phaneuf
darren chamberlain wrote: In just about every cases that I could do, I have $r-path_info identical to $r-uri! If you are installing your handler as such: Location / SetHandler perl-script PerlHandler My::Package /Location Then what you are seeing is correct. What does

Re: trouble with path_info

2001-02-12 Thread Pierre Phaneuf
Pierre Phaneuf wrote: Then what you are seeing is correct. What does the relevent httpd.conf snippet look like? Just like in the eagle book (page 143): Location /virtual SetHandler perl-script PerlHandler Apache::TreeBrowser /Location And I'm totally unable to get what you see

path_info in my perl handler

2001-02-12 Thread Pierre Phaneuf
Did some more testing: $ENV{PATH_INFO} from a CGI script is okay, and so is $r-path_info() from an Apache::Registry script. Why does the PerlHandler one doesn't work right then? -- "The 3 great virtues of a programmer: laziness, impatience and hubris." -- Larry Wall

trouble with path_info

2001-02-12 Thread Pierre Phaneuf
I'm really stumped with that one. How come Apache::Registry gets the right information and I don't??? I tried doing the exact same thing, to no avail. I built the smallest possible testcase I could (attached to this message, just fix the /home/pp/tmp in httpd.conf and startup.pl into wherever