RE: Pre-compiling Embperl pages without Executing?

2000-06-19 Thread Gerald Richter
> ==> Question: will putting an eval around the call to Execute > mitigate the problems caused by the unwanted failures to run, > while still having the desired effect of pre-compiling those that > run correctly? Yes > Also: for those that compile OK but refuse to > run, will their compile

Pre-compiling Embperl pages without Executing?

2000-06-19 Thread Chris Thorman
Hi, The docs at http://perl.apache.org/embperl/Faq.pod.7.html#How_can_I_pre_compile_pages_so ... helpfully point out that calling Execute on your .epl pages at server startup time pre-compiles those pages into static shared memory which all subsequent child processes will share. I have a

limiting code that DProf profiles

2000-06-19 Thread Chris Nokleberg
I'm using Apache::DProf to profile a mod_perl script. The specific section I am looking to improve is hard to get meaningful numbers for, because in the DProf output it is overwhelmed by the time of child process startup and other things that I'm not interested. Is there a way to limit the code t

forking a perl process from modperl to execute a network program

2000-06-19 Thread Gac Corp
Hi Folks: I have perl program that runs under modperl in a website, that needs to fork another perl program that executes a network program. The problem is that the tcp socket c program runs fine when executed from a modperl fork, but udp socket dies. This udp program runs fine when run from the

RE: Apache::Session

2000-06-19 Thread Robin Berjon
>On Mon, Jun 19, 2000 at 05:31:42PM +0100, Miah Gregory wrote: >> The error I get off 1.03 on the new server is: >> >> Permission denied at >> /usr/lib/perl5/site_perl/5.6.0/Apache/Session/SysVSemaphoreLocker.pm line >> 63. >> (in cleanup) Permission denied at >> /usr/lib/perl5/site_perl/

Re: ColdFusion in mod_perl?

2000-06-19 Thread clayton cottingham aka drfrog
and/or use the perl dbi and or postgresql's Pg lib most useful i used to have to use coldfusion, and it was not fun especially dealing w m$'s odbc Matt Sergeant wrote: > > On Mon, 19 Jun 2000 [EMAIL PROTECTED] wrote: > > > > > I was introduced to ColdFusion the other day. It seems like somet

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Shane Nay
(If anyone else wants to mention how they use sessions I'm curious) > First off, I'm doing this becuase I need to store variables (in > currency) that are generated on a per-user session, for a short period of > time (3 to 5 requests). I'm using a database back-end for the session. > > I was in

Re: ColdFusion in mod_perl?

2000-06-19 Thread Blue
On Mon, 19 Jun 2000 [EMAIL PROTECTED] wrote: > I was introduced to ColdFusion the other day. It seems like something > which could easily be done in (mod_)perl. Has anyone done this? Sure have! Try a google search for 'HTML obfuscation' and see if it turns up anything useful. Good luck, --

Re: ColdFusion in mod_perl?

2000-06-19 Thread Matt Sergeant
On Mon, 19 Jun 2000 [EMAIL PROTECTED] wrote: > > I was introduced to ColdFusion the other day. It seems like something > which could easily be done in (mod_)perl. Has anyone done this? Bah, coldfusion is dated technology. Take a look at something with completely customisable taglibs based on XM

ColdFusion in mod_perl?

2000-06-19 Thread elb
I was introduced to ColdFusion the other day. It seems like something which could easily be done in (mod_)perl. Has anyone done this? ELB --- Get free personalized email at http://www.iname.com

Help to pinpoint installation problem.

2000-06-19 Thread David Jourard
Hi, I've done a little mod_perl last year but forget very quickly and I'm requesting some guidance to tell me where to start pinpointing a problem. I'm looking at an application that is supposedly running mod_perl. I"ve just started going thru the mod_perl Guide by Stas Bekman. It showed that

[OT]SegFaults, not PerlFreshRestart or module related

2000-06-19 Thread Paul
I'm running out of ideas. PerlFreshRestart was completely unused, then explicitly set Off. I have two handlers, which seem to work well. My logs report nothing amiss aside from the stream of segmentation faults killing off my server children, usually several in quick succession, then minutes or

Re: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Perrin Harkins
On Mon, 19 Jun 2000, John Hughes wrote: > > Incidentally, the $r->print() method conveniently lets you pass the string > > you want to send by reference. > > Why is that "convenient": It's convenient for me because I have a scalar ref that I want to print. Maybe dereferencing it and passing by

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Perrin Harkins
On Mon, 19 Jun 2000, Jay Jacobs wrote: > I'm trying to use Math::currency with sessions, and I've run into a > stumper. I initialize variables and make them Math::Currency objects, > and display them just fine, but when I come back (unthaw the session) > instead of seeing the value I get the re

RE: Apache::Session

2000-06-19 Thread Miah Gregory
I have the problem on one server, and not the other.. I'll try to find out what's different between the two of them, and let you know. Cheers, Miah -Original Message- From: Jonathan Leto [mailto:[EMAIL PROTECTED]] Sent: Monday, June 19, 2000 6:28 PM To: Miah Gregory Cc: [EMAIL PROTECT

Re: Apache::Session

2000-06-19 Thread Jonathan Leto
I got the same error until I made the file setuid root. If anybody knows a better way, please reply. On Mon, Jun 19, 2000 at 05:31:42PM +0100, Miah Gregory wrote: > Hi all, > > Does anyone have any example code using either version 1.51 or 1.03? > > I can't get either version to work correctl

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Jay Jacobs
First off, I'm doing this becuase I need to store variables (in currency) that are generated on a per-user session, for a short period of time (3 to 5 requests). I'm using a database back-end for the session. I was initially wrong in my thinking about Math::Currency, and my solution was to "stri

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Shane Nay
Okay, backup a second..., you're doing this... why? Do you need a Math::Currency object stored inside the session?..., that could be quite a hefty object. See, everything you write to a session you have to read back in, and any time you update any small part of it it has to re-write the whole re

RE: Pages stopping and not loading completely...

2000-06-19 Thread Farley, Scott
> From: Matt Sergeant [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 19, 2000 12:38 PM > To: Farley, Scott > Cc: '[EMAIL PROTECTED]' > Subject: Re: Pages stopping and not loading completely... > > > On Mon, 19 Jun 2000, Farley, Scott wrote: > > > I'm running an application Apache + mod_perl th

Re: Pages stopping and not loading completely...

2000-06-19 Thread Matt Sergeant
On Mon, 19 Jun 2000, Farley, Scott wrote: > I'm running an application Apache + mod_perl that connects to an MySQL > database and the pages every so often decide not fully load. You can even > see the the HTML printed to the screen sometimes because the stream is > broken in the middle. Some of

Re: Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Jay Jacobs
I think I caught it. For some reason (little help here), you need to "stringify" the Math::Currency instance, and store it as a scalar. And calling ->new on a thawed object isn't a work around... Jay On Mon, 19 Jun 2000, Jay Jacobs wrote: > Hello, > I'm trying to use Math::currency with ses

Apache::Session

2000-06-19 Thread Miah Gregory
Hi all, Does anyone have any example code using either version 1.51 or 1.03? I can't get either version to work correctly on one server, but 1.03 works fine on another. The error I get off 1.03 on the new server is: Permission denied at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/SysVSemapho

Pages stopping and not loading completely...

2000-06-19 Thread Farley, Scott
I'm running an application Apache + mod_perl that connects to an MySQL database and the pages every so often decide not fully load. You can even see the the HTML printed to the screen sometimes because the stream is broken in the middle. Some of the error messages include: [Mon Jun 19 11:07:33

Re: [OT] [advocacy] IIS v Apache article

2000-06-19 Thread Matt Sergeant
On Mon, 19 Jun 2000, Mark Hewis wrote: > It would be really nice to see surveys based on pages served/web server and > not just number of server installations. Anyone heard of such stats? Pick a known high-traffic site, and see what it's running. All the portals I know of run Apache, as does a c

Re: [OT] Making apps (un)available solution

2000-06-19 Thread Michael J Schout
On Mon, 19 Jun 2000, Matt Sergeant wrote: > On Sun, 18 Jun 2000, Michael J Schout wrote: > > > On Tue, 13 Jun 2000, Erich L. Markert wrote: > > > > > I'm trying to figure out the best way to make apps (un)available without > > > having to edit the apache config files. > > > > We did somethin

[OT] [advocacy] IIS v Apache article

2000-06-19 Thread Mark Hewis
It would be really nice to see surveys based on pages served/web server and not just number of server installations. Anyone heard of such stats? >just thought everyone might be interested... >http://www.entmag.com/displayarticle.asp?ID=6150095626AM >BTW - Ged, you're quoted :) This e-mail, and

Apache::Session & Math::Currency thawing issue.

2000-06-19 Thread Jay Jacobs
Hello, I'm trying to use Math::currency with sessions, and I've run into a stumper. I initialize variables and make them Math::Currency objects, and display them just fine, but when I come back (unthaw the session) instead of seeing the value I get the reference showing "Math::Currency=HASH(0x8

RE: Get User Login Name

2000-06-19 Thread jbodnar
The user should not have to log in twice if you use the same AuthName (Realm) in both .htaccess files. On 19-Jun-2000 Wang, Pin-Chieh wrote: > Hi, > Is there any way to obtain user login name from perl if I put .htaccess > under /usr/local/apache/htdocs/restricted and put my cgi/perl script under

[advocacy] IIS v Apache article

2000-06-19 Thread Geoffrey Young
just thought everyone might be interested... http://www.entmag.com/displayarticle.asp?ID=6150095626AM BTW - Ged, you're quoted :)

Re: Platform list

2000-06-19 Thread Drew Taylor
Jesús Lasso Sánchez wrote: > > Hi, > > Does anyone work with apache+mod_perl in Irix platforms. I need information > about this plattform, because i'm working in a project based in Irix. There > is any problem? does it works correctly ? > One of my former employers uses Irix and mod_perl runni

Re: Reading config

2000-06-19 Thread Matt Sergeant
On Mon, 19 Jun 2000, Edwin Pratomo wrote: > > Hi, > > how to get configuration values at run-time, such as DirectoryIndex? I don't think you can - that configuration directive is specific to mod_index, and only mod_index can access it, AFAIK. -- Fastnet Software Ltd. High Performance Web

Reading config

2000-06-19 Thread Edwin Pratomo
Hi, how to get configuration values at run-time, such as DirectoryIndex? TIA. Edwin.

Get User Login Name

2000-06-19 Thread Wang, Pin-Chieh
Hi, Is there any way to obtain user login name from perl if I put .htaccess under /usr/local/apache/htdocs/restricted and put my cgi/perl script under cgi-bin with no restriction. The reason I put no restriction for cgi-bin is to avoid user to login twice so I only place restriction under htdocs/r

RE: ANNOUNCE: new draft mod_perl quick reference card

2000-06-19 Thread Geoffrey Young
just a few things: I think I remember discussing that using %hash = $r->headers_out didn't work with multiple Set-Cookie fields in the header. IIRC, the discussion yielded @array = $r->headers_out as solving the problem. Although the eagle book says to call headers_out in a list or scalar

RE: err_headers_out Q

2000-06-19 Thread Geoffrey Young
> -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 09, 2000 1:21 PM > To: Geoffrey Young > Cc: '[EMAIL PROTECTED]' > Subject: Re: err_headers_out Q > > > On Fri, 2 Jun 2000, Geoffrey Young wrote: > > > hi all... > > > > this simple script: >

RE: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Shane Nay
While you're "on the line" as it were John, I have a question: In XS you can pop more than the number of args that were passed into the function, but "Bad Things will happen". But in perl, it's as if an actual array were passed into the function. Now everyone talks about subroutine "overhead" a

RE: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Shane Nay
> > I'm sorry, but I think you are simply wrong here. If I call a perl > function or an XS routine with a variable as an argument it is passed by > reference. There is *no* copy. > > A simple proof: > > sub hack { > $_[0] = 'a new string'; > } > > $a = 'an old

RE: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread John Hughes
De : Shane Nay [mailto:[EMAIL PROTECTED]] > To comment on what John originally said..., arg, here we go. The > difference between print \$somevariable, and print $somevariable can > be very significant. Nope. Not "very". > Everything is passed internally as a "reference", but that > doesn't me

RE: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Shane Nay
On Mon, 19 Jun 2000, you wrote: > > De : Matt Sergeant [mailto:[EMAIL PROTECTED]]> > > On Mon, 19 Jun 2000, John Hughes wrote: > > > (Hint - Perl passes all values by reference. > > > > Are you sure thats the case with XS code? > > Yes. To expand on John's answer... :), and delve into where th

Re: Segfault Apache1.3.12/mod_perl1.24/Solaris2.6

2000-06-19 Thread G.W. Haywood
Hi Eric, > > [Fri Jun 16 17:20:21 2000] [notice] \ > > child pid 22310 exit signal Segmentation Fault (11) On Mon, 19 Jun 2000, Eric Cholet wrote: > backtrace. (gdb) bt #0 0x2b444 in perl_handler_ismethod () #1 0x2c43c in perl_call_handler () #2 0x2bd5c in perl_run_stacked_handlers () #3 0

RE: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread John Hughes
> De : Matt Sergeant [mailto:[EMAIL PROTECTED]]> > On Mon, 19 Jun 2000, John Hughes wrote: > > (Hint - Perl passes all values by reference. > > Are you sure thats the case with XS code? Yes. -- John Hughes <[EMAIL PROTECTED]>, CalvaEDI SA.Tel: +33-1-4313-3

Re: $r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread Matt Sergeant
On Mon, 19 Jun 2000, John Hughes wrote: > (Hint - Perl passes all values by reference. Are you sure thats the case with XS code? I don't personally know XS very well, but there are some wierd things about it, and this might be one of them. I know for certain that XML::Parser has a lot of slow-do

Re: APACHE::ASP intermittent problem uploading images (CGI.pm)

2000-06-19 Thread Joshua Chamas
Would you turn Debug to -2 and trace the output before it happens, and then send that bit of log since server restart? See if you have any StatINC* settings turned on, turn them off, as they will reload libraries, and might be tripping something up. Also, should we not get this worked out, t

$r->print and references: Was RE: Slightly OT - Content-length

2000-06-19 Thread John Hughes
> Incidentally, the $r->print() method conveniently lets you pass the string > you want to send by reference. Why is that "convenient": Fast: my $x = "fred" x 1; $r->print $x; More obscure and microscopicaly slower: my $x = "fred" x 1; $r->print \$x; (Hi

Re: Platform list

2000-06-19 Thread Jesús Lasso Sánchez
Hi, Does anyone work with apache+mod_perl in Irix platforms. I need information about this plattform, because i'm working in a project based in Irix. There is any problem? does it works correctly ? Best regards Jesús - Original Message - From: "Randy Kobes" <[EMAIL PROTECTED]> T

Re: Segfault Apache1.3.12/mod_perl1.24/Solaris2.6

2000-06-19 Thread Eric Cholet
> Hi all, > > Sorry, this is a bit long. [snip] > [Fri Jun 16 17:20:21 2000] [notice] \ > child pid 22310 exit signal Segmentation Fault (11) [snip] > There is no core dump and the same thing happens with the -X switch. please see the instructions in SUPPORT on how to provide a backtrace. --

Re: [OT] Making apps (un)available solution

2000-06-19 Thread Matt Sergeant
On Sun, 18 Jun 2000, Michael J Schout wrote: > On Tue, 13 Jun 2000, Erich L. Markert wrote: > > > I'm trying to figure out the best way to make apps (un)available without > > having to edit the apache config files. > > We did something like this by making a handler like this: > > package Foo: