Re: perl vs java

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Shane Nay wrote: > If I were to write a new version of the chat engine I wrote, I > wouldn't do it this way. In fact I started re-writing it based on a > sigqueues, and CORBA. Shane, you are a maniac! You wrote a chat server using sigqueues and CORBA? Isn't that like killi

Re: perl vs java

2000-06-12 Thread Gunther Birznieks
Now, now...that is unfair. I was referring to writing in pure Perl vs pure Java. Of course, C apis and pre-written daemon integration makes the glue language a moot point (and favors Perl actually). BTW, is select() is still broken in Win32 Perl? It was 6 months ago (I suspect because IO oper

Apache on Nt

2000-06-12 Thread josephbifano
Hi, I have Apache running on a windows NT workstation and need to get Mod_perl and HTML::MASON working so I can do development on it. I can not get mod_perl to load. I have tried several things with no luck. I am using sp5 and one of the docs say to use sp3. ANyone out there doing this n

Re: perl vs java

2000-06-12 Thread Shane Nay
(Somehow I missed Gunther's message, maybe I had a system out for a little while, I'm replying to Roger, but really replying to Gunther) On Mon, 12 Jun 2000, you wrote: > Gunther Birznieks <[EMAIL PROTECTED]> wrote: > > 2. Would you write a chat engine in Perl? I wouldn't! (Well, actually I did

Re: Template techniques

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Roger Espel Llima wrote: > The focus of my module (it'll probably be called 'iAct') is quite > different, though. The html-embedded command set is limited to a set of > strictly declarative features; You don't have to use the fancier stuff in TT. Our designers only use basi

[OT] Re: sendMail in cgi program

2000-06-12 Thread Paul
I know you've received other responses, but I'm doing a good bit of this lately. > sub sendEmail { > open (Sendmail, "|/usr/lib/sendmail -oi -t ") > or die "Can't fork for sendmail: $!\n"; > print Sendmail <<"EOF"; > From: Bugs > To: amy > Subject

Re: Perl vs Java [Now OT]

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Gunther Birznieks wrote: > >Unless you use a cluster of servers for load balancing and high > >availability, in which case you're right back where you started and you > >need the Java equivalent of Apache::Session::DBI. I imagine someone has > >written one in one of the many

Re: Help writting a module for Apache.

2000-06-12 Thread Ariel Manzur
At 17:58 12/06/2000 -0400, J. J. Horner wrote: >On Mon, 29 May 2000, Ariel Manzur wrote: >> - Can anyone point me to a "real life" example, or guide, on how to write >> and install a module using mod_perl? I use perl a lot, but I could find >> "easy" documentation on how to write modules (I don't

Re: Session-handling and multiple browser windows

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Dylan Weed wrote: > Option three (removing all page-specific state from the session hash) > seems like the right thing to do. It is. I don't know any other way to handle this situation correctly. > I'd like to avoid it if possible, however, because it means passing > more i

Re: Help writting a module for Apache.

2000-06-12 Thread J. J. Horner
On Mon, 29 May 2000, Ariel Manzur wrote: > I need Apache to do this: always ask for basic authentication, and then > accept any conbination of username/password as correct, and set an > enviroment variable with the password sent on the request, so I can > retrieve that on a CGI script, and do the

Re: oracle error log

2000-06-12 Thread Perrin Harkins
> > [Mon Jun 12 17:43:35 2000] [notice] caught SIGTERM, shutting down > > ORACLE_HOME environment variable not set! > > > Does anybaody know why this happen. the ORACLE_HOME enviroment > > variable is defined and i don't know what can happen. > > > > thanks > > > >Jesús Maybe you need to

Re: Caching and mod_perl

2000-06-12 Thread Perrin Harkins
On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: > What I'm interested in knowing is whether anybody's written an inter- > face to the actual Apache caching utility routines. If it's not in the Eagle book, the answer is most likely "no". Most of use dbm files or something similar for caching fro

mod_perl handler generated proxy requests

2000-06-12 Thread Marc D. Spencer
I have a mod_perl module which would like to make an HTTP request to a tertiary server and then process the result before possibly returning some subset of that data. I have already written a working solution via LWP, but I got to wondering, as I sometimes do, whether there is a better way to

RE: Problem compiling with HPUX 11 64-bit OS

2000-06-12 Thread Gavin Mathias
Add these lines to the apache Configuration file in the src directory EXTRA_CFLAGS=`perl -MExtUtils::Embed -e ccopts` EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts` and recompile. Regards, Gavin -Original Message- From: Scott Phan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 12,

RE: Help writting a module for Apache.

2000-06-12 Thread Ariel Manzur
The script is inside a password protected directory, so if I can access the script, it means I sent a correct username and password (right?). The "AUTHORIZATION" key inside %ENV doesn't exist.. There is a $ENV{'AUTH_TYPE'}, it contains "basic".. I tested it on apache 1.3.6 and 1.3.3.. At 16:16 12

RE: sendMail in cgi program

2000-06-12 Thread Jerrad Pierce
This is not for CGI however, the problem is simple. EOF must be at the beginning of the line, no white space in front of it o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~-._@" _|\_|___|___| >

sendMail in cgi program

2000-06-12 Thread amy
if I run the same procedure on a separate file, email works, once I put the proc in the cgi file, I got the following error. in error_log : Can't find string terminator "EOF" anywhere before EOF at /usr/local/bin/apache/cgi-bin/lib.pl line 484. sub sendEmail { open (Sendmail, "|/usr/lib

Re: Template techniques

2000-06-12 Thread Roger Espel Llima
On Fri, Jun 09, 2000 at 02:23:30PM -0700, Perrin Harkins wrote: > Sounds like Template Toolkit to me. Or maybe even Apache::Taco (now > defunct?) which worked by calling external functions. I haven't seen Apache::Taco, but I've read through the Template Toolkit docs; it sure looks like a very po

RE: Help writting a module for Apache.

2000-06-12 Thread Jerrad Pierce
Then you haven't gotten a username and password back, you should get basic authinfo Where authinfo is a b64 encoded string that is username:password o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~

RE: Help writting a module for Apache.

2000-06-12 Thread Ariel Manzur
Are you sure? I tryed $ENV{AUTHORIZATION} in normal cgi scripts and in Apache::Registry and the variable is empty.. How do I use that module? At 16:00 12/06/2000 -0400, Jerrad Pierce wrote: >Apache::Authen? > >As for your method, 401 username password stuff is always accessible via: >$ENV{AUTHOR

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Richard L. Goerwitz
In response to my query about how to get a list of virtual servers, Matt Sergeant wrote: > It's server->next(): > > for (my $s = Apache->server; $s; $s = $s->next()) { > print "Virtual host: ", $s->server_hostname, "\n"; > } Here's a followup: Is there any reasonable way to use the lis

RE: Help writting a module for Apache.

2000-06-12 Thread Jerrad Pierce
Apache::Authen? As for your method, 401 username password stuff is always accessible via: $ENV{AUTHORIZATION} o _ /|/ | Jerrad Pierce \ | __|_ _| /||/ http://pthbb.org . | _| | \|| _.-~-._.-~-._.-~-._@" _|\_|___|___| > -Origina

Problem compiling with HPUX 11 64-bit OS

2000-06-12 Thread Scott Phan
Help, I’m trying to compile mod_perl on 64-bit HPUX 11. The following error occurs during the make process: cc -c -I./os/unix -I./include -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX - DUSE_EXPAT -I./lib/expat-lite -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFI LE_SOURCE -D_FILE_OFFSET_BITS=64

Help writting a module for Apache.

2000-06-12 Thread Ariel Manzur
Hi.. I need Apache to do this: always ask for basic authentication, and then accept any conbination of username/password as correct, and set an enviroment variable with the password sent on the request, so I can retrieve that on a CGI script, and do the real authentication there. I couldn't find

Re: Problems with Apache::DBI

2000-06-12 Thread Edmund Mergl
Matt Carothers wrote: > > On Mon, 12 Jun 2000, Rob Tanner wrote: > > > Believe it or not, it's the simplest task in the world. In startup.pl add > > the line "PerlModule Apache::DBI" > > You can either stick "PerlModule Apache::DBI" in your httpd.conf or add > 'use Apache::DBI ();' to your sta

Re: Problems with Apache::DBI

2000-06-12 Thread Matt Carothers
On Mon, 12 Jun 2000, Rob Tanner wrote: > Believe it or not, it's the simplest task in the world. In startup.pl add > the line "PerlModule Apache::DBI" You can either stick "PerlModule Apache::DBI" in your httpd.conf or add 'use Apache::DBI ();' to your startup.pl. Also, for mysql, you'll ne

Re: Caching and mod_perl

2000-06-12 Thread Richard L. Goerwitz
Regarding my question about mod_perl access to Apache caching utilities, [EMAIL PROTECTED] wrote: > See page 120 in the Eagle book for If-Modified-Since caching, using > update_mtime and set_last_modified. Except for the creation of temp > files and unlinking, this is somewhat similar to what >

POST & CGI weirdness

2000-06-12 Thread Jim Serio
I've been running some mod_perl scripts for 6 months now without a hitch. All of my scripts use a custom module that, among others, has a function to return an initialized query object. Here's the function: - # Initialize the CGI enviornment sub init_cgi { # Reset and init the CGI handl

Re: Caching and mod_perl

2000-06-12 Thread morpheus
See page 120 in the Eagle book for If-Modified-Since caching, using update_mtime and set_last_modified. Except for the creation of temp files and unlinking, this is somewhat similar to what ap_proxy_cache_update is doing in mod_proxy. ~m On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: > Is t

A question from...

2000-06-12 Thread Ehsan Amiri
Hi Thanks for your responses can you please give me an on-line refrence for finding answer of such questions(How one can pass parameters to a perl script)(esp. mailing lists) E.A.

Re: oracle error log

2000-06-12 Thread scotta
What happens when you do a print qq|%ENV{'ORACLE_HOME'} inside of one of your programs. I was under the impression that you had to set these manualy inside your program rather then using a shell environment setting. Then again, its 10:30 on a monday so I could be way off base... Scott > [Mon J

mod-perl and redhat 6.2 's apache rpm

2000-06-12 Thread Clayton Cottingham aka DrFrog
is there something seriously wrong with redhats apache and modperl rpms? ive just tried for an hour to get the Pg perl module to load at startup {through the startup.pl way} and it just crashes without any errors whats the deal ? am i gonna have to recompile apache myself?

RE: Apache children hanging

2000-06-12 Thread Blue
On Mon, 12 Jun 2000, Ken Williams wrote: > [EMAIL PROTECTED] (Blue) wrote: > >there is a procedure in the mod_peril SUPPORT document that works if you > > Uh-oh - is mod_peril a Microsoft product or something? =) > > Perhaps the DSO version of mod_perl should be called mod_peril. sorry, it's

Re: A question from a naive Perl programmer

2000-06-12 Thread Rob Tanner
Wrong list for naive perl questions revolving around command-line parameters -- but what the hey... And I hope you're not really trying to pass command-line parms to a modperl module, 'cause it won't work. The simplest way is simple the @ARGV array. it contains all the command-line tokens pa

Re: perl vs java

2000-06-12 Thread Roger Espel Llima
Gunther Birznieks <[EMAIL PROTECTED]> wrote: > 2. Would you write a chat engine in Perl? I wouldn't! (Well, actually I did > 5 years ago but I am certainly not proud of that code). I did, just a few months ago, and it's working very nicely. > The thing about a real-time chat engine is the same

RE: Apache children hanging

2000-06-12 Thread Ken Williams
[EMAIL PROTECTED] (Blue) wrote: >there is a procedure in the mod_peril SUPPORT document that works if you Uh-oh - is mod_peril a Microsoft product or something? =) Perhaps the DSO version of mod_perl should be called mod_peril. ---

Re: A question from a naive Perl programmer

2000-06-12 Thread Vivek Khera
> "EA" == Ehsan Amiri <[EMAIL PROTECTED]> writes: EA> How can I pass parameters to my perl program from command-line? There is no command line for mod_perl programs. All info must come from either the environment or from the URI or from CGI parameters. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

RE: Connect to Informix remote DB

2000-06-12 Thread James Xie
I don't have .rhosts on A Box but I do have hosts.equiv on A Box c420rux1 (B Box) B Box also has the entry in sqlhosts pointed to A box (c407rux3): esorn onsoctcpc407rux3ifm I don't think I can pass Informix DBD's make test if I don't have these things set correctly.

RE: Apache children hanging

2000-06-12 Thread Blue
On Mon, 12 Jun 2000, Paul G. Weiss wrote: > Is there any equivalent procedure for debugging core > dumps? I've tried this and it doesn't work because > the process is not running. When I process dies it > would be nice to know where it was in the Perl stack. there is a procedure in the mod_pe

A question from a naive Perl programmer

2000-06-12 Thread Ehsan Amiri
Hi all I am a naive perl programmer and I have a simple qustion: How can I pass parameters to my perl program from command-line? Thanks E.A.

Re: Problems with Apache::DBI

2000-06-12 Thread Drew Taylor
One other thing: Make sure the 'use Apache::DBI' comes before 'use DBI' in your startup.pl or httpd.conf file. Very important little step. :-) Other than that, it's a 5 minute drop in that works wonderfully! Rob Tanner wrote: > > Believe it or not, it's the simplest task in the world. In startu

RE: Apache children hanging

2000-06-12 Thread Paul G. Weiss
Is there any equivalent procedure for debugging core dumps? I've tried this and it doesn't work because the process is not running. When I process dies it would be nice to know where it was in the Perl stack. -P -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent:

RE: Problems with Apache::DBI

2000-06-12 Thread John Keiser
>From what I read about the module, it overrides connect() and checks if the connection has already been made. Overrides disconnect to not actually disconnect. Pretty darn nifty. --John -Original Message- From: Rob Tanner [mailto:[EMAIL PROTECTED]] Sent: Monday, June 12, 2000 10:53 AM

Re: Connect to Informix remote DB

2000-06-12 Thread Honza Pazdziora
On Mon, Jun 12, 2000 at 09:32:11AM -0700, James Xie wrote: > > I have two Linux (Redhat 6.0) boxes both have Apache 1.3.12 and mod_perl > 1.23 installed, one of them (let's call it A box) also has Informix 7.3 > installed. I installed DBI module and Informix DBD (1.0) on both machines, > On B b

Re: Problems with Apache::DBI

2000-06-12 Thread Rob Tanner
Believe it or not, it's the simplest task in the world. In startup.pl add the line "PerlModule Apache::DBI" I'm not sure how it does it's magic, but basically, with that module loaded, DBI connection open/close requests go through it and it maintains a persistant connection for you (the close

Connect to Informix remote DB

2000-06-12 Thread James Xie
I have two Linux (Redhat 6.0) boxes both have Apache 1.3.12 and mod_perl 1.23 installed, one of them (let's call it A box) also has Informix 7.3 installed. I installed DBI module and Informix DBD (1.0) on both machines, On B box, "make test" for informix DBD went through ok against the databas

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Matt Sergeant
On Mon, 12 Jun 2000, Rob Tanner wrote: > I don't have my eagle book in front of me (two work places, onbe book) -- > in chapter 9, I think it's a mod_perl specific method (might be a server > method though, can't remember) -- and I don't remember the name of the > function either -- but basica

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Rob Tanner
I don't have my eagle book in front of me (two work places, onbe book) -- in chapter 9, I think it's a mod_perl specific method (might be a server method though, can't remember) -- and I don't remember the name of the function either -- but basically it returns a list of all configured virtual

Problems with Apache::DBI

2000-06-12 Thread Webmast98
Hello, This message is urgent and could save our banner exchange. Recently we started growing so fast that we had to convert our entire system at Traffic-Exchange.com to mysql. Now that this is done we need persistant database connections to the mysql server. From downloading the Apache::DBI m

oracle error log

2000-06-12 Thread Jesús Lasso Sánchez
hi everybody,      I've configured apache 1.3.9 + mod_perl 1.21, and i installed the Apache::DBI module to access an oracle database. Apache works  and i can access to the database and i can do querys, but in the error log file it produces this error messages:    

modperl@apache.org

2000-06-12 Thread jake buchholz
On Mon, Jun 12, 2000 at 09:48:25AM +0200, Rolf Stoll wrote: > I have Problems with mod-perl V. 1.24 working together with perl 5.6.0 > and a script that use DBI. > I use Apache 1.3.12 with Linux. > As a CGI without mod_perl the script works fine (it is no Problem of my > database configuration). >

Caching and mod_perl

2000-06-12 Thread Richard L. Goerwitz
Is there a mod_perl interface to caching routines available via the C api (e.g., mod_proxy's ap_proxy_cache_update()--or to any other low- level caching utilities)? -- Richard Goerwitz[EMAIL PROTECTED]

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread J. J. Horner
On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: > It's not obvious to me how one might get a list of VirtualHosts that are > configured for the current server instance (at run-time, e.g., from in- > side a Perl module). > > Is there some canonical way to do this? > I would guess that you could

mod_perl: Configuration info at run-time

2000-06-12 Thread Richard L. Goerwitz
It's not obvious to me how one might get a list of VirtualHosts that are configured for the current server instance (at run-time, e.g., from in- side a Perl module). Is there some canonical way to do this? -- Richard Goerwitz[EMAIL PROTECTED]

[OT] =o)

2000-06-12 Thread Paul
Many thanks, all. Now I know how to post messages like this one, which aren't really important or valid to a thread, but that I'd like to post anyway, as an "aside". Now, back to the grindstone PH __ Do You Yahoo!? Yahoo! Photos -- now, 100 F

[Now OT] ?

2000-06-12 Thread Paul
> WAY OT at this point :) Okay, time for me to graduate from "rube-ness" on this one. (~lol~) What, exactly, is OT? :o) Paul __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com

Re: Perl vs Java [Now OT]

2000-06-12 Thread Gunther Birznieks
At 06:01 PM 6/11/00 -0700, Perrin Harkins wrote: >On Sun, 11 Jun 2000, Gunther Birznieks wrote: > > 1. Session management. Because servlets are multi-threaded they have easy, > > quick access to a shared memory pool. All the locking and shared > > persistence code used in Apache::Session is render

mod-perl and IPC

2000-06-12 Thread Reilly, Thomas
hi, I have to write an application that processes a http request using mod_perl. The mod_perl script extracts XML from the request and this is then passed to a process written in C which takes care of processing the XML, logging into a database updating records and sending a response back

mod_perl not to work with 5.6?

2000-06-12 Thread Reuven M. Lerner
> Stas Bekman writes: Stas> Hey, who of the Perl teachers at Cruise said that? Stas> Stas> 8.Perl 5.6, which seems like generally a very good thing, Stas> currently doesn't work in a mod_perl (i.e., Apache) Stas> context. This is a big problem for some people. Stas> Stas> I

Re: Session-handling and multiple browser windows

2000-06-12 Thread shane
> 1. Stop the user from ever having the site open in more than one > window. Pretty inconvenient, no? Unless this is something that's supposed to be really tight security I would opt against this. (I'm sure it's a bear to implement too.) > 2. Somehow allocate the new window it's own session.

modperl@apache.org

2000-06-12 Thread Rolf Stoll
Hello, I have Problems with mod-perl V. 1.24 working together with perl 5.6.0 and a script that use DBI. I use Apache 1.3.12 with Linux. As a CGI without mod_perl the script works fine (it is no Problem of my database configuration). With mod_perl I get a: [notice] child pid 652 exit signal Se

mysql HEAP tables and modperl

2000-06-12 Thread siberian
Is anyone doing queries into HEAP tables under Apache::DBI? What sorts of boosts and/or problems have you seen? I am about to move into playing with it and benchmarking but is it worth the trouble? Yes, I know, read only data.:) John-

Re: Session-handling and multiple browser windows

2000-06-12 Thread siberian
We store page specific information in the session hash, however we allocate each 'section' of the site its own sub section of the hash, a cocnept we sometimes extend to pages that do a lot of session work( using session->section->page but we do not do that very often, its to much to monitor ).

Session-handling and multiple browser windows

2000-06-12 Thread Dylan Weed
I've run across a problem in the way I'm managing sessions, and I'm hoping that someone else has encountered the same thing and come up with a smart way to deal with it. I use Apache::Session and I associate each user with their respective session hash by giving them a cookie. The problem sho

Re: Perl vs Java [Now OT]

2000-06-12 Thread shane
WAY OT at this point :) > [OT] > My personal take: > Where (at least for me) Java has it's niche is client side, for > applets and applications. But for this, 'write once use anywhere' just > isn't true. Look at Java1.3 (which you really want to use for > GUI-intensive stuff, though their ev