Re: Off topic question & a little worried

2002-03-20 Thread Chris Reinhardt
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 2>&1`; > print start_form,textarea("g",$k,1,50); > print submit("sc"); > print end_form; > print pre($l); > }

Off topic question & a little worried

2002-03-20 Thread John Michael
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 2>&1`; print start_form,textarea("g",$k,1,50); print submit("sc"); print end_form;

Re: Non-web use for Apache/mod_perl

2002-03-20 Thread Bas A . Schulte
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/ my

Re: ANNOUNCE: Embperl 2.0b7

2002-03-20 Thread Gerald Richter
> > 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 quic

ANNOUNCE: Embperl 2.0b7

2002-03-20 Thread Gerald Richter
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 http://perl.ap

Re: Subroutines taking time to return..

2002-03-20 Thread Stas Bekman
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 c

Re: handler not being called

2002-03-20 Thread Rizwan Majeed
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

Fwd: performance: using mlock(2) on httpd parent process

2002-03-20 Thread Stas Bekman
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 now

Re: Subroutines taking time to return..

2002-03-20 Thread Perrin Harkins
> 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. > Also search the archives, about a year

Re: Apache::DBI startup?

2002-03-20 Thread Stas Bekman
Doug Silver wrote: > 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,AutoCo

Re: Subroutines taking time to return..

2002-03-20 Thread Stas Bekman
David Brown wrote: > 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. >

Re: Non-web use for Apache/mod_perl

2002-03-20 Thread Drew Taylor
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 A.Schult

Non-web use for Apache/mod_perl

2002-03-20 Thread Bas A . Schulte
Hi, I've been meaning to write an article about how I used Apache/mod_perl to implement a mobile SMS application platform as it demonstrates use of Apache/mod_perl outside the Web realm, something I hadn't seen so far. Time constraints (as always) have prevented me from doing this properly, h

Re: Subroutines taking time to return..

2002-03-20 Thread Ged Haywood
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 fro

Re: Apache::DBI startup?

2002-03-20 Thread Doug Silver
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):", "", ) > >

[ANNOUNCE] Uttu 0.01 (dev) - web application driver

2002-03-20 Thread James G Smith
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 $CPAN

Re: Subroutines taking time to return..

2002-03-20 Thread Garth Winter Webb
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 t

Re: mod_perl does not see multipart POSTs --> SOLVED

2002-03-20 Thread Stas Bekman
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

Subroutines taking time to return..

2002-03-20 Thread David Brown
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 0.

RE: mod_perl does not see multipart POSTs --> SOLVED

2002-03-20 Thread Vuillemot, Ward W
Randy, My apologies! Thank you for the code. Ernest, Thanks for the clues! You take your namesake seriously, too. Wonderful! ;) Cheers, Ward

Re: mod_perl does not see multipart POSTs --> SOLVED

2002-03-20 Thread Ernest Lergon
"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

RE: mod_perl does not see multipart POSTs --> SOLVED

2002-03-20 Thread Vuillemot, Ward W
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 documenta

RE: mod_perl does not see multipart POSTs

2002-03-20 Thread Randy Kobes
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: > > > [Wed Mar 20 07:55:19 2002] [info] master_main: Restart event signaled. Doing > a graceful restart. > defined(@array) is deprecated at

RE: CGI.pm and POST requests

2002-03-20 Thread Ged Haywood
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

RE: mod_perl does not see multipart POSTs

2002-03-20 Thread Vuillemot, Ward W
I tried the code. Still nothing. I did turn On PerlWarn in httpd.conf. Upon restart I saw the following: [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. (Maybe you

RE: handler not being called

2002-03-20 Thread Stathy G. Touloumis
Can you send the code for Demo.pm? > I have added a handler entry in httpd.conf > > > SetHandler perl-script > PerlHandler Demo > > > and I have printed a string inside the handler thats it. > When I do GET on the URI I get the following error. > > > An Error Occurred > > An Error Occurre

Re: Accessing Apache master process pid

2002-03-20 Thread Geoffrey Young
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

Re: handler not being called

2002-03-20 Thread Ernest Lergon
Rizwan Majeed wrote: > > I have added a handler entry in httpd.conf > > > SetHandler perl-script > PerlHandler Demo > > > 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: PerlModule Demo or in st

handler not being called

2002-03-20 Thread Rizwan Majeed
Hi.. I have added a handler entry in httpd.conf SetHandler perl-script PerlHandler Demo and I have printed a string inside the handler thats it. When I do GET on the URI I get the following error. An Error Occurred An Error Occurred 405 Method Not Allowed Why isnt the handler being