Re: mixing script in virtual hosts

2001-12-19 Thread Ged Haywood
Hi there, On Wed, 19 Dec 2001, Yuri A. Kabaenkov wrote: In script.cgi i share this variables like wroten in perl_mod Guide. [snip] sometimes script.cgi from one virtual host uses module.pm from another. How can i fix it ? Keep reading the Guide. it's in there. Get the source and grep -ir

Tips tricks needed :)

2001-12-19 Thread Viljo Marrandi
Hello, We're going to make a web-site for insurance company (err, more like portal for several companies) and the problem is that ( I think ) it's going to be our biggest and most complex site we've ever done AND we're going to use some new stuff we've never used. So I'd be very happy if you can

Re: Tips tricks needed :)

2001-12-19 Thread Jorge Godoy
Viljo Marrandi [EMAIL PROTECTED] writes: I'm answering what I can... :-) 3. Authorization. Is cookie based auth most reasonable or are there some other ways too? .htaccess will not do, I think, because all data is in the same directory and authorized access/login is needed only on some

Re: mod_perl vs. C for high performance Apache modules

2001-12-19 Thread raptor
... work on Mars. The investor claims to have evaluated Perl vs. C years ago, to have witnessed that every single hit on the webserver under mod_perl causes a CPU usage spike that isn't seen with C, and that under heavy load ]- this seems to me like non-compiled script, module or

How to Use Apache as a FTP server

2001-12-19 Thread anandr
Hi All, I want to use my Apache as a ftp service also. Can the ring help me. I am running Apache 1.3.22 at port 80. when I give http://servername/, I get the list of files in my htdocs. Like wise when I give ftp://servername/, I need a list from my server folders. Have look at this

Re: Mason vs embperl

2001-12-19 Thread Chris Strom
Lihn, Horng-Twu [EMAIL PROTECTED] writes: I have a library of perl routine that I call in cgi-bin environment where I usually require. I could not find any way to require it and use it in Embperl. I can not find any doc describing how this is done. (I can require it in the Mason handler.pl)

Re: [DIGEST] mod_perl digest 2001/12/15

2001-12-19 Thread Geoffrey Young
James G Smith wrote: -- mod_perl digest December 1, 2001 - December 15, 2001 -- Recent happenings in

Convert bitmap

2001-12-19 Thread Hans-Olof Hermansson
Hi, I am looking for a perl module that can convert a bitmap picture to jpeg or gif. I am sending a bitmap from a Pocket PC device to a Solaris webserver running Apache. If anyone has any tips it will be greatly appreciated. Reagrds Hans-Olof __

Re: [modperl site design challenge] and the winner is...

2001-12-19 Thread Stas Bekman
Ideally if Thomas, Carlos and Allan could take the best of each other's work and produce the perfect design, that That would be OK for me, Carlos, Allan?? Wow, all three winners have agreed to work together to make the killer design! that's great guys!!! I guess the next step is to apply

Re: [VERY OT] How to Use Apache as a FTP server

2001-12-19 Thread Issac Goldstand
That's not mod-perl. That's not even Apache. Many popular web browsers have browsing features for anonymous FTP. You need an FTP server for that. Apache 2 will include an FTP server (I think), but for now, try wuftpd. Issac anandr wrote: Hi All, I want to use my Apache as a ftp

Re: Tips tricks needed :)

2001-12-19 Thread wsheldah
1. Regarding the switch to postgresql, I think that's a good choice. Just pay attention to postgresql's data types, and try to get your fields types and lengths correct the first time if possible. It doesn't completely support the ALTER TABLE command, so changing column types can be a pain,

Re: Tips tricks needed :)

2001-12-19 Thread fliptop
[EMAIL PROTECTED] wrote: 1. Regarding the switch to postgresql, I think that's a good choice. Just pay attention to postgresql's data types, and try to get your fields types and lengths correct the first time if possible. It doesn't completely support the ALTER TABLE command, so changing

Re: embperl [* *] does not work

2001-12-19 Thread Gerald Richter
I am trying [* *] tag and the code as simple as this does not work. Note that [* *] is experimetal and will not work always in 1.3.x (it does in 2.0) I am using embperl 1.3.2 build from theoryx5.uwinnipeg.ca for Windows. Please upgrade to the newest version (1.3.4), because there where a

Re: Tips tricks needed :)

2001-12-19 Thread Jean-Michel Hiver
If you're developing a complex application, you'll probably want to split it in a horde of specialized modules. Few things to remember: == You will probably feel the need to use static variables (i.e. variables shared with all instances of a given class) at some point. For example if you have a

Re: Convert bitmap

2001-12-19 Thread darren chamberlain
Hans-Olof Hermansson [EMAIL PROTECTED] said something to this effect on 12/19/2001: I am looking for a perl module that can convert a bitmap picture to jpeg or gif. I am sending a bitmap from a Pocket PC device to a Solaris webserver running Apache. If anyone has any tips it will be greatly

Re: require in Embperl (was: Mason vs embperl)

2001-12-19 Thread Gerald Richter
Lihn, Horng-Twu [EMAIL PROTECTED] writes: I have a library of perl routine that I call in cgi-bin environment where I usually require. I could not find any way to require it and use it in Embperl. I can not find any doc describing how this is done. (I can require it in the Mason

Re: [modperl site design challenge] and the winner is...

2001-12-19 Thread Bill Moseley
I'm throwing in my two cents a bit late, so it's a bit depreciated now (one cent?). But something to think about for the site. I've worked with php a little lately -- not programming, but making minor changes to a site. I've used the php site http://www.php.net/ a few times, and I've found it

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
2. We will use Template-Toolkit and Apache/mod_perl. Problem is that 2 out of 3 people have never used TT or programmed mod_perl and OO Perl. Only I've made sites this way, they've used Embperl til now. How can I make this switch for them a little easier? Get them all copies of the Eagle

RE: Tips tricks needed :)

2001-12-19 Thread Matt Sergeant
-Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] ALWAYS reinitialize $Your::Singleton::ETERNAL on each query! mod_perl will *NOT* do it for you. If you want a per-request global, use $r-pnotes() instead of a standard perl global. Then mod_perl *WILL* do it

[RFC] Apache::WinBitHack

2001-12-19 Thread Randy Kobes
Hi, As part of the mod_perl developer's cookbook, we'd like to propose a module - Apache::WinBitHack - for possible inclusion in CPAN. This module enables Win32 mod_perl users to emulate Apache's XBitHack using file attributes. Usage is described below in the readme. You can get the sources

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
Actually I was wondering about writing an Apache::Singleton class, that works the same as Class::Singleton, but clears the singleton out on each request (by using pnotes). Would anyone be interested in that? This sounds a bit like Object::Registrar. If you do it, I'd suggest giving it a

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
ALWAYS reinitialize $Your::Singleton::ETERNAL on each query! mod_perl will *NOT* do it for you. If you want a per-request global, use $r-pnotes() instead of a standard perl global. Then mod_perl *WILL* do it for you. You might think 'ah yeah but it would be nice if

RE: [modperl site design challenge] and the winner is...

2001-12-19 Thread Joe Breeden
All that makes it really easy for someone new to feel comfortable. And isn't that what the mod_perl site should do? It would be nice to see license info, too, as someone new might want to be clear on that right away, too. You can also quickly see a list of supported modules.

Re: How to Use Apache as a FTP server

2001-12-19 Thread [EMAIL PROTECTED]
hi, While if i were to take you literally it will not work. HTTP and FTP behave comepletely differently. However you can simulate it .. eg ftp://ftp.myserver.pre As well as browsers tend to do passive ftp .. for downloads .. Hope that helps a little. Regards, [EMAIL PROTECTED] /*

RE: Tips tricks needed :)

2001-12-19 Thread Matt Sergeant
-Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Actually I was wondering about writing an Apache::Singleton class, that works the same as Class::Singleton, but clears the singleton out on each request (by using pnotes). Would anyone be interested in that?

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
No, it's nothing like Object::Registrar. It's like Class::Singleton. Okay, wishful thinking. I don't use Class::Singleton, but I have written my own versions of Object::Registrar a few times to accomplish the same goal. I don't like to make my core classes dependent on running in a mod_perl

RE: Mason vs embperl

2001-12-19 Thread Kee Hinckley
At 4:14 PM -0500 12/18/01, Lihn, Horng-Twu wrote: I have a library of perl routine that I call in cgi-bin environment where I usually require. I could not find any way to require it and use it in Embperl. I can not find any doc describing how this is done. (I can require it in the Mason

Re: Tips tricks needed :)

2001-12-19 Thread Rob Nagler
Perrin Harkins writes: Okay, wishful thinking. I don't use Class::Singleton, but I have written my own versions of Object::Registrar a few times to accomplish the same goal. Ditto. We use a registry mechanism, too. One thing I don't quite understand is the need to clear out a singleton.

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
One thing I don't quite understand is the need to clear out a singleton. Why would a singleton need to hold transient state? It's good for holding something request-specific, like a user session.

Re: Tips tricks needed :)

2001-12-19 Thread Jean-Michel Hiver
On Wed 19-Dec-2001 at 10:43:34AM -0500, Perrin Harkins wrote: ALWAYS reinitialize $Your::Singleton::ETERNAL on each query! mod_perl will *NOT* do it for you. If you want a per-request global, use $r-pnotes() instead of a standard perl global. Then mod_perl *WILL* do it for you. True.

Re: Mason vs embperl

2001-12-19 Thread Kee Hinckley
At 8:03 PM +0100 12/18/01, C.Hauser - IT assistance GmbH wrote: I use Dreamweaver for the publishers and the % and commands are properly displayed as ASP-icons. I use it with Modules Apache::Session, http://www.somewhere.com/software/ for Dreamweaver extensions to display Embperl properly. I

Re: Tips tricks needed :)

2001-12-19 Thread Perrin Harkins
If you want a per-request global, use $r-pnotes() instead of a standard perl global. Then mod_perl *WILL* do it for you. True. But then you are using the Apache object and you're program doesn't work as a standard CGI anymore :( I handle this by chekcing for $ENV{MOD_PERL} and just using

RE:require -- Mason vs embperl

2001-12-19 Thread Lihn, Horng-Twu
Kee, This helps. But if I have to do this in very page, isn't this post a serious problem to the memory consumption? Or not? -Steve Maybe I'm missing something, because this seems simple. [- require foo.pl; -] will load it everytime the page is loaded [! require foo.pl; !] will load it once

Re: require -- Mason vs embperl

2001-12-19 Thread ___cliff rayman___
Lihn, Horng-Twu wrote: Kee, This helps. But if I have to do this in very page, isn't this post a serious problem to the memory consumption? Or not? in what way? - u either need the code, or u don't. if u don't need all of it, split it into smaller pieces. -Steve Maybe I'm missing

RE:require -- Mason vs embperl

2001-12-19 Thread Kee Hinckley
At 2:26 PM -0500 12/19/01, Lihn, Horng-Twu wrote: Kee, This helps. But if I have to do this in very page, isn't this post a serious problem to the memory consumption? I can't speak to require. But if you do a use in an Embperl script, the library will load once per-process. In fact this

FW: public and private code branch

2001-12-19 Thread Lihn, Horng-Twu
Any good idea here? Steve Lihn FIS Database Support, Merck Co., Inc. Tel: (908) 423 - 4441 -Original Message- From: Lihn, Horng-Twu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 4:53 PM To: [EMAIL PROTECTED] Subject: public and private code branch Does anyone

How to use LWP::Simple inside a safe compartment?

2001-12-19 Thread Christoph Bergmann
Hi... I want to use LWP::Simple inside a safe compartment created with the Safe Module. But it ends up with errors like Can't locate object method new via package LWP::UserAgent at line... or Require trapped by operation mask... Here is how the code looks like (shortened ;-) ):

Report on mod_accel and mod_deflate

2001-12-19 Thread Jeremy Howard
Igor Sysoev mentioned recently on this list that he has written a module called 'mod_accel' that provides a caching HTTP accelerator, as well as a mod_gzip replacement called 'mod_deflate'. These modules are both used on Kaspersky labs' busy sites, as well as at the popular portal

Re: Tips tricks needed :)

2001-12-19 Thread Tatsuhiko Miyagawa
On Wed, 19 Dec 2001 16:01:22 - Matt Sergeant [EMAIL PROTECTED] wrote: Actually I was wondering about writing an Apache::Singleton class, that works the same as Class::Singleton, but clears the singleton out on each request (by using pnotes). Would anyone be interested in that? Like this?

Re: Authentications fails after upgrade to 1.3.22

2001-12-19 Thread BeerBong
When you up grade from one version to the next version of apache ,U have to redo the passwd and user. I had the same problem when I tried updating from 1.3.12 to 1.3.19-rev1,and I re-did it. Then all where ok !,what is the version of ur mod_perl. I wrote - I upgraded it from 1.25

cvs commit: modperl-2.0/xs/APR/PerlIO apr_perlio.c

2001-12-19 Thread dougm
dougm 01/12/19 10:16:41 Modified:xs/APR/PerlIO apr_perlio.c Log: fix win32 5.6.1 compile Revision ChangesPath 1.6 +1 -1 modperl-2.0/xs/APR/PerlIO/apr_perlio.c Index: apr_perlio.c ===

cvs commit: modperl-2.0/t/response/TestApache compat.pm

2001-12-19 Thread dougm
dougm 01/12/19 17:31:24 Modified:lib/Apache compat.pm t/response/TestApache compat.pm Log: use/require Apache::File; compat Revision ChangesPath 1.32 +2 -0 modperl-2.0/lib/Apache/compat.pm Index: compat.pm

cvs commit: modperl-2.0/xs/APR/PerlIO apr_perlio.c

2001-12-19 Thread stas
stas01/12/19 19:20:33 Modified:xs/APR/PerlIO apr_perlio.c Log: - perl 5.7.2 patch 13809 has changed the prototype of all PerlIO vtable functions to start with pTHX_; adjusting for this change and removing dTHX's that aren't needed anymore. Revision ChangesPath

cvs commit: modperl-2.0/t/modperl getc.t readline.t sameinterp.t

2001-12-19 Thread dougm
dougm 01/12/19 19:54:41 Modified:t/apache cgihandler.t compat.t post.t scanhdrs.t t/apisend_fd.t sendfile.t t/directive perlrequire.t t/filter input_body.t input_msg.t lc.t t/hooks access.t trans.t