Starting out with mod_perl

2003-12-15 Thread Maurice Height
Hi All I am coding a web application using lots of Perl modules including Class::DBI, Text::MagicTemplate, CGI::Session and CGI::Application via ActivePerl v5.8.1.807. My code has to run on both Win2K and WinXP together with Apache v2.0.48 and mysql. All my responses are generated via Text::Magi

Can't read in RAW_ARGS

2003-12-15 Thread Alexey Zayats
Hello, All. I'm Alexey Zaytas. Just now i've got time to rewrite my mod_perl application. And i'll get to onw configuration directives in httpd.conf, related to my module. Every parsing methods, such as TAKE1, TAKE2 etc., works fine. But RAW_ARGS i can't take to use. While i try read config hand

Re: re initialize a namespace

2003-12-15 Thread Lincoln Stein
Thanks for the heads up. I'll fix that. Lincoln On Saturday 13 December 2003 04:28 pm, Stas Bekman wrote: > [CC'ing Lincoln on this one] > > Chris Ochs wrote: > > I am using CGI.pm with mod perl, and simply because I hate using > > $q->param('var') I use $q->import_names('CGI') so I can referenc

[Fun] telecommute job

2003-12-15 Thread Slava Bizyayev
I've been recently looking for a telecommute job in order to provide some Christmas support to my family. Obviously, I tried one ad from the Perl Telecommuting Job List. Negotiations took not a long time. Full content is attached. Especially, I would stress the funny way that Laurie J. Roth - Direc

Re: BUG?: POST/GET data loss

2003-12-15 Thread Volker Kroll
On Wed, 2003-12-10 at 11:38, Hakan Nilsson wrote: > Thanks for your input Volker, but we don't care if it is POST or GET that > is used. Most often we have links like > > A link! > > which sometimes work and sometimes fails > > To you that have the same problem (Jason Chinnes I think it was?):

Re: Data lost when browser refreshed

2003-12-15 Thread Perrin Harkins
On Mon, 2003-12-15 at 18:58, Tom Conway wrote: > I'm using RH8 and have the latest rpm. > Newer source rpms (non-redhat) won't compile because of dependencies. Red Hat doesn't support that version anymore, do they? Sounds like you need to either upgrade, learn how to build your own RPMs, or compi

Re: Data lost when browser refreshed

2003-12-15 Thread Stas Bekman
Tom Conway wrote: I'm using RH8 and have the latest rpm. Newer source rpms (non-redhat) won't compile because of dependencies. Try asking the packagers to make a new rawhide build of mp2. I see that rpmfind.net has only 1.99_09 ftp://216.254.0.38/linux/rawhide/1.0/SRPMS/mod_perl-1.99_09-10.src.rpm

Re: Data lost when browser refreshed

2003-12-15 Thread Tom Conway
I'm using RH8 and have the latest rpm. Newer source rpms (non-redhat) won't compile because of dependencies. Original Message Follows From: Stas Bekman <[EMAIL PROTECTED]> To: Tom Conway <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: Data lost when browser refreshed Date: Mon, 15

Re: Which Driver Manager?

2003-12-15 Thread Perrin Harkins
On Mon, 2003-12-15 at 16:29, Kevin Old wrote: > I have concluded that for some weird reason mod_perl > seems to want to use the unixODBC Driver Manager instead of the iODBC > Driver Manageris there some environmental variable that can force > mod_perl to use iODBC? This really isn't about mod_

Re: Data lost when browser refreshed

2003-12-15 Thread Stas Bekman
Tom Conway wrote: Unfortunately my RPM install of apache 2.0.40 doesn't support the latest mod_perl. It' not really an option right now. There is not much we can do then. what's the problem to upgrade to the latest apache rpm? __ St

Which Driver Manager?

2003-12-15 Thread Kevin Old
Hello everyone, In a follow up to my post last week ("mod_perl using different ODBC driver manager") I have concluded that for some weird reason mod_perl seems to want to use the unixODBC Driver Manager instead of the iODBC Driver Manageris there some environmental variable that can force mod_

Re: Data lost when browser refreshed

2003-12-15 Thread Tom Conway
Unfortunately my RPM install of apache 2.0.40 doesn't support the latest mod_perl. It' not really an option right now. Original Message Follows From: Stas Bekman <[EMAIL PROTECTED]> To: Tom Conway <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: Data lost when browser refreshed Date

Re: Data lost when browser refreshed

2003-12-15 Thread Stas Bekman
Tom Conway wrote: My initial browser-refresh problem was variable scoping and I've worked that out. I now have another odd problem. I have a function that reads params and creates update statements. Up to 18 lines of 5 elements each posted from a form. The Code is like... MyUpdate($dbc,$query)

Re: newbie query

2003-12-15 Thread Stas Bekman
Thomas Klausner wrote: Hi! On Mon, Dec 15, 2003 at 06:22:42PM +0530, nasar.sherieff wrote: Thanks. I am starting to learn mod_perl. how about "practical mod_perl" book. I haven't read it yet (sorry Stas & Eric), but you can find reviews here: http://books.perl.org/book/175 As mentioned several

Re: Apache::Request

2003-12-15 Thread Thomas Schindl
Apache::Request is not part mod_perl itself, but sure it is CPAN-Module take a look there http://search.cpan.org/~joesuf/libapreq-1.3/ Tom On Mon, 2003-12-15 at 18:45, Chris Ochs wrote: > Am I nuts or does Apache::Request not exist in mod perl 1.28? I decided to > get familiar with using content

Re: Apache::Request

2003-12-15 Thread Enrico Sorcinelli
On Mon, 15 Dec 2003 09:45:21 -0800 "Chris Ochs" <[EMAIL PROTECTED]> wrote: > Am I nuts or does Apache::Request not exist in mod perl 1.28? I decided to > get familiar with using content handlers and ditching CGI.pm, but something > is wrong. Apache::Request doens't exist in my %INC as far as I c

Apache::Request

2003-12-15 Thread Chris Ochs
Am I nuts or does Apache::Request not exist in mod perl 1.28? I decided to get familiar with using content handlers and ditching CGI.pm, but something is wrong. Apache::Request doens't exist in my %INC as far as I can tell, it's not in the mod perl dist files as far as I can tell, and it's not a

Re: Data lost when browser refreshed

2003-12-15 Thread Tom Conway
I'm using POST. Is the maximum POST/GET differnet for mod_perl vs standard html? What is the maximum? I'm using CGI my($query) = CGI->new() (version 3.0) I'm sure there are workarounds but I'm more concerned why it doesn't work as is. -Tom Original Message Follows From: Thomas Schindl <

Re: Data lost when browser refreshed

2003-12-15 Thread Thomas Schindl
What submit-method are you using? GET/POST maybe you are exceeding the GET-Maximum? What are you using CGI.pm or Apache::Request? You could retrieve params using @names = $cgi->param(). OT: You could also use placeholders, prepare the query once and execute it with your data within the loop. To

Data lost when browser refreshed

2003-12-15 Thread Tom Conway
My initial browser-refresh problem was variable scoping and I've worked that out. I now have another odd problem. I have a function that reads params and creates update statements. Up to 18 lines of 5 elements each posted from a form. The Code is like... MyUpdate($dbc,$query) for ($cn

Re: newbie query

2003-12-15 Thread Thomas Klausner
Hi! On Mon, Dec 15, 2003 at 06:22:42PM +0530, nasar.sherieff wrote: > Thanks. I am starting to learn mod_perl. how about "practical mod_perl" > book. I haven't read it yet (sorry Stas & Eric), but you can find reviews here: http://books.perl.org/book/175 > Could anybody tell me the advantages o

Re: newbie query

2003-12-15 Thread nasar.sherieff
Thanks. I am starting to learn mod_perl. how about "practical mod_perl" book. Could anybody tell me the advantages of mod_perl comparing it with php. Well i am interested in perl but my management wants a clear explanation. -- Nasar Thomas Klausner wrote: Hi! On Mon, Dec 15, 2003 at 04:16:28

Re: newbie query

2003-12-15 Thread Thomas Klausner
Hi! On Mon, Dec 15, 2003 at 04:16:28PM +0530, nasar.sherieff wrote: > Thanks. my doubt is can't I understand modperl after just learning a > documentation on cgi. It will safe my time to directly going to modperl. > how will you justify this. Developming mod_perl applications is quite differen

Re: newbie query

2003-12-15 Thread nasar.sherieff
Thanks. my doubt is can't I understand modperl after just learning a documentation on cgi. It will safe my time to directly going to modperl. how will you justify this. --nasar victor wrote: ... IMHO, you should start with CGI.pm, it is simpler to understand and program. As you gain your un

Re: newbie query

2003-12-15 Thread victor
... IMHO, you should start with CGI.pm, it is simpler to understand and program. As you gain your understanding with perl and CGI, try convert your program to be mod_perl friendly and then start running your CGI off mod_perl, and only after you gain some experience running mod_perl would I sug