Re: putting config vars in httpd.conf

2006-04-27 Thread Perrin Harkins
Jonathan Vanasco wrote: I'd like to flag whether my app is running on dev or prod with a variable that's in httpd.conf $My::App::DEV_MODE = 1; - Perrin

Re: putting config vars in httpd.conf

2006-04-27 Thread Geoffrey Young
>> I really thought PerlSetVar could be done at any phase of a request, >> but even if it can't, PerlSetEnv can... try using that and >> $ENV{DEBUG_MY_APP} or something. :-) > > > i did too, but according to the docs its accessible as part of a > request record, so env it is http://perl.ap

Re: putting config vars in httpd.conf

2006-04-27 Thread Jonathan Vanasco
On Apr 27, 2006, at 11:24 PM, Jonathan Vanasco wrote: Not a fan of that... but i the docs right next to is is PerlSetEnv. Thats cleaner. M(#*^&%, PerlSetEnv only works in dir/loc blocks sadly, the 'easiest' way seems to be me to do this: httpd.conf-dev require /webserver/sites/mp

Re: Progress bar for file uploads

2006-04-27 Thread Barry Hoggard
On Apr 27, 2006, at 10:09 AM, Perrin Harkins wrote: Martin Moss wrote: Does anybody know of a progress bar type class for file uploads? (apache 1) Apache::UploadMeter. The docs for this seems to suggest setting it up for a single form. Does it work OK with run-time configuration of those

Re: putting config vars in httpd.conf

2006-04-27 Thread Jonathan Vanasco
On Apr 27, 2006, at 9:33 PM, Philip M. Gollucci wrote: you could set an ENV var in a shell (the httpd's user's login shell) and then add PerlPassEnv VARNAME Not a fan of that... but i the docs right next to is is PerlSetEnv. Thats cleaner. On Apr 27, 2006, at 9:59 PM, Tyler MacDonald wro

Re: putting config vars in httpd.conf

2006-04-27 Thread Tyler MacDonald
Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > I'd like to flag whether my app is running on dev or prod with a > variable that's in httpd.conf > ( right now i manually toggle a var in a config file, and its driving > me nuts ) > > i wanted to use PerlSetVar, but that's read at request time

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Igor Chudov
On Thu, Apr 27, 2006 at 09:34:13AM -0700, Mark Moseley wrote: > > > > > > you could also just have apache::session update that column as well > > on the data store by overrideing the store mechanism > > > > > If you're using MySQL 4.1 or above for your db store, you can also use a > timestamp col

Re: putting config vars in httpd.conf

2006-04-27 Thread Philip M. Gollucci
you could set an ENV var in a shell (the httpd's user's login shell) and then add PerlPassEnv VARNAME to httpd.conf your code can then check it via $ENV{VARNAME} Of course you only need to do this if you've done PerlSetupEnv Off (1.3.x) or are under SetHandler modperl in (2.x) Otherwise you

putting config vars in httpd.conf

2006-04-27 Thread Jonathan Vanasco
I'd like to flag whether my app is running on dev or prod with a variable that's in httpd.conf ( right now i manually toggle a var in a config file, and its driving me nuts ) i wanted to use PerlSetVar, but that's read at request time - which won't work, as this needs to be read before a

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Mark Moseley
you could also just have apache::session update that column as wellon the data store by overrideing the store mechanism If you're using MySQL 4.1 or above for your db store, you can also use a timestamp column like:ts timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMPMySQL sho

Re: [mp2] symbol lookup error on Debian (testing)

2006-04-27 Thread John Plumbley
When I had that problem I found the answer at http://search.cpan.org/~joesuf/libapreq2-2.07/FAQ.pod which says: "Be sure your server config contains a line like: LoadModule apreq_module modules/mod_apreq2.so" --John.

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Jonathan Vanasco
On Apr 27, 2006, at 11:38 AM, Cees Hek wrote: You can have the database do all that for you using a trigger (if your database suports it). I have used PostgreSQL in the past to do the following: CREATE TABLE sessions ( id varchar(32) NOT NULL PRIMARY KEY, a_session text NOT NULL, lm t

Re: [mp2] symbol lookup error on Debian (testing)

2006-04-27 Thread Cees Hek
On 4/27/06, Garrison Hoffman <[EMAIL PROTECTED]> wrote: > Can anyone guide me in the right direction? > > I'm trying to run a recent mod_perl2 setup on Debian but I've run in to: > > /usr/sbin/apache2: symbol lookup error: > /usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: > undefined symbol: ap

RE: Apache::Session: can I have a "date" in session

2006-04-27 Thread Joe Breeden
Another solution would be to use a CleanUpHandler and execute the SQL to flush the old sessions then. The cleanup would happen and the users wouldn't notice the load (the cleanUpHandler is executed after the content is page content is sent to the user). -Original Message- From: Cees Hek [m

[mp2] symbol lookup error on Debian (testing)

2006-04-27 Thread Garrison Hoffman
Can anyone guide me in the right direction? I'm trying to run a recent mod_perl2 setup on Debian but I've run in to: /usr/sbin/apache2: symbol lookup error: /usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: undefined symbol: apreq_handle_apache2 I am using the following packages from Debian t

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Cees Hek
On 4/27/06, Igor Chudov <[EMAIL PROTECTED]> wrote: > I run algebra.com with a few thousand registered users and a lot more > unregistered. I use Apache::Session to store their session info. Right > now I clean sessions every month. I would like to be smarter and clean > sessions based on date infor

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Tyler MacDonald
Igor Chudov <[EMAIL PROTECTED]> wrote: > I run algebra.com with a few thousand registered users and a lot more > unregistered. I use Apache::Session to store their session info. Right > now I clean sessions every month. I would like to be smarter and clean > sessions based on date information (ie r

Apache::Session: can I have a "date" in session

2006-04-27 Thread Igor Chudov
I run algebra.com with a few thousand registered users and a lot more unregistered. I use Apache::Session to store their session info. Right now I clean sessions every month. I would like to be smarter and clean sessions based on date information (ie remove sessions that are more than 3 weeks old).

Re: Progress bar for file uploads

2006-04-27 Thread Mark Galbreath
http://hacks.oreilly.com/pub/h/943   google is your friend.   mark>>> Martin Moss <[EMAIL PROTECTED]> 27-Apr-06 09:00:09 AM >>> All,Does anybody know of a progress bar type class forfile uploads? (apache 1)Or, if there isn't one, available, what are the basicsteps needed to implement one? regards

Re: Progress bar for file uploads

2006-04-27 Thread Perrin Harkins
Martin Moss wrote: Does anybody know of a progress bar type class for file uploads? (apache 1) Apache::UploadMeter. - Perrin

Progress bar for file uploads

2006-04-27 Thread Martin Moss
All, Does anybody know of a progress bar type class for file uploads? (apache 1) Or, if there isn't one, available, what are the basic steps needed to implement one? regards Marty ___ To help you stay safe and secure o

Re: How many people use the Windows combo of Apache2 + mod_perl2 ?

2006-04-27 Thread RA Jones
Foo Ji-Haw wrote: I think to be a cross-platform MP2 developer, it is important to have a good feel of the underlying OS. I don't know what problems RA Jones had hit, but my suspicion is that most of them are os-centric, rather than implementation-centric. Good knowledge of the OS should help.

Re: How many people use the Windows combo of Apache2 + mod_perl2 ?

2006-04-27 Thread Foo Ji-Haw
I can give a brief account of my experiences with MP2 development on both Windows and non-Windows platforms. Generally, I choose to develop on the Windows environment for various reasons; most of them out of convenience and comfort. Coming primarily from a Windows environment (in terms of asso

Re: How many people use the Windows combo of Apache2 + mod_perl2 ?

2006-04-27 Thread RA Jones
Lionel MARTIN wrote: I think that I should better try with LAMP as well, but to be honest, I have never tried to install Linux. Well then, be prepared for a VERY long and hard uphill struggle. Be prepared to spend hours/days configuring things that install & configure in seconds/minutes under W