Re: Apache problem

2001-05-31 Thread Alexander Farber (EED)

 When I start code from command line it works perfectly on the both computers.

 Any ideas?

   open TEST, c:/gateway/rus/17.shtml;

open TEST, c:/gateway/rus/17.shtml or 
   die Can't read 17.shtml because of $!;



[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)

Cornelius Kuschnereit wrote:
 opendir( DIR, $directory );

opendir( DIR, $directory ) or die "Can't read $directory because of $!";



[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)

Cornelius Kuschnereit wrote:
 @dirs = readdir( DIR );

 foreach $dir (sort @dirs) {

next unless -d "directory/$dir";

   print "file: $dir\n";
 }



Re: [OT] ApacheCon BOF

2001-03-21 Thread Alexander Farber (EED)

Bakki Kudva wrote:
 Just look at the sports teams. You couldn't have a team called the
 Washington Kikes or the Washington Micks. But yet you can have the
 Washington Redskins and this Indian with a big nose and big lips running
 around. How would you feel if it was the Washington Rabbis and you had a
 guy with braids running around throwing bagels?

Hey, that would be very funny! And I'm jewish.

Guys, relax - I don't believe, that using feathers and/or Apache 
is offending anyone, esp. because it's a nice piece of software.



Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Alexander Farber (EED)

Paul wrote:
 --- Robert Landrum [EMAIL PROTECTED] wrote:
  I could be wrong, but as I recall, when your program enters a scope,
  perl immediatly identifies the the scratchpad to use.  Then, it need
  only search backwards up the tree of scratchpads to find the variable
  "$x", which is faster than iterating through the STHASH looking for a
  localized or global $x.
 
 But how does it locate x in the scratchpad? Where're the docs?
 Or am I gonna have to read the code? =lol!

Chapter 20 in "Advanced Perl programming"



Re: mod_perl shared memory with MM

2001-03-05 Thread Alexander Farber (EED)

Adi Fairbank wrote:
 Yeah, I was thinking about something like that at first, but I've never played
 with named pipes, and it didn't sound too safe after reading the perlipc man
 page.  What do you use, Perl open() calls, IPC::Open2/3, IPC::ChildSafe, or

IPC:ChildSafe is a good module, I use it here to access ClearCase, but 
it probably won't help you to exchange any data between Apache children



Re: Rotating Apache logs

2001-02-22 Thread Alexander Farber (EED)

Terry Newnham wrote:
 I've found out how to edit httpd.conf so that it will rotate the error
 and access logs. But you have to restart apache to read that which I'd
 rather not do. Is there a command-line use or the rotatelogs by means of
 which you can rotate the logs on the fly ?

On log rotation see http://www.modperl.com/perl_conference/



Re: DBI + MSsql Server

2001-02-05 Thread Alexander Farber (EED)

[EMAIL PROTECTED] wrote:
 Does any body have an idea how to access MSsql server using DBI or
 other method.
 I've to build an application and I don't want to go to IIS so is
 there any way to work with Apache+Modperl in gnu-Linux and querying
 a NT box running MSsql.

http://www.xray.mpe.mpg.de/mailing-lists/dbi/2001-01/msg00311.html



[OT] gdb and httpd (mod_perl, PHP)

2001-01-24 Thread Alexander Farber (EED)

Hi,

I have a bit offtopic question: we have a problem enabling 
the PHP safe mode under Solaris 2.6 even though it works
under Linux. This must be something very simple: everything
works fine, but the uid for files is always 1 under Solaris...

I tried looking into the source code, but haven't found the
reason yet. I would like to step through the source code
using the gdb. So I have recompiled the httpd like this:

cd ~/src/mod_perl-1.24_01/
perl Makefile.PL APACHE_SRC=/home/eedalf/src/apache_1.3.14 \
 APACHE_PREFIX=/home/eedalf/apache PREFIX=/home/eedalf \
 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 PERL_DEBUG=1
make
make test (worked fine)
make install

Then I go to:

cd ~/apache/bin
gdb ./httpd
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...(no debugging symbols found)...
(gdb) source /home/eedalf/src/mod_perl-1.24_01/.gdbinit 
(gdb) set args -X
(gdb) list
No symbol table is loaded.  Use the "file" command.
(gdb) file ./httpd
Reading symbols from ./httpd...(no debugging symbols found)...done.

I know that PHP is not compiled in yet... I wanted to try executing
"httpd -X" step by step first - just to see if it works. What am I
doing wrong? Doesn't PERL_DEBUG=1 add the debugging symbols?

Thank you
Alex



Re: [OT] gdb and httpd (mod_perl, PHP)

2001-01-24 Thread Alexander Farber (EED)

Sorry! It was a FAQ from

http://perl.apache.org/guide/debug.html#gdb_says_there_are_no_debugging_

However I couldn't find

   IFLAGS_PROGRAM  = -m 755 -s

or just " -s" anywhere in ~/src/apache_1.3.14/Makefile.tmpl so I had to 
edit the Makefile. (Stas, don't you want to correct The Guide on this?)

Regards
Alex



Re: RegExp Parser with mod_perl

2001-01-23 Thread Alexander Farber (EED)

Andres Pedrera wrote:
 I need to make a file based parser that rightly run with mod_perl (think
 it's a generic perl trouble, but I want ensure it works with mod_perl). What
 I really need, is a parser which get parsing rules from an external file.

Parse::RecDescent maybe - it is very powerful (though slow)

 Additionally, it have not just to parse and inform, but replace parts of the
 source text with new contents (using external parsing rules, of course).
 Somebody knows something to do this?.



Re: Installing mod_perl-1.24_01 w/o super user and with global perl

2001-01-10 Thread Alexander Farber (EED)

John D Groenveld wrote:
  No, I know how to use the modules in my home dir well enough.
 
 I don't see where you set PREFIX=/home/eedalf/lib/perl per perlfaq8. Are
 you sure you read it?

John, you are very correct - thanks! I was in fact missing the PREFIX.

perl Makefile.PL APACHE_PREFIX=/home/eedalf/apache PREFIX=/home/eedalf \
APACHE_SRC=/home/eedalf/src/apache_1.3.14 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

has installed everything cleanly into my home dir.

Regards
Alex

PS: The "make test" failed however on Solaris 2.6:

[...skipped...]

=== src
cp t/conf/mod_perl_srm.conf t/conf/srm.conf
../apache_1.3.14/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t 
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/opt/local/perl-5.6.0/bin/perl t/TEST 0
modules/actions.ok   
modules/cgi.ok   
modules/constants...ok   
modules/cookie..ok   
modules/fileok   
modules/httpdconf...ok   
modules/include.ok   
modules/log.ok   
modules/module..skipped test on this platform
modules/perlrun.ok   
modules/psections...ok   
modules/request.ok   
modules/src.ok   
modules/ssi.ok   
modules/status..Internal Server Error
modules/status..dubious  
Test returned status 9 (wstat 2304, 0x900)
DIED. FAILED tests 8-10
Failed 3/10 tests, 70.00% okay

[...skipped...]

internal/taint..ok   
Failed Test  Status Wstat Total Fail  Failed  List of failed
---
modules/status.   9  2304103  30.00%  8-10
2 tests skipped.
httpd terminated
Failed 1/34 test scripts, 97.06% okay. 5/436 subtests failed, 98.85% okay.
*** Error code 29
make: Fatal error: Command failed for target `run_tests'

But maybe just some module was missing... That's a bit
strange, because I have Devel::Symdump installed in my 
home (and PERL5LIB points to it):

perl -M'Devel::Symdump' -e 1



Apache::DBI and deleting temporary tables (Sybase ASE)

2001-01-10 Thread Alexander Farber (EED)

Hi,

I have read
http://perl.apache.org/guide/debug.html#Handling_the_User_pressed_Stop_
but still don't know the best solution for my problem:

I would like to port a bigger CGI-script to mod_perl.
This script uses DBD::Sybase and creates few temporary
tables (#temp1, #temp2) which are filled with some data,
manipulated and finally read out with a join. These
temporary tables are deleted automatically when the 
database connection is closed. However if I move from 
DBI to Apache::DBI, the connection won't be closed and 
the temporary tables will stay.

So what is the best way to handle it? I could add

  drop table #temp1
  drop table #temp2

to the SQL statements of my script, but what happens if
the user presses STOP or the script times out? Should I
move this SQL-code to $r-register_cleanup()? Isn't it
too much for this handler and will it always be executed? 

Or is it possible to use transactions/$dbh-commit somehow?

Also offtopic question: is it possible in Transact-SQL to
check if a table #temp1 exists already?

Regards
Alex



Re: Apache::Registry newbie question -- CGI state

2001-01-10 Thread Alexander Farber (EED)

Geoffrey Young wrote:
  #!/usr/bin/perl
  # file: hello.cgi
  use CGI qw(:standard);
  use strict;
 
 I don't ever user CGI.pm, but aren't you forgetting to create a new CGI
 object in here?
 
  my $name = param('name') || 'Anonymous';

Geoff, I have another question: if you don't use 
CGI.pm, how do you generate the web form elements? 
Just "print qq{INPUT TYPE="text" ...}" or are
there some nicer tricks?



Re: Installing mod_perl-1.24_01 w/o super user and with global perl

2001-01-04 Thread Alexander Farber (EED)

Ian Kallen wrote:
 
 If I were you, I'd install my own perl in /home/eedalf, create
 /home/eedlf/apache and then do (assuming ~/bin/perl is before
 /opt/local/bin/perl in your path) something like:

Thanks, that's how I had it before - with Perl 5.6.0, Apache 
1.1.3 and mod_perl 1.24 in my home dir. However this tyme I'd 
like to use the system-wide Perl - because of my disk quota.

 perl Makefile.PL \
  APACHE_PREFIX=/home/eedalf/apache \
  APACHE_SRC=/home/eedalf/src/apache_1.3.14 \
  DO_HTTPD=1 \
  USE_APACI=1 \
  LIB=/home/eedalf/lib/perl \
  EVERYTHING=1

  is this error message, when calling "make install"



Re: Installing mod_perl-1.24_01 w/o super user and with global perl

2001-01-04 Thread Alexander Farber (EED)

Sorry, s#1\.1\.3#1.3.13#



Installing mod_perl-1.24_01 w/o super user and with global perl

2001-01-03 Thread Alexander Farber (EED)

Hi,

I am installing Apache 1.3.14 and mod_perl 1.24_01 into
my home directory and it actually works okay, but there
is this error message, when calling "make install" in the
mod_perl source dir:

Skipping 
/opt/local/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include/http_protocol.h
 (unchanged)
Cannot forceunlink 
/opt/local/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include/ap_config_auto.h:
 Permission denied at /opt/local/perl-5.6.0/lib/5.6.0/File/Find.pm line 475
*** Error code 255
make: Fatal error: Command failed for target `pure_site_install'


I guess, it is because I don't have the write privileges for
our /opt/local/perl-5.6.0. Is there a way to get rid of this 
message? I haven't found it in the

http://perl.apache.org/guide/install.html#Installation_Without_Superuser_P

Thank you
Alex

PS: I use:

perl Makefile.PL APACHE_PREFIX=/home/eedalf APACHE_SRC=/home/eedalf/src/apache_1.3.14 
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1



Re: File Upload problems

2000-12-29 Thread Alexander Farber (EED)

cbell wrote:
 Everytime I try to upload a file, the browser will
 stall a couple of times, and the file ends up on the server as a zero
 byte file.  

How about:

 # Upload Procedure
 my $buffer;

  my $inputfile = upload ('uploaded_file');

  open (OUTFILE,"$ENV{DOCUMENT_ROOT}/images/test.gif") 
 or die "Can not write to file because of $!";

 binmode OUTFILE;
 binmode $inputfile;
 while (read($inputfile,$buffer,1024))
 {
 print OUTFILE $buffer;
 } ## end while

  close OUTFILE;



Re: XMas printing benchmark

2000-12-29 Thread Alexander Farber (EED)

Perrin Harkins wrote:
 I know it's not the point, but I'd consider it poor style if I saw someone
 using anything other than a HERE doc for the job you're testing.

Why? With HERE you can't indent your code:

  my @text = (
"!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\"\n",
"HTML\n",
"  HEAD\n",
"TITLE\n",
"  Test page\n",



Re: XMas printing benchmark

2000-12-29 Thread Alexander Farber (EED)

Ron Beck wrote:
 
 Since when???
 
 I've always done...
 print"end_o_doc";
 form action="../scripts/pgr_req03.cgi" method="post"
...
 Problems with this???
 Ron

I mean indenting code, not data.

 "Alexander Farber (EED)" wrote:
  Why? With HERE you can't indent your code:
 
my @text = (
  "!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\"\n",
  "HTML\n",
  "  HEAD\n",
  "TITLE\n",
  "  Test page\n",



Re: sorting subroutine and global variables

2000-12-21 Thread Alexander Farber (EED)

Hi,

thanks for your reply,

Stas Bekman wrote:
 On Wed, 20 Dec 2000, Alexander Farber (EED) wrote:
 
  sub mysort
  {
  my $param = $query - param ('sort') || 'MHO'; # XXX global $query,
 # not mod_perl clean?
  return $a - {$param} cmp $b - {$param};
  }
 
  This subroutine is called later as:
 
  for my $href (sort mysort values %$hohref)
  {
  ...
  }
 
 Your code is better written as:
 
   my $param = $query-param('sort') || 'MHO';
   for my $href (sort {$a-{$param} cmp $b-{$param}} values %$hohref) { }

but isn't it the same? The anonymous sub {$a-{$param} cmp $b-{$param}}
uses the "outside"-variable $param.

 why wasting resources...

Also, assuming I would like to have a separate sorting subroutine
mysort, since it is mopre complicated as listed above... How would
you pass some parameters to this subroutine? Via global vars?

Regards
Alex



sorting subroutine and global variables

2000-12-20 Thread Alexander Farber (EED)

Hi,

http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S
advises not to use external "my $variables"
from subroutines. I have
the following subroutine in my CGI-script, which I would like to keep
mod_perl-kosher, just in case:


# Sort %hoh-values by the 'sort'-parameter or by default ("MHO")   #


sub mysort
{
my $param = $query - param ('sort') || 'MHO'; # XXX global $query,
   # not mod_perl clean?
return $a - {$param} cmp $b - {$param};
}

This subroutine is called later as:

for my $href (sort mysort values %$hohref)
{
...
}

Is using the "outside" $query dangerous here and how would you handle it?

Thank you
Alex

PS: Is there something to be aware of, when using the new "our" keyword?



Re: Advocacy idea ...

2000-12-15 Thread Alexander Farber (EED)

Let's create a "Mod_perl League" - it gives us 
at least one line on the first page of LWN.net



Re: Driver to access the MS SQL Server database!!!

2000-12-14 Thread Alexander Farber (EED)

Hi,

I've learned to recognize your postings by
the triple ! in the subject line.

Edmar Edilton da Silva wrote:
 Please, can anyone tell me what driver I can use to access the MS SQL Server  
database? I am using the freetds_dbd driver, but It doesn't work properly when under 
heavy workload, the child processes of the apache server are aborted. I think that 
the problem is the freetds_dbd driver, because I am wanting to use another driver. If 
someone must help me I will be very appreciated. Thanks...

You can try http://www.easysoft.com

Regards
Alex



Re: Which is good mailing list for perl developers.

2000-12-13 Thread Alexander Farber (EED)

bari wrote:
 i jsut wanted to know a good mailing list for perl developers.

http://listserv.ActiveState.com/pipermail/perl-win32-users/



Re: problem connecting to oracle with DBD-Oracle-1.06/DBI-1.14 with Perl version v5.6.0 for Apache/1.3.12 (Unix) mod_perl/1.24 mod_ssl/2.6.6 OpenSSL/0.9.5a

2000-10-26 Thread Alexander Farber (EED)

HotMail: Bill wrote:
 If I run the cgi scripts from command line they connect to the oracle
 database just fine.
 
 If I run them under the webserver (apache::registry), the cannot connect to
 the database.
 ORA-12054 error.
 
 Has anyone seen this before or have an idea on how to track down the
 problem?

I suggest asking on the dbi-users list (archive
at http://www.xray.mpe.mpg.de/mailing-lists/dbi/ )
and submitting there a trace of 2 or higher (perldoc DBI)



Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)

On Sun, 22 Oct 2000, Steven Cotton wrote:
 What version of Perl are you using? I had some problems with make test,
 one of the tests doesn't return and I got a few munged shared memory
 segment errors, I was attempting to install under Solaris 7 and Perl
 5.6.0.

The messages about "munged shared memory" seem to be going if you change

my($tag, $ice) = unpack 'A14 A*' = $stuff;

in the file lib/IPC/Shareable.pm, sub _thaw to the:

my($tag, $ice) = unpack 'A13 A*' = $stuff;

(since the sub _freeze calls

my $stuff = 'IPC::Shareable' . $ice;   

- i.e. 13 chars). But there are further problems ("make test" hangs)...



Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)

my $stuff = 'IPC::Shareable' . $ice;   
 - i.e. 13 chars)

Oops, sorry - I can't count on mondays!



Re: File Space Usage ... in perl ?

2000-10-23 Thread Alexander Farber (EED)

See Perl Power Tools - http://language.perl.com/ppt/what.html



IPC::Shareable (was Re: Perl module - LWP)

2000-10-21 Thread Alexander Farber (EED)

"David M. Davisson" wrote:
 Yes, it works fine.  No mods.

 From: "David Jourard" [EMAIL PROTECTED]
  Has anyone worked with the LWP module under mod_perl and have they found
  that it works with no modification.

I would like to ask the same question about IPC::Shareable.

Is anybody successfully using it under Solaris or OpenBSD?
"make test" hangs for me on these platforms and the module
author is unreachable :-(

http://vorpal.mcs.drexel.edu/bsd-ports/helix/shared-memory.html
doesn't seem to help on OpenBSD (increasing SHMMAXPGS up to 4096)

If not IPC::Shareable, what module do you use for fast
communication between Apache-children?



[OT] uploaded files and multi-paged forms

2000-10-19 Thread Alexander Farber (EED)

How do you handle uploading files when using multi-paged
forms (for example entered text and a picture are previewed
before storing into the database and special directory)?

Uploaded files can't be passed as hidden fields, right?
So do you let your users to upload the same file several
times and then delete the temporary files with a cron job?

Another annoying thing is, that the file upload field is
non-sticky (its value gets cleared - at least in Netscape)
and also that the user could upload a different file at the
last page of form (okay, I could probably use Digest::HMAC).

Sorry for off-topic, but maybe someone has a good solution?



Re: [OT] uploaded files and multi-paged forms

2000-10-19 Thread Alexander Farber (EED)

Matt Sergeant wrote:
 Not multiple times, but let them upload and store in a temp file, which
 you can store the filename as a hidden field. Use File::MkTemp to create
 the filenames.

Thanks for the advice, but doesn't File::MkTemp have a race condition? 
The subroutine File::MkTemp::mktemp does following (comments are mine):

   $keepgen = 1;

   while ($keepgen){
 
 # generate a random file name and put it into $template

 if ($dir){
$lookup = File::Spec-catfile($dir, $template);
$keepgen = 0 unless (-e $lookup); # isn't it a race?
 }else{
$keepgen = 0;# here it doesn't even check -e
 }
   
 next if $keepgen == 0;   # also, why this check?
   }
   return($template);

This looks as a bad quality module to me or am I awfully wrong? 

(CC: Travis, please don't take it personally)



Re: [OT] uploaded files and multi-paged forms

2000-10-19 Thread Alexander Farber (EED)

Matt Sergeant wrote:
 Its only insecure if you don't use sysopen($fh, $newname, O_RDWR | O_EXCL
 | O_CREAT) (and then get a new filename if that failed 'cos the file
 existed).

Well, then at least the subroutines mkstempt and mkstemp are insecure,
since they call (funny, the comment below is by the File::MkTemp-author):

   $fh = new FileHandle "$openup";  #and say ahhh.



A chapter about Apache-modules programming in C

2000-10-17 Thread Alexander Farber (EED)

http://www.performancecomputing.com/books/book_preview2_pf.htm



Re: Apache error

2000-10-16 Thread Alexander Farber (EED)

Kader Ben wrote:
 Someone out there could tell me how can I fix the
 following Apache error:
 
 HTTP/1.1 500 Internal Server Error Date: Mon, 16 Oct
 2000 15:02:20 GMT

Is there anything to see in the error_log?



Amount of memory available to IPC::Shareable?

2000-10-12 Thread Alexander Farber (EED)

I would like to write a small web chat using IPC::Shareable.

How do I find out, how much shared memory is available on some
host, esp. under Solaris and OpenBSD? I have looked at "perldoc
IPC::Shareable" and the outputs of "dmesg", "ipcs -a" and
"ulimit -a" but don't see it yet.

Also, does anyone care to share his/her sources for a mod_perl 
based web-chat (modertion option would be great)? Thank you!



Re: ANNOUNCE: Apache::ProxyStuff 0.07

2000-10-12 Thread Alexander Farber (EED)

Jason Bodnar wrote:
 Apache::ProxyStuff is module for adding headers and
 footers to content proxied from other web servers. 

Looks similar to http://www.7val.de/leistungen/sevenval_fit.html 
- from the guys who patented embedding session ids in domain names.
They claim, that the "sevenvalFIT-technology" is patented too:

"Auch das Produkt sevenvalFIT ist durch die oben
   angesprochene Patentanmeldung gesichert."



Re: @INC startup under Win32

2000-10-12 Thread Alexander Farber (EED)

Carlos Ramirez wrote:
 Update your PATH evironment variable to include C:\Perl\lib

Shouldn't it be PERL5LIB instead, since PATH is responsible
for locating executables, not modules?

 "siberian.org" wrote:
  Can't location Cwd.pm in @INC (@INC contains C:/WINNT/system32/lib .) at



Re: Problems with proxying POST?

2000-10-04 Thread Alexander Farber (EED)

Chris Lewis wrote:
 [Given that Stronghold is a bit old, I'm endeavering to build
 Apache/mod_ssl/mod_perl from scratch, but it complains about not being
 able to load Apache.pm...  Is there a step-by-step set of Solaris
 instructions somewhere?]

Maybe following helps:
03ae01c0229b$a33af840$0e4077cc@tabula">http://forum.swarthmore.edu/epigone/modperl/gendkilblul/03ae01c0229b$a33af840$0e4077cc@tabula



Re: [OT] advice needed.

2000-09-29 Thread Alexander Farber (EED)

Vladislav Safronov wrote:
 I am going to work in a Web Company to write some mod_perl apps.
 They gave me a contract (I think the terrible one) which
 contains paragraph (among the others) that signs the rights to all
 inventions over to them.

The same paragraph (the inventions resulted from your contracting 
work belong to the company who hired you) is in my contract here
in Germany and my lawyer told me it's a usual thing.

 The problem is .. I have never sign such contracts and I don't know if it's
 "common" contract template that programmers sign when start coding for
 somebody.

I'd go to a lawyer to check the contract.



Re: tracking down why a module was loaded?;

2000-09-26 Thread Alexander Farber (EED)

Doug MacEachern wrote:
  modperl is the best kept secret on the net. Shame!
 seems to generate plenty of list traffic for a "secret" ;)

Don't you all think, that mod_perl isn't promoted enough and 
this will kill it someday, despite its technical goodness?

- There are no articles in the "mainstream" computer press 
  (like cnet.com, www.ix.de, etc) about mod_perl. 

- There are no benchmarks, comparing to Java/Coldfusion/whatever. 

- I work at a big telco, and no one cares/knows here about 
  mod_perl (except our intranet-webmaster, who still prefers 
  PHP, since it makes him less trouble).

- People, who have heard about mod_perl, are looking for servlet/
  JSP-programmers, because mod_perl-coders are hard to find.



Re: [OT] flock under win32

2000-09-25 Thread Alexander Farber (EED)

http://www.activestate.com/Products/ActivePerl/docs/lib/Pod/perlport.html#item_flock

flock FILEHANDLE,OPERATION
 Not implemented (Mac OS, VMS, RISC OS, VOS). 
 Available only on Windows NT (not on Windows 95). (Win32)

and there is also this note in the same document:

Don't open the same file more than once at a time for writing, 
as some operating systems put mandatory locks on such files.



Re: [slightly OT] cache refusal problem with IE, http headers

2000-09-19 Thread Alexander Farber (EED)

Ime Smits wrote:
 Below is a sample of the headers it returns. Any ideas? Anything that is
 communicated without me seeing it?
 
 8 Content-Length: 294
 
 and here for the same image, but as a normal static file fron disk:
 8 Content-Length: 327

How come that the sizes are different?



Re: Apache mod-perl fails to execute

2000-09-19 Thread Alexander Farber (EED)

[EMAIL PROTECTED] wrote:
 it finishes.  So the "use DBI" is working, but the httpd deamon dies
 anyway, but only when "use DBI" is present.

Maybe you have to specify the path to Perl modules by setting 
the PERL5LIB in your httpd's environment or by using "use lib
qw (/path/to/modules)" in your script?

 open(F, ' /tmp/count)

  or die "Could not write to file: $!";



Re: Does the AxKit-devel mailing list have an archive?

2000-09-17 Thread Alexander Farber (EED)

Matt Sergeant wrote:
   # my @vary = $r-header_out('Vary') if $r-header_out('Vary');
   # push @vary, "Accept-Encoding", "User-Agent";
 
 I think its a mod_perl bug. There's nothing leaky in the perl here.

Isn't it the same as
http://www.perl.com/pub/2000/05/p5pdigest/THISWEEK-2521.html#my_x_if_0;_Trick



[OT] Re: open(FH,'|qmail-inject') fails

2000-09-11 Thread Alexander Farber (EED)

"Randal L. Schwartz" wrote:
 Man, if I see ONE MORE script that checks for a "legal email",
 I'm gonna scream.  Matter of fact, I already did. :)

I screamed when I've seen the correct version too :-) It is at
http://public.yahoo.com/~jfriedl/regex/code.html and the regex
for URL's is at http://foad.org/~abigail/Perl/url2.html



Re: mod_perl examples

2000-09-07 Thread Alexander Farber (EED)

Ilya Soldatkin wrote:
 I am beginner in mod_perl.  I think it will be good for me to see some
 mod_perl script examples. Above all I would like to see style of
 programming. It will be great if these scripts work with DBI. Could you
 recommend(give URL) or send me several scripts with good style of
 programming in mod_perl?

http://www.modperl.com/(The Eagle Book)

http://www.lerner.co.il/atf/archive.shtml (At the Forge column from LJ)

http://www.perlmonth.com/ (No new issues for long time :-(

http://www.stonehenge.com/merlyn/WebTechniques/col41.html

http://apachetoday.com/search.php3?author=Stas:Bekman

http://www.ix.de/ix/online/perl.html (mod_perl, Embperl articles in German)

http://simplex.ru/cgi-bin/news/search-koi.pl?regex=mod_perl   (Russian)



Re: mod_perl 1.24 as DSO under Apache 1.3.12 and Veritas Cluster Server VCS 1.1.2

2000-09-05 Thread Alexander Farber (EED)

Jens-Uwe Walther wrote:
 Everything works fine from the command line.
 
 Using the apachectl in a so called "online" script doesn't start the httpd server. 
Instead it notes in "error_log"
 
 Apache.pm failed to load!.

My guess is, that when you run apachectl from the "online"
script, then Apache.pm can't be found, which can be fixed
for example by setting the PERL5LIB environment variable.



Re: may be an offtopic question

2000-09-04 Thread Alexander Farber (EED)

Niral Trivedi wrote:
 I know that perl 5.6 does support to some extent utf8 and unicode.. but
 can somebody point to me some site or resources which has examples on
 that??? Because I couldn't find any useful information from the perldoc
 for utf8 or perlunicode..

http://www.perl.com/pub/2000/07/p5pdigest/THISWEEK-2702.html#Unicode_Handling_HOWTO



Apache.pm failed to load!.

2000-08-24 Thread Alexander Farber (EED)

Hi,

I am trying to install Apache 1.3.12 and mod_perl 1.24 in my home 
directory as a non-root user and probably missing something obvious:
I run "/home/eedalf/apache/bin/apachectl start" and see the message
"/home/eedalf/apache/bin/apachectl start: httpd started" but I am
unable to connect to http://localhost:8080/ and don't see httpd in
"ps uax", neither in "netstat" (and the port 8080 is free). In the
"~/apache/logs/error_log" file I see "Apache.pm failed to load!."

I am using "SunOS 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-5_10",
"gcc version 2.8.1" and "perl, version 5.005_03 built for sun4-solaris".

To compile and install, I have used:

  % perl Makefile.PL \
  PREFIX=/home/eedalf \
  APACHE_PREFIX=/home/eedalf/apache \
  APACHE_SRC=../apache_1.3.12/src \
  DO_HTTPD=1 \
  USE_APACI=1 \
  EVERYTHING=1
  % make  make test  make install 
  % cd ../apache_1.3.12
  % make install

and the "make test" seemed to work fine. I am new to Apache and mod_perl 
and keep reading the docs and the Eagle Book, but if anyone here has an 
idea what am I doing wrong, I would very appreciate you help.

Thank you
Alex

PS: Does "EVERYTHING=1" also mean that I can load the modules on the fly?
PPS: mod_perl doesn't use the Perl sources and its libperl.(a|so), right?



Re: Apache.pm failed to load!.

2000-08-24 Thread Alexander Farber (EED)

Sorry, I have forgotten to set PERL5LIB. After

  setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris

everything seems to work. Can I specify this location 
somewhere in httpd.conf?