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: > @dirs = readdir( DIR ); > foreach $dir (sort @dirs) { next unless -d "directory/$dir"; > print "file: $dir\n"; > }

[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 $!";

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 y

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

2001-03-15 Thread Alexander Farber (EED)
Paul wrote: > None of this is critical for anything I'm doing right now, but I'm a > detail hound. I want to *understand* it, so that in the future I can > make intelligent decisions about what would be a "better" way to write > any given algorithm, without just relying on popular wisdom and "urba

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

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 i

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 rot

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.

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

[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 fo

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

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 us

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 wit

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=/h

How do you run libapreq-0.31/eg/perl/file_upload.pl ?

2001-01-04 Thread Alexander Farber (EED)
Hi, I have read http://perl.apache.org/guide/porting.html and am still reading the Eagle book... How do you run this example script? 1) Just calling http://localhost:8080/cgi-bin/file_upload.pl gives: [Thu Jan 4 10:45:44 2001] [notice] Apache/1.3.14 (Unix) mod_perl/1.24_01 configured -- resu

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#

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 hom

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

2001-01-04 Thread Alexander Farber (EED)
John D Groenveld wrote: > Does "How do I keep my own module/library directory?" from perlfaq8 apply? No, I know how to use the modules in my home dir well enough. What I am trying to complain here is, that you can not cleanly install Apache + mod_perl into your home dir when using system-wide pe

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_pro

Re: XMas printing benchmark

2000-12-29 Thread Alexander Farber (EED)
Ron Beck wrote: > > Since when??? > > I've always done... > print<<"end_o_doc"; > ... > Problems with this??? > Ron I mean indenting code, not data. > "Alexander Farber (EED)" wrote: > > Why? With < > > >

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 <\n", "\n", " \n", "\n", " Test page\n",

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_ROO

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, > >

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:

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 worklo

Re: Mod_perl tutorials

2000-12-14 Thread Alexander Farber (EED)
Stas Bekman wrote: > Our book's site is modperlbook.org... how original :) Stas, do you have a premilinary table of contents already and could you please post it there?

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: Linux Hello World Benchmarks...

2000-12-11 Thread Alexander Farber (EED)
Hi Joshua, Joshua Chamas wrote: > Note, this is the first benchmark that I've run of Apache::ASP on > Linux, which is nice to see because Linux is one of the faster OS's, > and it now looks bit more of a player, compared to what's listed at > http://www.chamas.com/bench/ when I benched it on Sola

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 do

Re: imagemagick

2000-10-26 Thread Alexander Farber (EED)
[EMAIL PROTECTED] wrote: > open(FH, "> $filename"); Maybe: open(FH, "> $filename") or die "Can not write to $filename: $!"; > Error message: > [Wed Oct 25 16:36:17 2000] null: Warning 315: Bogus DQT index 9 > (/home/images/velvet/m6.jpg) at /www/lib/perl/Velvet/VelvetAdmin.p

Re: Errors using DBI with Sybase

2000-10-24 Thread Alexander Farber (EED)
Francois Gaudin wrote: > error while executing /../components/loginchecknoform: > DBI->connect failed: OpenClient message: LAYER = (5) ORIGIN = (3) > SEVERITY > (5) NUMBER = (6) > Message String: ct_connect(): network packet layer: internal net library > erro Are you able to connect to the databa

Re: File Space Usage ... in perl ?

2000-10-23 Thread Alexander Farber (EED)
See Perl Power Tools - http://language.perl.com/ppt/what.html

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: 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 sha

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 succ

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 b

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 do

[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

Re: [OT]logging Apache processes w/rotatelogs

2000-10-17 Thread Alexander Farber (EED)
David Hodgkinson wrote: > There are plenty of counter examples floating around. Mostly involving > moving log files away then doing a graceful restart. Maybe this is useful: http://www.modperl.com/perl_conference/cool_tricks/handout.html

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?

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: 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-t

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 anyon

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$0

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

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 "main

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

Re: Apache::ASP can't modify concatenation...

2000-09-19 Thread Alexander Farber (EED)
"Brian S. Craigie" wrote: > Uhm, I thought ASP was a language like php. Is that not the case? When > I set up Dreamweaver, I chose ASP with Javascript. I assumed that meant > it would run ASP on the server and javascript on the client. I think Apache::ASP currently supports PerlScript only -

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

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: 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-2

[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://

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 sty

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

Re: [OT] DNS question (slightly mod_perl related...)

2000-09-05 Thread Alexander Farber (EED)
martin langhoff wrote: > Is it possible to tell BIND to catch *.domain.com and answer the same > ip? Have you seen http://www.7val.de ? They use something similar for user tracking (session id in hostname).

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

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?

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 ht