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'.
- 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
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
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
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
-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
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.
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
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
-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
-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 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
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
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
Anybody know if exist some
module how CGI::Out for buffering output in CGI script ?
Thank
you
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
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
-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
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
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
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
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
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
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
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
-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
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'
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
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/;
+
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
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
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
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
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:
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
35 matches
Mail list logo