Perl Domination in CGI Programming?
http://slashdot.org/askslashdot/99/10/20/1246241.shtml
It seems to be a good candidate to be posted on perl.apache.org site, and
to send people to, when the next "is perl/mod_perl good for CGI and why?"
question hits the list.
It was nice to see the names of
G'day all,
I've been having similar problems to Michael Wright, building
mod_perl-1.21 on Linux 2.0.36 (Debian slink) with apache 1.3.9 and
perl 5.005_61.
I've been trying a static build ... in the final link of
httpd, two symbols (perl_eval_sv, perl_eval_pv) are used by
No. This is not true. If browser gets 401 in response to request with
user authentication then it pops up the dialog box. And only if user
clicks "Cancel" then it displays the Authentication failed document.
Only if you send 403 then browser will not prompt user for new user
name and password.
Randal,
This is a nice package, but I have some questions:
my $host = $r-get_remote_host;
return DECLINED if $host =~ /\.(holdit|stonehenge)\.com$/;
You have host name lookups turned on? That's not very performance friendly.
And you've just published how to get around your
Stas Bekman wrote:
[slashdot summary snipped]
Well, if the trend continues we ought to learn Java some day :)
Ha! Well they are going to have to make JServ operable at some point if
they want to replace Perl. Seriously, could they make their
configuration process more opaque? I went to the
I use HTML-Embperl-1.2b10:
How make $http_headers_out{'Location'} ,so as
A HREF="edit.html?[+ [%fdat] +]" redirect /A
I would try
$url = "http://$ENV{SERVER_NAME}/path/to/edit.html?" ;
while (($k, $v) = each (%fdat))
{
$url .= "$k=$v" ;
}
"MD" == Michael Douglass [EMAIL PROTECTED] writes:
MD Notice that if len HUGE_STRING_LEN; we REQUEST to write 'len' bytes,
MD but we only write 'sent' bytes. If 0 sent len; then we iterate
MD back over this while loop because len 0 after the len -= sent command.
MD On the next write,
That'll work but you'll end up with an extra ampersand on the end. Here map()
and join() are your friends:
[- $http_headers_out{'Location'} = q(edit.html?) . join('', map({$_=$fdat{$_}}
keys %fdat)) -]
On 03-Nov-99 Gerald Richter wrote:
I use HTML-Embperl-1.2b10:
How make
* Most CGI apps do text processing, where perl excels at
Well, if the trend continues we ought to learn Java some day :)
Java is magnificent, but VERY BURDENSOME when it comes to doing any kind
of text processing or designing tricky structures. There are plenty of
packages and tools
[EMAIL PROTECTED] writes:
Thanks Greg
I strongly suggest you move the images to a separate hostname
altogether. The
proxy is a good idea but there are other useful effects of
having a separate
server altogether that I plan to write about in a separate
message sometime.
This
I'm trying to update to 1.3.9+1.21 but I'm having various problems:
1) The makefile seems to try to run ../apaci even though perl is two levels
deep, so it can't find ../apaci, it would have to be ../../apaci
=== src/modules/perl
gcc -I. -I../../include -I../../include/regex
Hi from Paraguay. Did anyone wrote a chat client with mod_perl??? I am on
that project now, and it will be helpfull to read another source code.
Greetz and sorry for my poor english level.
Javier Viveros:
Hi from Paraguay. Did anyone wrote a chat client with mod_perl??? I am on
that project now, and it will be helpfull to read another source code.
Greetz and sorry for my poor english level.
I have written a chat server and client that works with modperl.I plan to
release it but
thanks Michael! I've committed your change to the cvs tree.
actually, Eric Cholet did, mine failed, cvs rocks. need more coffee.
cvs server: Up-to-date check failed for `Changes'
cvs server: Up-to-date check failed for `src/modules/perl/Apache.xs'
cvs [server aborted]: correct above errors
That'll work but you'll end up with an extra ampersand on the
end. Here map()
and join() are your friends:
[- $http_headers_out{'Location'} = q(edit.html?) . join('',
map({$_=$fdat{$_}}
keys %fdat)) -]
Yes, that's more elegant, but is it possible that you forgot a qq before
On 03-Nov-99 Gerald Richter wrote:
That'll work but you'll end up with an extra ampersand on the
end. Here map()
and join() are your friends:
[- $http_headers_out{'Location'} = q(edit.html?) . join('',
map({$_=$fdat{$_}}
keys %fdat)) -]
Yes, that's more elegant, but is it possible that
So I'm starting development on a project with multiple components which will
be talking to an Oracle 8 database, and I'm trying to understand what the
various options are.
The project will consist of HTML::Embperl pages, modperl CGIs, and random
Perl processes, all of which will connect to the
Hi all,
This is the first time I've tried build mod_perl, although I've compiled
Apache several times with no trouble. First of all I just want to use it
to speed up my CGI scripts, then to add footers and stuff like that.
Maybe I'll get into the fancier things later.
I'm using Apache 1.3.9
So I'm starting development on a project with multiple components
which will
be talking to an Oracle 8 database, and I'm trying to understand what the
various options are.
The project will consist of HTML::Embperl pages, modperl CGIs, and random
Perl processes, all of which will connect to
I'm assuming that Perl itself is reentrant, since it has been embedded
in multithreaded environments before (IIS). Hopefully someone can
comment on that.
Perl 5.005 has experimetal thread support, Perl 5.006 might be stable
enought to really use it.
What ActiveState has done for IIS, is to
Dear folks,
When I run a CGI program as such, hostname works. When I run it under
Aapche::Registry, it fails. Can anyone understand why? Sorry, I am
new to all this.
[error] Cannot get host name of local machine at
/home/httpd/dbi/frame_control.cgi line 13
use Sys::Hostname;
my $hostname
"C. Jon Larsen" wrote:
One of the main reasons I use mod_perl is because of the pre-fork caching
I can do in the parent that the children can share cheaply. I take huge
data structures and assemble them in ram as read-only databases (read
hash tables) that are much faster and simpler to
The URL
ftp://ftp.dev.ecos.de/pub/perl/embperl/HTML-Embperl-1.2b11.tar.gz
has entered CPAN as
file: $CPAN/authors/id/GRICHTER/HTML-Embperl-1.2b11.tar.gz
size: 255406 bytes
md5: ada4317a5ebcb2c8b3aa90ff446739b9
Embperl is a module for embedding Perl code in HTML pages. See
Dear folks,
I am installing and setting up a RH 6.1 system with (quoting
/var/log/httpd/error_log):
Apache/1.3.9 (Unix) mod_ssl/2.4.6 OpenSSL/0.9.4 mod_perl/1.21 configured
When I put use Apache::DBI (); into my startup.pl, or PerlModule
Apache::DBI into my perl.conf, then httpd stops with a
Jeffrey Baker [EMAIL PROTECTED] writes:
That's what the driver handle's ping method is for.
if (!$dbh-ping) { reconnect; }
I suppose I could do a ping before every page, but really that's only a kludgy
work-around. Really I would want to do this before every single query, and the
right way
25 matches
Mail list logo