RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread Gerald Richter
> > I had to do one absolutely wacky thing, though. Because I call Execute > from within templates (indirectly, actually, through our own Template > module that wraps Embperl), I needed to extend your idea a little. > > Essentially, I needed to use a unique Safe namespace for each request, but >

RE: How Embperl sub routine retun value?

1999-12-09 Thread Gerald Richter
Hi, > > Does anyone know how to return or pass a value inside Embperl sub routine? > You can pass argument like to any other perl subroutine. Unfortunately return doesn't work right now, but you can return a value by assigning it to one of the arguments. Like [$ sub TTEST $] [- $aa = 2; -]

RE: mod_perl Programmers demand is going up...

1999-12-09 Thread Ask Bjoern Hansen
On Sat, 4 Dec 1999, Matt Sergeant wrote: [...] > Personally I'd find it hard to hire a telecommuter unless I had really > great references _and_ solid evidence of their knowledge (e.g. > [EMAIL PROTECTED] postings). That's how I've been hired. that is also how we have found our contractors at Va

Re: Apache::ASP problem with global.asa

1999-12-09 Thread ritu
Hi Joshua, >> [Fri Dec 10 00:25:54 1999] [error] [asp] [4984] [debug] compiling global.asa >Apache::ASP::Demo >> [Fri Dec 10 00:25:54 1999] [error] [asp] [4984] [debug] global.asa routines - >Application_OnStart: 1; >> Session_OnEnd: 1; Session_OnStart: 1; > This line tells me which events wer

How Embperl sub routine retun value?

1999-12-09 Thread Albert Liu
Hi, Does anyone know how to return or pass a value inside Embperl sub routine? Like [$ sub TTEST $] [- $aa = 2; $aa is [+$aa+] [- return $aa; -] [$ endsub $] [- $bb = TTEST(); -] $bb is [+$bb+] The result is $aa is 2 $bb is 0 What is wrong? Thanks Albert

Trouble in proxyland

1999-12-09 Thread Dave Hayes
On Fri, 6 Aug 1999, Vivek Khera wrote: > Running Apache/1.3.7-dev (Unix) mod_perl/1.19_01-dev, it seems that > PerlPostReadRequestHandler is virtual-host bound. Yep, and I really have to ask why this is implemented in this fashion? Turns out I beat my head against the wall for a few hours until I

Re: DBI Performance with Multiple IDs

1999-12-09 Thread srfrog
On Thu, 9 Dec 1999, Alex Menendez wrote: > hello, all > > Given the following situation what is more efficient: > > -I have 10 id numbers I want to query on numbers 1,2,3,4,5,6,7,8,9,10 > respectively. However, this list is not fixed and could be any number of > ids up to 20. > > -Is it faster

Off Topic: Andover IPO [ was Re: mod_perl makes you rich ]

1999-12-09 Thread Ajit Deshpande
On Thu, Dec 09, 1999 at 08:27:10AM +, Matt Sergeant wrote: > Andover.net (owners of slashdot) closed it's IPO day at $60 a share. > Apparently Rob Malda, founder of slashdot, get 147k shares. That's one hell > of a college web site project. Umm.. I think thats too less considering that Andove

Re: ASP Cookieless Sessions (WAS Re: Apache::ASP)

1999-12-09 Thread Serge Sozonoff
Hello, >It will work fine, but the problem still remains that the >incoming page URL has the session-id in it, so that when you go >offsite, the referer header sent by the client has the client's >session id in it still, and the unethical webmaster could easily >then access the users sessions

Error in make test

1999-12-09 Thread Sakuji Toyama
I have compiled mod_perl-1.21 with apache_1.3.9 under Solaris2.5 machine. The configuration options were; perl Makefile.PL \ APACHE_SRC=../apache-1.3.9/src \ DO_HTTPD=1 \ USE_APACI=1 \ EVERYTHING=1 \ and CC="cc" \ CFLAGS="-fast" \ ./configure \ "--with-layout=Apache" \ "--act

Re: Apache::ASP problem with global.asa

1999-12-09 Thread ritu
Joshua, I am using version 0.15 of Apache::ASP. In any case, if global.asa is not changed after the server re-starts, this issue should not show up, right? I have another confusion that you may be able to help with: I have 3 different sub-directories under the DocumentRoot. I treat each of t

Apache::ASP problem with global.asa

1999-12-09 Thread ritu
Hi, I am having problems getting Application variables initialized in the Application_OnStart subroutine of global.asa. The Session_OnStart seems to be working fine. I am including excerpts from httpd.conf, .htaccess, global.asa and the file I'm using to test global.asa. I stopped and re-sta

Re: Associative Arrays problem

1999-12-09 Thread Tim Tompkins
I'd recommend running all scripts under 'strict' to shed some insight on what's going wrong.  I could speculate most of the day as to why one script would offer results and another wouldn't, but a good rule of the thumb, is "use strict, or know exactly why you're not".     Thanks,   Tim Tomp

Re: calling htpasswd from perl ...

1999-12-09 Thread Michael Robinton
you use the crypt lib and do a dual password entry. no confirmation is needed if the two passwords match. Everything is handled by the perl script, you don use htpasswd. Crypting is very straightforward. [EMAIL PROTECTED] (in palo alto) On Thu, 9 Dec 1999, dave_dunstan wrote: > Hi gang, I hop

Re: Apache::ASP problem with global.asa

1999-12-09 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: > > the global.asa that my global_test.html is using is what I had sent you ... the >application variable > $Application->{test} (the last variable printed in the error log above) is >initialiazed in the Session_OnStart > subroutine. The other application variables are

Re: Apache Proxy & Virtual Servers...

1999-12-09 Thread Trevor Phillips
Trevor Phillips wrote: > > I'm trying to set up a lightweight Apache Proxy as reccomended for mod_perl > situations. I have the proxy set up on a different box, and for the proxy > config I have: > > > ProxyPass/ http://the.other.machine:80/ > ProxyPassReverse / http://the.other.machine

Re: calling htpasswd from perl ...

1999-12-09 Thread Prakash Kailasa
Did you try the Apache::Htpasswd module? /prakash dave_dunstan wrote: > Hi gang, I hope this isn't too off-topic, I figure someone will know the > answer right away. I (my client) wants to manage user permissions at a > shared-hosting server. I'd certainly use .htaccess, except this particular

Apache Proxy & Virtual Servers...

1999-12-09 Thread Trevor Phillips
I'm trying to set up a lightweight Apache Proxy as reccomended for mod_perl situations. I have the proxy set up on a different box, and for the proxy config I have: ProxyPass/ http://the.other.machine:80/ ProxyPassReverse / http://the.other.machine:80/ This works fine, except "the.othe

calling htpasswd from perl ...

1999-12-09 Thread dave_dunstan
Hi gang, I hope this isn't too off-topic, I figure someone will know the answer right away. I (my client) wants to manage user permissions at a shared-hosting server. I'd certainly use .htaccess, except this particular client wants a gui to do this sort of thing (a little form, a little cgi, boom

Re: simple xml parsing within html

1999-12-09 Thread Cliff Rayman
The HTML::Parser is written by Gisle Aas. I think he is more than well aware of the ABC's of programming as you laid them out here - the ones that made sense anyways. || ;--(()) cliff rayman genwax.com "G.W. Haywood" wrote: > Hi all, > > On Wed, 8 Dec 1999, Alex Menendez wrote in the mod_perl l

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread DeWitt Clinton
On Thu, 9 Dec 1999, Gerald Richter wrote: > So the solution to your problem should be, to use a fixed package name for > all calls to the _same_ page. Brilliant! This does address exactly the problem I raised, and makes perfect sense. I had to do one absolutely wacky thing, though. Because I

Re: FindBin/Apache::Registry bug

1999-12-09 Thread Tom Mornini
On Thu, 9 Dec 1999, Joao Fonseca wrote: > I'm having problems migrating a site to mod_perl, > using the Apache::Registry module. Try Apache::PerlRun instead. It's better for quick ports of old CGIs. -- -- Tom Mornini -- InfoMania Printing and Prepress

Re: Compilation Problem

1999-12-09 Thread Eugene Miretskiy
Stas Bekman wrote: > > Do you have a symlink from /usr/local/lib/libgdbm.so.2 to > /usr/local/lib/libgdbm.so.2.x.x? replace x.x with the version that you > have. > Thanks. This is exactly what was wrong. I was able to 'make' modperl, BUT make test failed: /usr/local/etc/apache_1.3.9.orig/src/

POST, read() and UNSUPPORTED_MEDIA_TYPE

1999-12-09 Thread Dmitry Beransky
Hi, [This may turn out to be an Apache only question, please let me know if so.] Ok, I know that I can only read POSTed content once. But I can't understand why in the code below I need to convert POST to GET, otherwise the process will get stuck on return. However, if I replace ..UNSUPPORT

Re: Compilation Problem

1999-12-09 Thread Stas Bekman
On Thu, 9 Dec 1999, Eugene Miretskiy wrote: > Hello, > > I'm having problem compiling mod_perl_1.21 on SunOS 5.7 > > I followed instuctions in INSTALL.simple (just to see if i can compile > modperl). > I got the following error message when I tried to make modperl: > > ===> main > gcc -c -I..

Apache::ASP + use strict

1999-12-09 Thread Joshua Chamas
Hey, I've have "use strict" figured out! :) With my dev version of Apache::ASP v.18, there is a new UseStrict config setting when set will compile all scripts, including the global.asa, with "use strict" turned on automatically. Also, I have it working with the UseStrict setting such that use

Compilation Problem

1999-12-09 Thread Eugene Miretskiy
Hello, I'm having problem compiling mod_perl_1.21 on SunOS 5.7 I followed instuctions in INSTALL.simple (just to see if i can compile modperl). I got the following error message when I tried to make modperl: ===> main gcc -c -I../os/unix -I../include -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I.

RE: Merry f*cking xmas

1999-12-09 Thread Ian Mahuron
Woops.. this wasn't supposed to go here. I bcc'ed to mod_perl list by accident. Sorry everyone.

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread Gerald Richter
> Oddly, that's not quite what is happening. The content isn't lost > altogether, else the simple join() I include wouldn't work either. > > Moreover, even if I re-initialize the data passed into my printTemplate() > routine, the second call is still using some of the old data. > ok, next try. B

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread DeWitt Clinton
On Thu, 9 Dec 1999, Gerald Richter wrote: > If I had understand you right, the first call via execute to your template > works and the second not, right? > > That's not a bug! Embperl cleans up all your global variables inside your > page after every request. $vars in your template is such a glo

RE: Unloading a library

1999-12-09 Thread Baiju Thakkar
> Behalf Of Matt Sergeant > > How can I completely unload a library and all memory > associated with it, > and unload any dso's connected with that library? For > example, say I use > XML::Parser in a section - I don't want that hanging > around - it's a > big library, so I'd like to complete

Re: ASP Cookieless Sessions (WAS Re: Apache::ASP)

1999-12-09 Thread Joshua Chamas
Serge Sozonoff wrote: > > Hello, > > >It will work fine, but the problem still remains that the > >incoming page URL has the session-id in it, so that when you go > >offsite, the referer header sent by the client has the client's > >session id in it still, and the unethical webmaster could easil

Re: PerlRun and fork

1999-12-09 Thread Stas Bekman
> I'm thinking about using PerlRun for some legacy scripts that don't > use 'my' or use it in wrong places. But I hit one question that I'd > like to know the answer for. > > PerlRun provides perl interperter that is built into Apache which > saves time on starting new interpreter. Does it mean t

RESOLVED Re: Apache::ASP - I think bug...

1999-12-09 Thread Joshua Chamas
ModPerl list, It looks like the problem here was that BeerBong had the same subroutine name defined in multiple scripts, and since by default all Apache::ASP are compiled into the same package namespace, one script would call another's subroutine, whichever was most recently compiled. If you wan

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread Gerald Richter
> > 'cleanup' => -1 > > > > which will disable cleanup at all, add $CLEANUP{'vars'} = 0 inside your > > template, which should disable the cleanup only for that variable. > > That will work for this trivial example, but we have 107 templates on our > site, each with 10 to 100 variables, and chang

Re: FindBin/Apache::Registry bug

1999-12-09 Thread Andrei A. Voropaev
Don't use FindBin. It's not compatible with mod_perl since it uses BEGIN block which is executed only ones and for correct work it should be executed every time when the request comes. Andrei On Thu, Dec 09, 1999 at 12:03:56PM -0800, Joao Fonseca wrote: > This message was sent from Geocrawler.co

PerlRun and fork

1999-12-09 Thread Andrei A. Voropaev
Hi! I'm thinking about using PerlRun for some legacy scripts that don't use 'my' or use it in wrong places. But I hit one question that I'd like to know the answer for. PerlRun provides perl interperter that is built into Apache which saves time on starting new interpreter. Does it mean that it

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread DeWitt Clinton
On Thu, 9 Dec 1999, Gerald Richter wrote: > Rereading your first mail, seems to me that there is an additional problem > with Embperl's cleanup. This has nothing todo with Safe namespaces. Embperl > will per default tidyup your namespace and therefor execute something like > $vars = undef at the

Static link mod_perl error

1999-12-09 Thread Monika Machado
Hello List members, I have the following system: Redhat 6.1 Perl version 5.005_03 built for i686-linux (no RPM) Apache_1.3.9 (no RPM) mod_perl-1.21 (no RPM) glibc-2.1.2 My problem is the following: If I build mod_perl to be dinamically loaded it works fine, but I want mod_perl to be static linke

FindBin/Apache::Registry bug

1999-12-09 Thread Joao Fonseca
This message was sent from Geocrawler.com by "Joao Fonseca" <[EMAIL PROTECTED]> Be sure to reply to that address. Hello, I'm having problems migrating a site to mod_perl, using the Apache::Registry module. Scenario: -I have 2 CGIs (cgi1 and cgi2). -CGI1 is a soft link, and uses FindBin: use

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread Gerald Richter
> > The problem is, that Embperl must know, that you want to run in a Safe > > compartement. Just add > > > > 'options' => HTML::Embperl::optSafeNamespace > > > > to the Excute parameters and it should work. > > Right. That makes sense, and it is definitely a good idea to run it with > that optio

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread DeWitt Clinton
On Thu, 9 Dec 1999, Gerald Richter wrote: > The problem is, that Embperl must know, that you want to run in a Safe > compartement. Just add > > 'options' => HTML::Embperl::optSafeNamespace > > to the Excute parameters and it should work. Right. That makes sense, and it is definitely a good id

RE: Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread Gerald Richter
Hi, > > The problem occurs when I call HTML::Embperl::Execute with an > "inputfile" parameter and a "package" parameter. The package consists of > an instance of a Safe->root() that has data varglobbed in. > >[..] > sub printTemplate > { >my ($filename, $dataRef) = @_; > >my $compartment

Re: DBI Performance with Multiple IDs

1999-12-09 Thread Jeffrey W. Baker
Alex Menendez wrote: > > hello, all > > Given the following situation what is more efficient: > > -I have 10 id numbers I want to query on numbers 1,2,3,4,5,6,7,8,9,10 > respectively. However, this list is not fixed and could be any number of > ids up to 20. > > -Is it faster to create a globa

DBI Performance with Multiple IDs

1999-12-09 Thread Alex Menendez
hello, all Given the following situation what is more efficient: -I have 10 id numbers I want to query on numbers 1,2,3,4,5,6,7,8,9,10 respectively. However, this list is not fixed and could be any number of ids up to 20. -Is it faster to create a global variable with a prepared sql statement a

Re: where is HTTP_MULTIPLE_CHOICES?

1999-12-09 Thread Dmitry Beransky
I should always wait 'till morning to ask stupid questions... I just found the answer in the Eagle book, Ch.9, the Apache::Constants section (doh!): the constants that are not exported by default, can be accessed with Apache::Constants::(). At 05:22 PM 12/8/99 , Dmitry Beransky wrote: >Hi, >

Re: simple xml parsing within html

1999-12-09 Thread Alex Menendez
yes, bill I am actually doing the same thing! however, I still would like a pre-cached transaction to run faster for those pages that are truly dynamic and can never really be cached effectively. -amen Bill Moseley wrote: > At 08:47 PM 12/8/99 -0800, Alex Menendez wrote: > >I initially tried t

Re: mod_perl makes you rich

1999-12-09 Thread Stas Bekman
> Actually, it's much more than that. I went and dug up Andover's S1 filing. > Malda and Rob Oostendorp own Blockstackers, Inc, which was the beneficiary > of the shares. Malda owns a majority, apparently. > > They got 147k shares NOW. The actual deal is that they get chunks of stock > over the n

Potential bug in HTML::Embperl 1.2.0

1999-12-09 Thread dclinton
Hi, I believe I have a reproducible bug with HTML::Embperl 1.2.0. On the support pages this list was mentioned as the correct place to address such concerns. The problem occurs when I call HTML::Embperl::Execute with an "inputfile" parameter and a "package" parameter. The package consists of a

Re: mod_perl makes you rich

1999-12-09 Thread Chris Thompson
Actually, it's much more than that. I went and dug up Andover's S1 filing. Malda and Rob Oostendorp own Blockstackers, Inc, which was the beneficiary of the shares. Malda owns a majority, apparently. They got 147k shares NOW. The actual deal is that they get chunks of stock over the next two year

User authentication/login [LONG]

1999-12-09 Thread Jeremy Robst
Hi - apologies for the length of this, I am writing an Apache/modperl based Helpdesk system which requires user authorization before access is allowed. I would like to have either a specific username/password login or a guest login (e.g username guest, password guest). I have this working ok - I'

Re: simple xml parsing within html

1999-12-09 Thread Bill Moseley
At 08:47 PM 12/8/99 -0800, Alex Menendez wrote: >I initially tried to do this by subclassing HTML::Parser and over-riding >the usual methods. However, this >was painfully slow.even after chunking the files line by line. You didn't mention how many different HTML files you need to parse, or th

Re: where is HTTP_MULTIPLE_CHOICES?

1999-12-09 Thread G.W. Haywood
On Wed, 8 Dec 1999, Dmitry Beransky wrote: > I'm sorry, this is probably a stupid question, but I've search everything I > could think of and still can figure out where HTTP_MULTIPLE_CHOICES > constant is defined. It's definitely not in Apache::Constants::Exports Any > thoughts, did I miss

Re: simple xml parsing within html

1999-12-09 Thread G.W. Haywood
Hi all, On Wed, 8 Dec 1999, Alex Menendez wrote in the mod_perl list: > I currently have developed a dynamic content engine in mod_perl > I initially tried to do this by subclassing HTML::Parser and over-riding > the usual methods. However, this was painfully slow > > any suggestions on making

Re: Apache::ASP - I think bug...

1999-12-09 Thread Joshua Chamas
BeerBong wrote: > > -- > Can't use string ("select level,rubric_id,parent_id") as a SCALAR ref > > > while "strict refs" in use at (eval 13) line 14. > -- > is sent by another not completed script - rubrics.shtml, whe

Re: Apache::ASP - I think bug...

1999-12-09 Thread BeerBong
Btw, I use Apache::ASP 0.17 > Your 2 server configuration has nothing to do with Apache::ASP > errors. However, depending on the ProxyPass used at the front > server, you may end up with varying VirtualHosts handling > the request on the backend server, so make sure you are connecting > to the s

Re: Redirect While Maintaining Environment?

1999-12-09 Thread Peter Levart
On Wed, 08 Dec 1999, Jason Simms wrote: > If I use > an internal redirect, I could avoid all this as the browser never "sees" the > redirection, and thus my data would remain safe. But, I need to set a > cookie at redirection as well. What about this trick: - make handler1 in your module do an

mod_perl makes you rich

1999-12-09 Thread Matt Sergeant
Andover.net (owners of slashdot) closed it's IPO day at $60 a share. Apparently Rob Malda, founder of slashdot, get 147k shares. That's one hell of a college web site project. -- Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://com

Re: Apache::ASP problem with global.asa

1999-12-09 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: > > Joshua, > > I am using version 0.15 of Apache::ASP. In any case, if global.asa is not changed >after the server re-starts, > this issue should not show up, right? > An apache graceful restart will not reload an unchanged global.asa if you precompiled the ASP appl