Re: Data structure question

2000-06-06 Thread Nick Tonkin
On Tue, 6 Jun 2000, Drew Taylor wrote: "Ken Y. Clark" wrote: On Tue, 6 Jun 2000, Drew Taylor wrote: I have a question about data structures. Currently, I am doing SQL queries and returning an array ref and a hash ref. The array is to preserve order, and the has

Re: Data structure question

2000-06-06 Thread Drew Taylor
Ken Miller wrote: Well, if the keys are unique, you could just return a hashref, and then access it using sorted keys: foreach( sort keys %$HR ) { ## insert useful stuff here } If only I could just use sort. :-) The order could be completely arbitrary, based on search parameters,

RE: Data structure question

2000-06-06 Thread Jerrad Pierce
. | _| | \|| _.-~-._.-~-._.-~-._@" _|\_|___|___| -Original Message- From: Drew Taylor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 06, 2000 14:56 To: Ken Miller Cc: modperl Subject: Re: Data structure question Ken Miller wrote: Well, if the keys are unique, you could just r

Re: Data structure question

2000-06-06 Thread Drew Taylor
Stas Bekman wrote: and in perl5.6 it's called pseudohash (well it was known before but is supported in 5.6) http://www.perl.com/pub/doc/manual/html/pod/perldelta.html#Pseudo_hashes_are_supported I know about pseudohashes - thanks to Damien again! :-). They look very cool, but to be honest

Re: Data structure question

2000-06-06 Thread Drew Taylor
Jerrad Pierce wrote: you can use sort, of the values are hashes or indexes: foreach ( sort { $a-{name} cmp $b-{name} keys %hash ) or foreach ( sort { $a-[0] cmp $b-[0] keys %hash ) In this case I can't use sort since the order is completely arbitrary, based on the SQL issued. Hence the

Re: Data structure question

2000-06-06 Thread Perrin Harkins
On Tue, 6 Jun 2000, Drew Taylor wrote: I know about tied hashes - Thanks Damien for your excellent book! - but there is a performance penalty. How big is this penalty? Is it worth using tied hashes? Versus an array of hash refs? They're a lot slower than normal data structures, or even normal

Re: Data structure question

2000-06-06 Thread Stas Bekman
On Tue, 6 Jun 2000, Perrin Harkins wrote: On Tue, 6 Jun 2000, Drew Taylor wrote: I know about tied hashes - Thanks Damien for your excellent book! - but there is a performance penalty. How big is this penalty? Is it worth using tied hashes? Versus an array of hash refs? They're a lot

Re: Data structure question

2000-06-06 Thread darren chamberlain
Hi Drew, How about writing a custom sort routine, based on the order you would be using in the array, and returning that as a code ref? Sorting the hash would be as simple as: Common.pm: sub

Re: Data structure question

2000-06-06 Thread Drew Taylor
darren chamberlain wrote: Hi Drew, How about writing a custom sort routine, based on the order you would be using in the array, and returning that as a code ref? Sorting the hash would be as simple as: In this case, it's overkill: the DB has already put the data together in the order I

Re: Data structure question

2000-06-06 Thread Drew Taylor
Stas Bekman wrote: On Tue, 6 Jun 2000, Perrin Harkins wrote: On Tue, 6 Jun 2000, Drew Taylor wrote: I know about tied hashes - Thanks Damien for your excellent book! - but there is a performance penalty. How big is this penalty? Is it worth using tied hashes? Versus an array of

Re: global variables and reparsing question (low priority ;)

2000-06-01 Thread Doug MacEachern
forget about mod_perl for a moment. yes, true, Perl's built-in require will not reload a module if it's already in %INC. but that's doesn't mean a Perl environment cannot un-cache that entry so it will be reloaded. consider the code below, pretend that loop is a long-lifetime server, Tk type

Re: global variables and reparsing question (low priority ;)

2000-06-01 Thread Doug MacEachern
re you brought it up. just as i've said using 'exit()' is broken, along with any other code that makes assumptions about it's calling environment. What happened, if you go back and read the thread, is that I had a question and had a very hard time explaining what I actually meant (because my

Re: global variables and reparsing question (low priority ;)

2000-06-01 Thread Marc Lehmann
On Thu, Jun 01, 2000 at 11:59:53AM -0700, Doug MacEachern [EMAIL PROTECTED] wrote: will not reload a module if it's already in %INC. but that's doesn't mean a Perl environment cannot un-cache that entry so it will be reloaded. consider the code below, pretend that loop is a long-lifetime

Re: global variables and reparsing question (low priority ;)

2000-06-01 Thread Perrin Harkins
On Thu, 1 Jun 2000, Marc Lehmann wrote: It's easy, I just have to kick my ass each time I want to use a lexical for data abstraction and use a package variable instead, with only the exception that I have to be very careful that I never re-use the same name. This is quite difficult for code

Re: global variables and reparsing question (low priority ;)

2000-05-26 Thread Marc Lehmann
nds here. I am still defensive because calling somebody else's code broken should not be done so lightly. What happened, if you go back and read the thread, is that I had a question and had a very hard time explaining what I actually meant (because my initial mails were simply not verbose enough o

Re: global variables and reparsing question (low priority ;)

2000-05-26 Thread Daniel Jacobowitz
On Tue, May 23, 2000 at 10:05:01AM +0200, Marc Lehmann wrote: On Tue, May 23, 2000 at 12:56:28AM -0500, Autarch [EMAIL PROTECTED] wrote: On Tue, 23 May 2000, Marc Lehmann wrote: stable (mod_perl really is very unstable for large applications). Apart Wow, I wish you'd warned me

Re: global variables and reparsing question (low priority ;)

2000-05-25 Thread Doug MacEachern
On Wed, 24 May 2000, Marc Lehmann wrote: You must be kidding here!!! Using lexicals on package level is broken??? If it is broken, then _why_ is it recommended programming practise in perl (see perltoot for example)? i'm not kidding. i don't understand whay you mean by 'using lexicals on

Re: global variables and reparsing question (low priority ;)

2000-05-25 Thread Marc Lehmann
On Thu, May 25, 2000 at 11:58:38AM -0700, Doug MacEachern [EMAIL PROTECTED] wrote: You must be kidding here!!! Using lexicals on package level is broken??? If it is broken, then _why_ is it recommended programming practise in perl (see perltoot for example)? i'm not kidding. i don't

Re: global variables and reparsing question (low priority ;)

2000-05-24 Thread Marc Lehmann
Huh? Why is "do" a bad thing Do is bad because it is called every time, even if you've already executed You are confused about the two different forms of do. The do BLOCK form I used has nothing to do with the do EXPR form you seem to be confused about. perldoc -f do explains the

Re: global variables and reparsing question (low priority ;)

2000-05-24 Thread Marc Lehmann
On Tue, May 23, 2000 at 08:22:59PM -0700, Doug MacEachern [EMAIL PROTECTED] wrote: If this were true, it would be very bad. If there is no technical need to do this "half-reloading" then it should definitely be turned off. it is off by default, you turned it on with 'PerlFreshRestart On'

Re: global variables and reparsing question (low priority ;)

2000-05-24 Thread Ken Williams
[EMAIL PROTECTED] (Marc Lehmann) wrote: flag to keep from compiling again and checking $@ yourself, so you're getting around these problems, but the file form of do is generally a red flag. This is just as saying "division is a bad thing in general, because it let's you try to divide by

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Perrin Harkins
e). Third-party modules (e.g. from CPAN) however, still suffer from this problem, and due to my dumbness I fall into that trap again and again. And so my question is: why does this behaviour exist, and why is it necessary (the documents I saw so far only told me that this "has something t

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Marc Lehmann
On Tue, May 23, 2000 at 12:56:28AM -0500, Autarch [EMAIL PROTECTED] wrote: On Tue, 23 May 2000, Marc Lehmann wrote: stable (mod_perl really is very unstable for large applications). Apart Wow, I wish you'd warned me before I did several large applications using mod_perl. Fortunately,

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Marc Lehmann
On Tue, May 23, 2000 at 12:27:58PM +0800, Gunther Birznieks [EMAIL PROTECTED] wrote: replace my $global with use vars qw($global); and your problem should disappear. If you had read my mail you would have known that I do not search for a workaround. While in this simple example it is

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Matt Sergeant
On Tue, 23 May 2000, Marc Lehmann wrote: On Tue, May 23, 2000 at 12:56:28AM -0500, Autarch [EMAIL PROTECTED] wrote: On Tue, 23 May 2000, Marc Lehmann wrote: stable (mod_perl really is very unstable for large applications). Apart Wow, I wish you'd warned me before I did several

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Marc Lehmann
On Mon, May 22, 2000 at 11:24:10PM -0700, Perrin Harkins [EMAIL PROTECTED] wrote: business about being parsed twice only applies to Apache's config file and Perl sections in it, not to your modules. A little followup: Looking at the mod_perl source, I see that INC is tinkered with in a lot of

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Marc Lehmann
On Tue, May 23, 2000 at 09:26:13AM +0100, Matt Sergeant [EMAIL PROTECTED] wrote: Hmm... AxKit does all this, and is very stable for me, and I've only had a couple of reports of segfaults, none of which went unsolved as far as I know... OK. To be fair, I am not 100% sure wether it's an

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Ken Williams
[EMAIL PROTECTED] (Marc Lehmann) wrote: = package othermodule; my $global = 5; sub set_global { $global = shift; } = And use this from

PerlTransHandler question.

2000-05-23 Thread Antonio Pascual
I want handler a request only if the url is like http://localhost/idTrans=XXX In other case do the default behaviour. How could I do this? I suppose that I have to use PerlTransHandler, but I don't know how. Thanks in advance. Antonio.

RE: PerlTransHandler question.

2000-05-23 Thread Geoffrey Young
: [EMAIL PROTECTED]Subject: PerlTransHandler question. I want handler a request only if the url is like http://localhost/idTrans=XXX In other case do the default behaviour. How could I do this? I suppose that I have to use PerlTransHandler, but I don't know how. Thanks in advance

Re: PerlTransHandler question.

2000-05-23 Thread Randal L. Schwartz
"Antonio" == Antonio Pascual [EMAIL PROTECTED] writes: Antonio I want handler a request only if the url is like http://localhost/idTrans=XXX Antonio In other case do the default behaviour. Antonio How could I do this? Antonio I suppose that I have to use PerlTransHandler, but I don't know how.

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Gustavo Duarte
helu. Marc Lehmann wrote: And so my question is: why does this behaviour exist, and why is it necessary (the documents I saw so far only told me that this "has something to do with apache's configuration file parsing", which doesn't explain much, especially as it does seem u

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Marc Lehmann
On Tue, May 23, 2000 at 10:08:46AM -0700, Gustavo Duarte [EMAIL PROTECTED] wrote: I'm not sure this makes sense for your case, but it might help, so... It probably makes a lot of sense. Thanks! "When the server [apache] is restarted, the configuration and module initialization phases are

Re: global variables and reparsing question (low priority ;)

2000-05-23 Thread Doug MacEachern
On Tue, 23 May 2000, Marc Lehmann wrote: At leats in the example I sent in there is no sign of any closure. There is a closure, and this might be the thing that's making trouble for you, or at least part of it. This is a closure: that example is only a closure if it's compiled by

ModPerl Upgrade Question

2000-05-22 Thread Pierre J. Nicolas
I'm currently running "mod_perl" 1.21_03 and I'm using "PerlFreshRestart." I haven't experienced any problems with it, but I'm wondering if I should upgrade to the seemingly more stable "1.23" release. Could someone shed some light? Thanks, Pierre

Re: ModPerl Upgrade Question

2000-05-22 Thread Vivek Khera
"PJN" == Pierre J Nicolas [EMAIL PROTECTED] writes: PJN I'm currently running "mod_perl" 1.21_03 and I'm using PJN "PerlFreshRestart." I haven't experienced any problems PJN with it, but I'm wondering if I should upgrade to the PJN seemingly more stable "1.23" release. If you have no problems

global variables and reparsing question (low priority ;)

2000-05-22 Thread Marc Lehmann
hat ugly but working trick above). Third-party modules (e.g. from CPAN) however, still suffer from this problem, and due to my dumbness I fall into that trap again and again. And so my question is: why does this behaviour exist, and why is it necessary (the documents I saw so far only told me that

Re: global variables and reparsing question (low priority ;)

2000-05-22 Thread Gunther Birznieks
nd again. And so my question is: why does this behaviour exist, and why is it necessary (the documents I saw so far only told me that this "has something to do with apache's configuration file parsing", which doesn't explain much, especially as it does seem unnecessary).

Re: global variables and reparsing question (low priority ;)

2000-05-22 Thread Autarch
On Tue, 23 May 2000, Marc Lehmann wrote: stable (mod_perl really is very unstable for large applications). Apart Wow, I wish you'd warned me before I did several large applications using mod_perl. Fortunately, they haven't experienced any mod_perl related problems. Just a fluke, I guess.

PerlFreshRestart Question/Problem

2000-05-19 Thread David Veatch
Greetings, [i sent this once, but think it got hung up at the mail server... my apologies if this already went through] I've run into some interesting behaviors with the PerlFreshRestart directive. If I understand correctly, this directive is supposed to force modules to reload when you

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Geoffrey Young
-Original Message- From: David Veatch [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 11:48 AM To: [EMAIL PROTECTED] Subject: PerlFreshRestart Question/Problem Greetings, [i sent this once, but think it got hung up at the mail server... my apologies if this already

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread David Veatch
At 01:22 PM 5/19/00 -0400, Geoffrey Young wrote: I think the title says it best: http://perl.apache.org/guide/troubleshooting.html#Evil_things_might_happen _when_us Sweet. Thanks. So the problem is probably any number of weak module issues. That's enough for me right now... turning it off

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Stas Bekman
At 01:22 PM 5/19/00 -0400, Geoffrey Young wrote: I think the title says it best: http://perl.apache.org/guide/troubleshooting.html#Evil_things_might_happen _when_us Sweet. Thanks. So the problem is probably any number of weak module issues. That's enough for me right now... turning

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Vivek Khera
"SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Huh? Wasn't the mod_perl 1.23 supposed to fix this problem with DSO? I SB thought to remove this item from the Guide. Are there still problems with SB DSO? DSO works great for me now with the fixes in place of mod_perl 1.23. However, note that

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Doug MacEachern
On Fri, 19 May 2000, Stas Bekman wrote: Huh? Wasn't the mod_perl 1.23 supposed to fix this problem with DSO? I thought to remove this item from the Guide. Are there still problems with DSO? If I remember correctly the problem was of broken internal pointers when the DSO code was reloaded.

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Stas Bekman
On Fri, 19 May 2000, Doug MacEachern wrote: On Fri, 19 May 2000, Stas Bekman wrote: Huh? Wasn't the mod_perl 1.23 supposed to fix this problem with DSO? I thought to remove this item from the Guide. Are there still problems with DSO? If I remember correctly the problem was of

RE: PerlFreshRestart Question/Problem

2000-05-19 Thread Kreimendahl, Chad J
: PerlFreshRestart Question/Problem At 01:22 PM 5/19/00 -0400, Geoffrey Young wrote: I think the title says it best: http://perl.apache.org/guide/troubleshooting.html#Evil_things_might_happen _when_us Sweet. Thanks. So the problem is probably any number of weak module issues. That's

question - can asp be run as cgi???

2000-05-19 Thread Charles Dalsass
to the question: Is there a way to run ASP as a cgi program (interchangably). What are the steps involved to do that? Thanks alot for the help, Charles Dalsass www.neptuneweb.com

Re: question - can asp be run as cgi???

2000-05-19 Thread Joshua Chamas
). I've been unable to nail down an answer to the question: Is there a way to run ASP as a cgi program (interchangably). What are the steps involved to do that? Thanks alot for the help, Charles Dalsass www.neptuneweb.com

RE: newbie question - require

2000-05-15 Thread Graf, Chris
Check the mod_perl guide for the usage of require() and do(). You probably want to use do() instead of require(). Chris -Original Message- From: Brett Lee [mailto:[EMAIL PROTECTED]] Sent: Monday, May 15, 2000 7:56 AM To: [EMAIL PROTECTED] Subject: newbie question - require In moving

Re: newbie question - require

2000-05-15 Thread w trillich
Brett Lee wrote: but with mod_perl, the info in the hash tables seems to be found "every other refresh" (which has me stumped). Would anyone be able to suggest a solution or reading material on this? don't forget to check your stuff out with single-process mode, via 'apachectl stop; apache

newbie question - require

2000-05-15 Thread Brett Lee
In moving from CGI.pm to mod_perl, I ran across the common error with functions that exist in scripts pulled in with 'require'. Mod_perl_traps.html had the solution. Similarly, am using ('require') another file which holds all the hash tables (countries, states, etc.) that my scripts need to

Re: Newbie Question -

2000-05-12 Thread Doug MacEachern
On Sat, 6 May 2000, Gunther Birznieks wrote: At 06:56 PM 5/5/00 -0400, Jim Winstead wrote: On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If you currently

Re: Newbie Question -

2000-05-12 Thread Stas Bekman
On Fri, 12 May 2000, Doug MacEachern wrote: On Sat, 6 May 2000, Gunther Birznieks wrote: At 06:56 PM 5/5/00 -0400, Jim Winstead wrote: On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a

Re: Newbie Question -

2000-05-12 Thread Doug MacEachern
not compiled, but the all the code lives in a BIG hash table for CGI.pm to autoload from. the export lists take up alot of space too. regardless if you're using html routines or not. As I have replied to FEITO Nazareno today, this happens only if you precompile CGI.pm's functions at

Re: may be an offtopic question..

2000-05-10 Thread Matt Sergeant
7On Wed, 10 May 2000, Niral Trivedi wrote: All, I am not sure whether this is the right place to ask this question... sorry if not.. My question is, Can we use custom database for authentication with Apache instead of default text based authentication??? Has anybody done that before

may be an offtopic question..

2000-05-10 Thread Niral Trivedi
All, I am not sure whether this is the right place to ask this question... sorry if not.. My question is, Can we use custom database for authentication with Apache instead of default text based authentication??? Has anybody done that before?? I have looked apache site and cpan site

Re: may be an offtopic question..

2000-05-10 Thread Vivek Khera
"NT" == Niral Trivedi [EMAIL PROTECTED] writes: NT My question is, Can we use custom database for authentication with NT Apache instead of default text based authentication??? NT Has anybody done that before?? I have looked apache site and cpan site.. NT but couldn't find any doc

Re: Newbie Question -

2000-05-09 Thread Drew Taylor
Peter Haworth wrote: Drew Taylor wrote: What I would really like is a module which subclasses Apache::Request, and has the popup_menu, scrolling_list, and checkbox group methods available. That way I can use the smaller (faster) Apache::Request and still have the few HTML generation

Re: Newbie Question -

2000-05-09 Thread Peter Haworth
Drew Taylor wrote: What I would really like is a module which subclasses Apache::Request, and has the popup_menu, scrolling_list, and checkbox group methods available. That way I can use the smaller (faster) Apache::Request and still have the few HTML generation methods that I need. This

RE: Newbie Question -

2000-05-09 Thread Geoffrey Young
-Original Message- From: Drew Taylor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2000 9:08 AM To: Peter Haworth Cc: [EMAIL PROTECTED] Subject: Re: Newbie Question - Peter Haworth wrote: Drew Taylor wrote: What I would really like is a module which subclasses

Re: Newbie Question -

2000-05-09 Thread Drew Taylor
Geoffrey Young wrote: Drew Taylor wrote: I'm quite sure it would be an easy write, but I just haven't done it yet. I think once I convert my CGIs to handlers, it makes sense to do it then. It would be interesting to see if anyone else is interested and work out an API for the most

RE: Newbie Question -

2000-05-08 Thread Geoffrey Young
-Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Friday, May 05, 2000 6:22 PM To: Geoffrey Young Cc: 'Pierre J. Nicolas'; [EMAIL PROTECTED] Subject: RE: Newbie Question - mod_perl overrides the perl print() function - print()ing to STDOUT

Re: Newbie Question -

2000-05-08 Thread Drew Taylor
Adi wrote: Jim Winstead wrote: On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If you currently use CGI.pm, I think you'll find that a lot of your

Re: Global Variable Question

2000-05-07 Thread Gunther Birznieks
The current request will have exclusive rights to it since each apache engine has it's own perl engine. For your intents and purposes, a single perl engine is never servicing more than one request to completion at any given time. Whether that environment variable survives untouched to the

Newbie Question -

2000-05-05 Thread Pierre J. Nicolas
Good Morning, I just started using mod_perl, I'm still using the CGI.pm module, but I plan to convert. I've loaded the Apache::Registry and I'm experiencing a strange problem. I have this snippet: print "Content-Type: text/html\n\n"; print_template(file_handle, *file_handle_ref)

Newbie Question

2000-05-05 Thread Pierre J. Nicolas
Good Morning, I just started using mod_perl, could someone please tell me why I would get an error: "Undefined subroutine Apache::ROOT::dir::prog_name::function_name called at /path/to/script/script_name line line_numer" when I specifically "require module_with_function_name" in the script. I

RE: Newbie Question

2000-05-05 Thread Geoffrey Young
PROTECTED] Subject: Newbie Question Good Morning, I just started using mod_perl, could someone please tell me why I would get an error: "Undefined subroutine Apache::ROOT::dir::prog_name::function_name called at /path/to/script/script_name line line_numer" when I specifically

Apache::Session question

2000-05-05 Thread Gundars Kulups
Hi! I am sorry to ask this bit off question, but still. Has anyone used Apache::Session on Solaris (Sparc, not intel)? We implemented system on Linux (intel) and tried to port it to Solaris, but session doesn't work - can not create session files. Store manager used is FileStore and SysV

Re: Apache::Session question

2000-05-05 Thread Francesc Guasch
Gundars Kulups wrote: Hi! I am sorry to ask this bit off question, but still. Has anyone used Apache::Session on Solaris (Sparc, not intel)? We implemented system on Linux (intel) and tried to port it to Solaris, but session doesn't work - can not create session files. Store manager used

Re: Newbie Question -

2000-05-05 Thread Doug MacEachern
On Fri, 5 May 2000, Pierre J. Nicolas wrote: Good Morning, I just started using mod_perl, I'm still using the CGI.pm module, but I plan to convert. I've loaded the Apache::Registry and I'm experiencing a strange problem. I have this snippet: print "Content-Type:

RE: Newbie Question -

2000-05-05 Thread Doug MacEachern
mod_perl overrides the perl print() function - print()ing to STDOUT explititly will not work. just use print() if you can... sure it will, print STDOUT "hi"; and print "hi"; are the same thing, provided STDOUT is the currently selected output filehandle, which it is by default.

Re: Newbie Question -

2000-05-05 Thread Adi
"Pierre J. Nicolas" wrote: Good Morning, I just started using mod_perl, I'm still using the CGI.pm module, but I plan to convert. You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If

Re: Newbie Question -

2000-05-05 Thread Jim Winstead
On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If you currently use CGI.pm, I think you'll find that a lot of your current code can simply be cut-and-pasted into a

Re: Newbie Question -

2000-05-05 Thread Adi
Jim Winstead wrote: On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If you currently use CGI.pm, I think you'll find that a lot of your current code can

Re: Apache::Session question

2000-05-05 Thread Neil Conway
On Fri, May 05, 2000 at 05:58:33PM +0200, Francesc Guasch wrote: [Solaris + Apache::Session] After the use Apache::Session you maybe have to type something like this. $Apache::Session::SysVSemaphoreLocker::nsems=16; In my preliminary testing, it appears this is also necessary to get

Re: Newbie Question -

2000-05-05 Thread Gunther Birznieks
At 06:56 PM 5/5/00 -0400, Jim Winstead wrote: On May 05, Adi wrote: You can still use CGI.pm from within mod_perl (and you should). There is nothing better at handling data passed from a browser via HTTP POST and/or GET. If you currently use CGI.pm, I think you'll find that a lot of your

hey I have a question

2000-05-03 Thread FEITO Nazareno
What´s better? Make httpd from mod_perl or make prep_httpd and then make httpd from apache? I hope you understand my question. Nazarenowww.obsequie.com

RE: hey I have a question

2000-05-03 Thread FEITO Nazareno
I do the same thing, but my memory is out in a little while... the error_log begin to send me out of memory!!! any idea? Nazarenowww.obsequie.com

Redirection that is the question...

2000-04-26 Thread FEITO Nazareno
I have a page... www.obsequie.com but when I in with IE I can´t see the pictures... I just maintaining the site... I don´t know if the problem is in the scripts cause of some redirection or is because Apache is redirecting bad domain... can anybody help me? may be this question doesn´t belong

design question

2000-04-25 Thread David Hajoglou
I am trying to implement a cross platform auth scheme whereby users log into a system running in a microsoft environment. Then, when they want to check their e-mail, they click a link in the form of: mail.isoftcorp.com/auth?k=sequence the key sequence is determined when they log into the main

Please ignore my previous question

2000-04-15 Thread Gagan Prakash
** Web App Development Needs? *** Contact OSATech today! http://www.OSATech.com *** - Original Message - From: "Gagan Prakash" [EMAIL PROTECTED] To: "modperl (E-mail)" [EMAIL PROTECTED] Sent: Saturday, April

Re: Quick question re: mod_perl

2000-04-11 Thread Doug MacEachern
On Wed, 5 Apr 2000, Charles Aulds wrote: Doug, Can you tell me with a simple response, are the modules shown on my status page http://192.168.1.1/perl-status?inc all loaded by mod_perl when it starts? I have no PerlModule or PerlRequire directives in effect. Apache.pm and

Re: IPC::Semaphore permission denied question

2000-04-10 Thread Jeffrey W. Baker
On Mon, 10 Apr 2000, Jeff Gleixner wrote: Been running a mod_perl/Mason enabled server for a while, now I want to change the owner of the process to "www", from "nobody". In doing so I get: Permission denied at /usr/local/lib/perl5/site_perl/5.005/Apache/Session/SysVSemaphoreLocker.pm

Re: ANNOUNCE: IPO::Shareable [Re: may be an off topic question..]

2000-04-07 Thread darren chamberlain
use IPO::Shareable qw(:NYSE); my $ipo = IPO::Shareable-new($company); $ipo-is_internet(); hype $ipo; # dangerous indirect syntax! my $shares = $ipo-invest($LITTLE); $ipo-inflate($HUGE); # Note that HUGE is not really a constant $ipo-sell($shares); # may need to use

Silly Question

2000-04-07 Thread Vijay
Hello, We recently bought a new Raq3 server. We have developed a script to add users directly from the web interface. IT is bombing out as the script should be run as 'root'. I want to know if the script can be set with setuid as root for execution. Thanks for any help. VIjay

Re: Silly Question

2000-04-07 Thread Eric L. Brine
I want to know if the script can be set with setuid as root for execution. Since you asked this on this list, I will assume the script is a mod_perl script. Unless the whole web server runs as root, I don't think the script can run as root. Here's what you can do instead. Have the mod_perl

may be an off topic question..

2000-04-06 Thread Niral Trivedi
All, I am not sure whether this is the right group to post this question.. I have found this thing in book "Writing Apache Modules with PERL and C" from O'Reilly.. This book has a topic in it in which it has given an example using a module called 'IPO::Shareable' which is available

Re: dumb beginner question

2000-04-04 Thread Jeff Beard
http://perl.apache.org/guide/performance.html#Persistent_DB_Connections The answers to most beginner questions are in the guide as well. --Jeff At 05:28 PM 4/4/00, Adam Gotheridge wrote: I have been using zope for a while and while it is cool, I really like the speed/power/ease-of-use of perl

Question about SendFile.pm from Eagle book

2000-02-12 Thread LSMPX
As a beginner in Mod_perl, I have to get the file from the remote host (Mod_perl enabled Apache) if not in the local host, so I am currently modifying SendFile.pm in Eagle book at unless(-e $r-finfo) { ... instead of giving the nonexistence error message here get the file from

Re: Question about SendFile.pm from Eagle book

2000-02-12 Thread Frank Wiles
On Sat, 12 Feb 2000 [EMAIL PROTECTED] wrote: As a beginner in Mod_perl, I have to get the file from the remote host (Mod_perl enabled Apache) if not in the local host, so I am currently modifying SendFile.pm in Eagle book at unless(-e $r-finfo) { ... instead of giving the

Re: modperl/MySQL question

2000-02-11 Thread Matt Carothers
On Tue, 8 Feb 2000, Terry G Lorber II wrote: DBD::mysql::st execute failed: MySQL server has gone away at slashmod.pm line 23 [...] Is this a server problem, a perl problem, or a MySQL problem? Do I need to adjust a timeout setting somewhere? Sounds like you need Apache::DBI. 1) Enable

mod_rewrite question..

2000-02-09 Thread Mick B
Hi - I'm probably posting this to the incorrect list (If there is a dedicated apache list would someone please point me in it's direction.) Here's my problem - I'm trying to grab the 'id' part of a url - e.g - www.somewhere.com/id and place the val. into an environment variable - which

Question about error log message and PERL_SSI

2000-02-06 Thread gnielson
I successfully installed mod_perl under Apache/1.3.6 (Unix). However, when attempting to run some Web pages I have that use #perl sub I get an error log message, "unknown directive 'perl' in parsed doc." I installed mod_perl right from CPAN and assumed that mean EVERYTHING=1 would be the default

Re: Question about error log message and PERL_SSI

2000-02-06 Thread Stas Bekman
I successfully installed mod_perl under Apache/1.3.6 (Unix). However, when attempting to run some Web pages I have that use #perl sub I get an error log message, "unknown directive 'perl' in parsed doc." I installed mod_perl right from CPAN and assumed that mean EVERYTHING=1 would be the

Re: Question about error log message and PERL_SSI

2000-02-06 Thread gnielson
Replies below: On Sun, 6 Feb 2000, Stas Bekman wrote: Date: Sun, 6 Feb 2000 23:20:49 +0200 (IST) From: Stas Bekman [EMAIL PROTECTED] To: gnielson [EMAIL PROTECTED] Cc: "ModPerl Mailing List (E-mail)" [EMAIL PROTECTED] Subject: Re: Question about error log message and PERL

Re: correction! Re: Question about error log message and PERL_SSI

2000-02-06 Thread Ask Bjoern Hansen
On Sun, 6 Feb 2000, Stas Bekman wrote: [...] EVERYTHING=1 should install PerlSSI as well. Configure perl-status to work (see 'perldoc Apache::Status') then do: http://localhost/perl-status?hooks to check the enabled hooks. Thanks for that information. That showed me that

How to update params with CPAN.PM question

2000-02-06 Thread gnielson
On Mon, 7 Feb 2000, Stas Bekman wrote: Date: Mon, 7 Feb 2000 00:01:56 +0200 (IST) From: Stas Bekman [EMAIL PROTECTED] To: gnielson [EMAIL PROTECTED] Cc: "ModPerl Mailing List (E-mail)" [EMAIL PROTECTED] Subject: Re: correction! Re: Question about error log message and PERL_SSI

Re: correction! Re: Question about error log message and PERL_SSI

2000-02-06 Thread Stas Bekman
correction! Re: Question about error log message and PERL_SSI Ooops, I was wrong, you need to use ALL_HOOKS=1 to enable all handlers or just PERL_SSI=1 for PerlSSI. (I thought EVERYTHING=1 installs it all :) So I guess I need to rebuild it manually, eh, with ALL_HOOKS=1?

Re: newbie question: extra Content-Type headers?

2000-02-05 Thread Wendell
On Fri, Feb 04, 2000 at 06:21:21PM -0800, John Darrow wrote: I apologize if this is a dumb question, but I just installed Apache and mod_perl and all seems to have gone well. The trouble comes in when I try to run a script using Apache::Registry and CGI.pm. I get an extra Content-Type

<    4   5   6   7   8   9   10   >