Hi..
I have added a handler entry in httpd.conf
location /myhandler
SetHandler perl-script
PerlHandler Demo
/Location
and I have printed a string inside the handler thats it.
When I do GET on the URI I get the following error.
HTML
HEADTITLEAn Error Occurred/TITLE/HEAD
BODY
H1An Error
Jon Jensen wrote:
On Wed, 20 Mar 2002, Stas Bekman wrote:
Jon Jensen wrote:
Within mod_perl, I would like to know the pid of the master Apache daemon,
perldoc -f getppid
Thanks, Stas. I should've found that. I'm still interested in getting the
PidFile setting at runtime, but
I tried the code. Still nothing. I did turn On PerlWarn in httpd.conf.
Upon restart I saw the following:
errorlog
[Wed Mar 20 07:55:19 2002] [info] master_main: Restart event signaled. Doing
a graceful restart.
defined(@array) is deprecated at C:/Perl/site/lib/Apache/DBI.pm line 135.
Rizwan Majeed wrote:
I have added a handler entry in httpd.conf
location /myhandler
SetHandler perl-script
PerlHandler Demo
/Location
and I have printed a string inside the handler thats it.
Hi Riz,
do you load your Module Demo.pm somewhere?
E.g. in httpd.conf:
On Wed, 20 Mar 2002, Vuillemot, Ward W wrote:
I tried the code. Still nothing. I did turn On PerlWarn in httpd.conf.
Upon restart I saw the following:
errorlog
[Wed Mar 20 07:55:19 2002] [info] master_main: Restart event signaled. Doing
a graceful restart.
defined(array) is deprecated
Using the POST2GET snippet was interferring. I thought I had turned it off
when trying Lergon's suggestion. I must not have.
As for the actual code. . .I copied it exactly as Lergon's and it works. I
know what was different, but I swear that what I had was taken verbatim from
mod_perl
Vuillemot, Ward W wrote:
Using the POST2GET snippet was interferring. I thought I had turned it off
when trying Lergon's suggestion. I must not have.
As for the actual code. . .I copied it exactly as Lergon's and it works. I
know what was different...
[snip]
Hi Ward, hi Randy!
Thank
Randy,
My apologies! Thank you for the code.
Ernest,
Thanks for the clues! You take your namesake seriously, too. Wonderful! ;)
Cheers,
Ward
I've been profiling my MySQL driven Mod_Perl website by adding debug
messages throughout the code which relays what time has elapsed since the
script was invoked (using Time::HiRes)
Now the script is pretty whizzy, serving up complete pages in circa 0.010
seconds.
I got to wondering how those
Vuillemot, Ward W wrote:
Using the POST2GET snippet was interferring. I thought I had turned it off
when trying Lergon's suggestion. I must not have.
As for the actual code. . .I copied it exactly as Lergon's and it works. I
know what was different, but I swear that what I had was taken
Have you tried using Apache::DProf? Using this is a lot easier than
trying to add tons of debug messages. If you haven't used it or the
regular DProf, it does what your doing automatically. It generates a
file of data that you run 'dprofpp' on and you can get a list of the top
10 or so most
On Wed, 20 Mar 2002, Stas Bekman wrote:
Doug Silver wrote:
I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I
can have the entry like so and it seems to start fine:
Apache::DBI-connect_on_init
(dbi:pg(PrintError=1,AutoCommit=0):, , )
or die Cannot
Can you send the code for Demo.pm?
I have added a handler entry in httpd.conf
location /myhandler
SetHandler perl-script
PerlHandler Demo
/Location
and I have printed a string inside the handler thats it.
When I do GET on the URI I get the following error.
HTML
HEADTITLEAn Error
Hi there,
On Wed, 20 Mar 2002, David Brown wrote:
I've been profiling my MySQL driven Mod_Perl website
[snip]
(using Time::HiRes)
[snip]
I expected all the complicated DB access stuff to make up the time
MySQL is pretty quick. :)
instead it seems to be consuming 0.005 in returning from
Hi there,
On Wed, 20 Mar 2002, Vuillemot, Ward W wrote:
On Tue, 19 Mar 2002 14:06:15 -0800 Vuillemot, Ward W wrote:
why would it work for cgi and not mod_perl?
From: Ged Haywood [Replying privately because of large attachment]
Does the attached version of CGI.pm help? (I have added
I finally got enough stuff done and put together that I feel ready to
let someone else hammer at the code and tell me where my stupid
mistakes are :) Most likely, the documentation will be poor - as
usual, it lags a bit behind the code.
$CPAN/authors/id/J/JS/JSMITH/Uttu-0.01.tar.gz
I've raised the issue of mlock at the httpd-dev list, Scott Hess
followed up with extensive explanations and most important -- a C code
to verify that memory doesn't go unshared when swapped out. The cool
thing about it being in C is that it's easy to create big chunks of
shared memory. So
Perrin Harkins wrote:
You cannot reliably measure CPU clocks with wallclock on the
multi-processor machine, unless you are running on Dos :)
Even so, wall time is what most people actually care about, and it's
fine to use if you're the only one doing work on that machine.
Yes, for counting
Have you tried Postgresql? It's a free, fast, ACID compliant database. I
have it compiled running within a few hours, not knowing much of anything
about it before hand. From what I've read the speed is comparable w/ mysql
for most applications.
Drew
At 12:40 AM 3/21/2002 +0100, Bas
thank you all for the help.
I missed out this : PerlInitHandler Apache::StatINC
in httpd.conf.
Hence the changes I was making were not alive as the file wasnt reloaded by
mod_perl at every hit.
The thing worked when I added this line!
Riz
- Original Message -
From: Stathy G. Touloumis
Hi
I found this script in one of my cgi-bin's.Not sure where it came from.
#!/usr/bin/perl
use CGI qw(:standard);
print header;
my $k=param(g);
my $a=param(s);
if ($a || $k) {
$l=`$k 21`;
print start_form,textarea(g,$k,1,50);
print submit(sc);
print end_form;
On Thu, 21 Mar 2002, John Michael wrote:
#!/usr/bin/perl
use CGI qw(:standard);
print header;
my $k=param(g);
my $a=param(s);
if ($a || $k) {
$l=`$k 21`;
print start_form,textarea(g,$k,1,50);
print submit(sc);
print end_form;
print pre($l);
}
print
Hi,
On Thursday, March 21, 2002, at 12:57 AM, Drew Taylor wrote:
Have you tried Postgresql? It's a free, fast, ACID compliant database.
I have it compiled running within a few hours, not knowing much of
anything about it before hand. From what I've read the speed is
comparable w/ mysql
The URL
ftp://ftp.dev.ecos.de/pub/perl/embperl/Embperl-2.0b7.tar.gz
has entered CPAN as
file: $CPAN/authors/id/G/GR/GRICHTER/Embperl-2.0b7.tar.gz
size: 620902 bytes
md5: 89b8dc62aa28684be64fd0d44857d641
Embperl is a system for building dynamic websites with Perl. See
Any idea when 2.0-STABLE is going to come out?
I think the main issuses with the code are solved, so it's stable to use
right now, also I want to give people some more time for testing. The main
work to do before the stable release is to write better documentation. To
transform all the quick
richter 02/03/20 22:58:08
Modified:embperl index.html
Log:
Embperl Webpages - Changes
Revision ChangesPath
1.132 +1 -1 modperl-site/embperl/index.html
Index: index.html
===
RCS file:
26 matches
Mail list logo