Re: Can't solve the CGI/pm Can't call register_cleanup problem

2001-07-31 Thread Ron Savage
Fran See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html use CGI qw(-compile :all); There's a typo in the book. Chop '-compile'.

Fw: Size

2001-07-31 Thread John Buwa
- Original Message - From: John Buwa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 5:12 AM Subject: Re: Size Thanks, I went ahead and did this and it seems this did the job, my httpd is much smaller! Now i will just have to watch and see if it stays like

More stuff not working with conversion to modperl?

2001-07-31 Thread John Buwa
Hello, I am trying to finish up my scripts conversion to mod perl and here is a routine i truely do not undestand why it is not working. This is the same code that is running on both the modperl i am useing to port scripts and test and the live non-modperl apache, which works fine: This is

Re: mod_perl/DBI problem

2001-07-31 Thread Curtis Hawthorne
Even when using Apache::DBI, I still have the same problem - If it times out once, it won't try again. I set Apache::DBI::DEBUG = 2, and here's the log: When I first load the page and get the timeout: 197345 Apache::DBI need ping: yes 197345 Apache::DBI new connect to

Re: More stuff not working with conversion to modperl?

2001-07-31 Thread Ken Williams
Hi John, [EMAIL PROTECTED] (John Buwa) wrote: I am trying to finish up my scripts conversion to mod perl and here is a routine i truely do not undestand why it is not working. You really have to turn on 'use strict'. It looks like both $i and $line are undeclared variables. Also, why do you

RE: mod_perl/DBI problem

2001-07-31 Thread Geoffrey Young
-Original Message- From: Curtis Hawthorne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 10:47 AM To: [EMAIL PROTECTED] Subject: Re: mod_perl/DBI problem Even when using Apache::DBI, I still have the same problem - If it times out once, it won't try again. I set

CGI::Out and mod_perl

2001-07-31 Thread Mauricio Amorim
Anybody know if CGI::Out function with mod_perl ? I have an group of script that use CGI::Out, but with mod_perl, the out "string"; is not send to browser. Thank you.

Re: mod_perl/DBI problem

2001-07-31 Thread Curtis Hawthorne
That looks like that will do exactly what I need. I tried it my code and it caught the server timeout and wrote an error to the log file using $r-server-log_error, but when I try to do $r-child_terminate, I get this error: [Tue Jul 31 11:16:35 2001] [error] Can't locate object method

Re: note on wombat

2001-07-31 Thread brian moseley
hey, sorry i haven't replied before now. got all caught up in work stuff when i returned from the conference. you have a very good set of basic questions. i'm going to use them as the basis for an faq :) i'm leaving tomorrow for gencon (WOO!!), but i'll be back next week, and i have the whole

RE: mod_perl/DBI problem

2001-07-31 Thread Geoffrey Young
-Original Message- From: Curtis Hawthorne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 12:24 PM To: [EMAIL PROTECTED] Subject: Re: mod_perl/DBI problem That looks like that will do exactly what I need. I tried it my code and it caught the server timeout and

RE: mod_perl/DBI problem

2001-07-31 Thread Geoffrey Young
-Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 12:46 PM To: 'Curtis Hawthorne'; [EMAIL PROTECTED] Subject: RE: mod_perl/DBI problem yup, looks like mod_perl doesn't offer that to windows. well, I don't do windows, but maybe

CGI::Out

2001-07-31 Thread Mauricio Amorim
CGI::Out uses END block for print to stdout when the script finish. Exist any manner of use CGI::Out for have the results desired ? Thank you

Help needed with OO and mod_perl!

2001-07-31 Thread Bryan Coon
Hi, I am trying to convert some of my scripts into a more oo friendly style, and use them under mod_perl. For the very simple scripts below, when I run them through the browser I get the following errors: From my apache logs: [Tue Jul 31 11:25:18 2001] null: Attempt to free unreferenced scalar

Re: More stuff not working with conversion to modperl?

2001-07-31 Thread ryc
You might want to try declaring the file handles as LOCAL *myfile or whatever. You have to be very careful about making global variables with modperl since they have the benfit of sticking around after the web transaction is complete. ryan - Original Message - From: John Buwa [EMAIL

Buffering Output

2001-07-31 Thread Mauricio Amorim
Anybody know if exist some module how CGI::Out for buffering output in CGI script ? Thank you

Re: Buffering Output

2001-07-31 Thread Perrin Harkins
Anybody know if exist some module how CGI::Out for buffering output in CGI script ? Is there a reason you can't just append everything to a variable until the end? If that won't work, you can tie STDOUT. Apache::Filter might help. - Perrin

Re: mod_perl/DBI problem

2001-07-31 Thread Curtis Hawthorne
Well, that works perfectly, but doesn't do anything :-). As far as I can tell, because my database connection code is at the top of my module that the CGI script uses, the code is only run the first time that the script runs. If the connection times out and is caught by the eval code you

RE: mod_perl/DBI problem

2001-07-31 Thread Geoffrey Young
-Original Message- From: Curtis Hawthorne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:48 PM To: Geoffrey Young; [EMAIL PROTECTED] Subject: Re: mod_perl/DBI problem Well, that works perfectly, but doesn't do anything :-). As far as I can tell, because my

Re: mod_perl/DBI problem

2001-07-31 Thread Curtis Hawthorne
Well, I think the eval is working exactly as it should (or at least like perl thinks it should), in that it is evaluated the first time the module is loaded, because it is at the top, but after that it has no reason it run because the script is still running and it isn't in a subroutine that is

Apache::Reload???

2001-07-31 Thread Bryan Coon
I must have missed something in setting up Apache::Reload. What I want is simple that when I make a change in my scripts I dont have to restart the Apache server... I put PerlInitHandler Apache::Reload in my httpd.conf, and added 'use Apache::Reload' to the modules that I want to be reloaded on

Re: Buffering Output

2001-07-31 Thread raptor
Anybody know if exist some module how CGI::Out for buffering output in CGI script ? ]- The other approach if U don't want to append to var...then U can do something like this : my $buffer; sub xprint { $buffer .= @_ }; possibly U will want to move this code into separate module...!! then use

system()/exec() ?

2001-07-31 Thread Mauricio Amorim
Hi I see an discussion in April by Mike Austin, about utilization of exec and system commands with mod_perl. Anybody know if is possible to use system and exec commands, because i tried use it, but the scriptdon´t execute and apache display nothing in the logs/error_log thank you

Re: system()/exec() ?

2001-07-31 Thread Mauricio Amorim
I tried use Apache::SubProcess, i install Apache-SubProcess-0.02 and i change the script: use Apache qw(exit);use Apache::SubProcess qw(system exec);use CGI qw/:standard :html3/; + + + system("listarprograma.pl"); The following error is displayed in the Apache error_log : [Tue Jul 31

RE: Apache::Reload???

2001-07-31 Thread Kyle Oppenheim
Apache::Reload works by performing a stat on every file in %INC and calling require for all the files that changed. It's quite possible that some of the files in %INC are using relative paths (often '.' is in @INC). So, Perl was able to load the file originally because the initial 'use' or

Why can't Apache::Reload work 100% transparently?

2001-07-31 Thread Philip Mak
On Tue, 31 Jul 2001, Kyle Oppenheim wrote: Apache::Reload works by performing a stat on every file in %INC and calling require for all the files that changed. It's quite possible that some of the files in %INC are using relative paths (often '.' is in @INC). So, Perl was able to load the

RE: Apache::Reload???

2001-07-31 Thread Geoffrey Young
-Original Message- From: Kyle Oppenheim To: [EMAIL PROTECTED] Sent: 7/31/01 10:01 PM Subject: RE: Apache::Reload??? Apache::Reload works by performing a stat on every file in %INC and calling require for all the files that changed. It's quite possible that some of the files in %INC are

Re: Apache::Reload???

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Bryan Coon wrote: I must have missed something in setting up Apache::Reload. What I want is simple that when I make a change in my scripts I dont have to restart the Apache server... I put PerlInitHandler Apache::Reload in my httpd.conf, and added 'use Apache::Reload'

Re: Buffering Output

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, raptor wrote: Anybody know if exist some module how CGI::Out for buffering output in CGI script ? ]- The other approach if U don't want to append to var...then U can do something like this : my $buffer; sub xprint { $buffer .= @_ }; possibly U will want to move

Re: system()/exec() ?

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Mauricio Amorim wrote: I tried use Apache::SubProcess, i install Apache-SubProcess-0.02 and i change the script: http://perl.apache.org/guide/modules.html#Apache_SubProcess use Apache qw(exit); use Apache::SubProcess qw(system exec); use CGI qw/:standard :html3/; +

Re: system()/exec() ?

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Mauricio Amorim wrote: Hi I see an discussion in April by Mike Austin, about utilization of exec and system commands with mod_perl. Anybody know if is possible to use system and exec commands, because i tried use it, but the script don´t execute and apache

Re: Why can't Apache::Reload work 100% transparently?

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Philip Mak wrote: On Tue, 31 Jul 2001, Kyle Oppenheim wrote: Apache::Reload works by performing a stat on every file in %INC and calling require for all the files that changed. It's quite possible that some of the files in %INC are using relative paths (often '.' is

Re: Bug??

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Chris Rodgers wrote: Thanks for that. However, I've already seen this. The problem is that I'm requesting pages at: http://my.server.com/perl/blah.pl and also https://my.server.com/perl/blah.pl Now these should be different scripts, and Apache is set up with a

[ANNOUNCE] Perl Templating Guide, v 0.9

2001-07-31 Thread Perrin Harkins
http://perl.apache.org/features/tmpl-cmp.html The article Choosing a Templating System is now available at the above URL. This is the same material I presented at the O'Reilly conference, but a bit less rushed. It gives an overview of currently available templating tools and their basic

cvs commit: modperl-2.0/util xs_check.pl

2001-07-31 Thread dougm
dougm 01/07/31 18:45:59 Modified:util xs_check.pl Log: adjust @INC Revision ChangesPath 1.3 +1 -1 modperl-2.0/util/xs_check.pl Index: xs_check.pl === RCS file:

cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2001-07-31 Thread dougm
dougm 01/07/31 19:04:47 Modified:xs/tables/current/Apache ConstantsTable.pm FunctionTable.pm StructureTable.pm xs/tables/current/ModPerl FunctionTable.pm Log: sync Revision ChangesPath 1.11 +2 -1