Should i lock DB_File for read-only access?

2001-10-30 Thread Dmitry E. Dmitriev
Hi ALL! Should i still lock my dbm files accessed from cgi under mod_perl if i need only read from them? Not my program nor any others never will write to this files. I have a problem with code: use DB_File; use strict; my %fields; my $fieldsdb='/path/to/db_file'; some code there

RE: [OT] P3P policies and IE 6 (something to be aware of)

2001-10-30 Thread Geoffrey Young
Here's how you set up a compact P3P policy under mod_perl: #This policy will make IE6 accept your cookies as a third party, but you should generate # your own policy using one of the apps at the W3C site. my $p3p_compact_policy = CP=\ALL DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa

Re: Should i lock DB_File for read-only access?

2001-10-30 Thread Stas Bekman
Dmitry E. Dmitriev wrote: Hi ALL! Should i still lock my dbm files accessed from cgi under mod_perl if i need only read from them? Not my program nor any others never will write to this files. Nope, you don't have to. In any case the used lock (flock) is usually advisory, which means

CGI.pm problem

2001-10-30 Thread Viljo Marrandi
Hello, When I try to make a CGI object in my Apache/mod_perl handler a la $q = CGI-new(); The server just don't reply. Actually it works just fine until I try to submit a form, then it just hangs and Apache doesn't send anything back. If I remove this object creation line, then I can submit my

Apache::Compress - any caveats?

2001-10-30 Thread Igor Sysoev
I had developed Apache module mod_deflate that allow to gzip or deflate content: ftp://ftp.lexa.ru/pub/apache-rus/contrib/mod_deflate-1.0.7.tar.gz This module tested at one of the loaded Russian sites - www.rambler.ru and several other small Russian sites. Documentation in Russion only but

Re: Should i lock DB_File for read-only access?

2001-10-30 Thread Perrin Harkins
If i run this code from command line or under mod_cgi, it work fine. But if it run repeatedly under mod_perl, it occasionally give me a database access timeout message (see code above), but error value $! still empty. What return value are you getting from tie? Incidentally, since this is

Re: Exporting C++ class to Perl?

2001-10-30 Thread Steven Lembark
-- Vlad Safronov [EMAIL PROTECTED] Hi, How can I export C++ class and its interface to Perl? Is it just like exporting simple C function to Perl (in perlxs doc. example)? Is there good (not big) CPAN examples for this problem? perl -MCPAN -e shell; get Inline -- Steven Lembark

Persistant Data shared with other applications

2001-10-30 Thread Kenny Smith
Hi there, I'm seeing a strange bit of behavior and wanted to find out if anyone else is having this problem. I have two scripts, index.mod_perl and grapevine.mod_perl. They both use HTML::Template to generate their output. The template is not persistant between requests, but $main::tokens is

Re: Exporting C++ class to Perl?

2001-10-30 Thread Toni Andjelkovic
Vlad Safronov wrote on Tue, Oct 30 2001 (19:26:40 +0300): How can I export C++ class and its interface to Perl? http://www.johnkeiser.com/perl-xs-c++.html cu, -- Toni Andjelkovic [EMAIL PROTECTED]

Re: Apache 1.3.22 and modperl 1.26.

2001-10-30 Thread Steve Piner
Brad Dameron wrote: I installed mod perl and php 4 into along with apache 1.3.22. When I add the following: Directory /web/htdocs/freeside Files ~ (\.cgi) AddHandler perl-script .cgi PerlHandler HTML::Mason /Files Perl require /var/conf/apache/handler.pl; /Perl /Directory and

Re: PerlModule not updating %INC

2001-10-30 Thread David Pisoni
I'm still having this problem, and I've discovered that it is also happening on my darwin box. This is enough to lead me to believe the problem is bona fide. To recap: problem occurs on : Darwin (MacOS X) Perl 5.6.0 / Apache 1.3.20 / mod_perl 1.26 Red-Hat Linux (7.1) Perl 5.6.0

Re: CGI.pm problem

2001-10-30 Thread Cees Hek
On Wed, 31 Oct 2001 02:31, you wrote: Hello, When I try to make a CGI object in my Apache/mod_perl handler a la $q = CGI-new(); The server just don't reply. Actually it works just fine until I try to submit a form, then it just hangs and Apache doesn't send anything back. If I remove this